From: Benoît Pin Date: Wed, 4 Dec 2013 13:32:48 +0000 (+0100) Subject: Avancement sur l’upload par glisser / déposer dans les dossiers. On affiche le fragme... X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/decd413cb0fb290e9ddb185252dee51dc8b6b9ec Avancement sur l’upload par glisser / déposer dans les dossiers. On affiche le fragment html après upload. --- diff --git a/profiles/default/types.xml b/profiles/default/types.xml old mode 100755 new mode 100644 diff --git a/profiles/default/types/CMF_Site.xml b/profiles/default/types/CMF_Site.xml index d36c06c..b530b34 100644 --- a/profiles/default/types/CMF_Site.xml +++ b/profiles/default/types/CMF_Site.xml @@ -18,9 +18,7 @@ - - diff --git a/profiles/default/types/Huge_Plinn_Folder.xml b/profiles/default/types/Huge_Plinn_Folder.xml index 38799ea..b589b21 100644 --- a/profiles/default/types/Huge_Plinn_Folder.xml +++ b/profiles/default/types/Huge_Plinn_Folder.xml @@ -17,17 +17,15 @@ - - + - - False + False + False + False + - + lock diff --git a/skins/photo_theme/folder_jsupload_snippet.py b/skins/photo_theme/folder_jsupload_snippet.py new file mode 100644 index 0000000..f932675 --- /dev/null +++ b/skins/photo_theme/folder_jsupload_snippet.py @@ -0,0 +1,15 @@ +##parameters=ob +from Products.CMFCore.utils import getUtilityByInterfaceName +utool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IURLTool') +locale_date_fmt = context.locale_date_fmt() +infos = {'checkbox' : True, + 'url' : ob.absolute_url(), + 'lock' : False, + 'modified' : ob.modified().strftime(locale_date_fmt), + 'title_or_id' : ob.title_or_id(), + 'position' : context.getObjectPosition(ob.getId()), + 'type' : ob.Type() or None, + 'id' : ob.getId(), + 'icon': '%s/%s' % (utool(), ob.getIcon())} + +return context.folder_jsupload_snippet_template(listItemInfos=[infos]) \ No newline at end of file diff --git a/skins/photo_theme/folder_jsupload_snippet_template.pt b/skins/photo_theme/folder_jsupload_snippet_template.pt new file mode 100644 index 0000000..8b1e813 --- /dev/null +++ b/skins/photo_theme/folder_jsupload_snippet_template.pt @@ -0,0 +1,5 @@ + + +
+ + \ No newline at end of file