X-Git-Url: https://scm.cri.minesparis.psl.eu/git/Portfolio.git/blobdiff_plain/17094a1109d383befd9b700262a8237e11e64543..e73353500c67453ef9663d67eaeee7dd46c358ee:/skins/lightbox_view.py diff --git a/skins/lightbox_view.py b/skins/lightbox_view.py deleted file mode 100755 index 7fb12dc..0000000 --- a/skins/lightbox_view.py +++ /dev/null @@ -1,32 +0,0 @@ -##parameters=load='',unload='',**kw -options = {} -buttons = [] -lightboxSelected = False - -sd = context.session_data_manager.getSessionData(create = 1) -path = context.getPhysicalPath() - -if load : - sd.set('lightboxpath', path) - selection = context.getUidList() - sd.set('objects_selection', selection) - sd.set('objects_selection_dict', dict([(uid, True) for uid in selection])) -elif unload : - sd.set('lightboxpath', None) - sd.set('objects_selection', []) - sd.set('objects_selection_dict', {}) - -sessionpath = sd.get('lightboxpath', None) -if sessionpath == path : - lightboxSelected = True - buttons.append({'name': 'unload', 'value': 'Unload from my selection'}) -else : - buttons.append({'name':'load', 'value': 'Load in my selection'}) - - -options['buttons'] = buttons -options['lightboxSelected'] = lightboxSelected -options['container_type'] = 'lightbox' -options.update(context.getLightboxPhotosInfos(context)) - -return context.lightbox_view_template(**options)