summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8f40b26)
Ça rendait inopérant les fonctions de copier / coller.
import RegistrationTool
import CalendarTool
import AttachmentTool
import RegistrationTool
import CalendarTool
import AttachmentTool
-#from shutdown_dispatcher import ZopeShutdownDispatcher
from PloneMisc import IndexIterator, Batch
from utils import getCPInfo, popCP
from PloneMisc import IndexIterator, Batch
from utils import getCPInfo, popCP
, AttachmentTool.AttachmentTool
)
, AttachmentTool.AttachmentTool
)
-methods = {
-'getCPInfo': getCPInfo,
-'getCPInfo__roles__': None,
-'popCP' : popCP,
-'popCP__roles__' : None
-}
-
# register font extensions
registerFileExtension('ttf', FSFile)
registerFileExtension('eot', FSFile)
# register font extensions
registerFileExtension('ttf', FSFile)
registerFileExtension('eot', FSFile)
allow_module('Products.Plinn.PloneMisc')
allow_class(IndexIterator)
allow_class(Batch)
allow_module('Products.Plinn.PloneMisc')
allow_class(IndexIterator)
allow_class(Batch)
- app = registrar._ProductContext__app
- #ZopeShutdownDispatcher(registrar._ProductContext__app)
core_cmf_utils.ContentInit(
'Plinn',
core_cmf_utils.ContentInit(
'Plinn',
msgid ""
msgstr ""
"Project-Id-Version: Plinn 2.0\n"
msgid ""
msgstr ""
"Project-Id-Version: Plinn 2.0\n"
-"POT-Creation-Date: Sun Jan 19 10:49:52 2014\n"
+"POT-Creation-Date: Tue Mar 4 15:13:49 2014\n"
"PO-Revision-Date: 2013-11-28 13:12+0100\n"
"Last-Translator: Benoît PIN\n"
"Language-Team: CRI http://cri.ensmp.fr\n"
"PO-Revision-Date: 2013-11-28 13:12+0100\n"
"Last-Translator: Benoît PIN\n"
"Language-Team: CRI http://cri.ensmp.fr\n"
#: n/skins/custom_content/event_edit_template.pt:78
#: n/skins/custom_content/event_edit_template.pt:103
#: n/skins/custom_content/event_edit_template.pt:78
#: n/skins/custom_content/event_edit_template.pt:103
-#: n/skins/generic/widgets.pt:94
+#: n/skins/generic/widgets.pt:96
msgid ""
"${month} / ${day} / ${year} ${hour} :"
" ${minute}"
msgid ""
"${month} / ${day} / ${year} ${hour} :"
" ${minute}"
msgid "Request made by IP ${ip} at ${time}"
msgstr ""
msgid "Request made by IP ${ip} at ${time}"
msgstr ""
-#: n/skins/custom_generic/main_template_standard.pt:96
-#: n/skins/photo_theme/main_template_standard.pt:97
-msgid "Skip to content"
-msgstr ""
-
#: n/skins/custom_generic/main_template_standard.pt:111
#: n/skins/custom_generic/talkback_tree.pt:63
#: n/skins/generic/main_template_ajax.pt:12
#: n/skins/custom_generic/main_template_standard.pt:111
#: n/skins/custom_generic/talkback_tree.pt:63
#: n/skins/generic/main_template_ajax.pt:12
msgid "locale_date_fmt"
msgstr ""
msgid "locale_date_fmt"
msgstr ""
-#: n/skins/generic/main_template_macros.pt:78
+#: n/skins/generic/main_template_macros.pt:80
#: n/skins/photo_theme/main_template_macros.pt:91
msgid "You are here:"
msgstr ""
#: n/skins/photo_theme/main_template_macros.pt:91
msgid "You are here:"
msgstr ""
-#: n/skins/generic/main_template_macros.pt:91
-#: n/skins/generic/main_template_macros.pt:94
-#: n/skins/generic/main_template_macros.pt:112
-#: n/skins/generic/main_template_macros.pt:113
+#: n/skins/generic/main_template_macros.pt:93
+#: n/skins/generic/main_template_macros.pt:96
+#: n/skins/generic/main_template_macros.pt:114
+#: n/skins/generic/main_template_macros.pt:115
#: n/skins/photo_theme/main_template_macros.pt:100
#: n/skins/photo_theme/main_template_macros.pt:113
msgid "Paste"
msgstr ""
#: n/skins/photo_theme/main_template_macros.pt:100
#: n/skins/photo_theme/main_template_macros.pt:113
msgid "Paste"
msgstr ""
-#: n/skins/generic/main_template_macros.pt:109
+#: n/skins/generic/main_template_macros.pt:111
#: n/skins/photo_theme/main_template_macros.pt:110
msgid "Exit boxes editing"
msgstr ""
#: n/skins/photo_theme/main_template_macros.pt:110
msgid "Exit boxes editing"
msgstr ""
msgid "Register"
msgstr ""
msgid "Register"
msgstr ""
-#: n/skins/generic/recent_news.pt:21 n/skins/generic/widgets.pt:123
+#: n/skins/generic/recent_news.pt:21 n/skins/generic/widgets.pt:125
msgid "Edit metadata"
msgstr ""
msgid "Edit metadata"
msgstr ""
-#: n/skins/generic/widgets.pt:53
+#: n/skins/generic/widgets.pt:57
msgid "Clipboard"
msgstr ""
msgid "Clipboard"
msgstr ""
-#: n/skins/generic/widgets.pt:128
+#: n/skins/generic/widgets.pt:63
+msgid "Delete"
+msgstr ""
+
+#: n/skins/generic/widgets.pt:64
+msgid "Empty"
+msgstr ""
+
+#: n/skins/generic/widgets.pt:130
msgid "News Item"
msgstr ""
msgid "News Item"
msgstr ""
msgid "Loading progress..."
msgstr ""
msgid "Loading progress..."
msgstr ""
+#: n/skins/photo_theme/main_template_standard.pt:97
+msgid "Skip to content"
+msgstr ""
+
#: n/skins/photo_theme/realis_main_macros.pt:28
msgid "Join"
msgstr ""
#: n/skins/photo_theme/realis_main_macros.pt:28
msgid "Join"
msgstr ""
msgid "December_abbr"
msgstr "Dec"
msgid "December_abbr"
msgstr "Dec"
-msgid "Delete"
-msgstr ""
-
msgid "depublish"
msgstr ""
msgid "depublish"
msgstr ""
msgid ""
msgstr ""
"Project-Id-Version: Plinn 2.0\n"
msgid ""
msgstr ""
"Project-Id-Version: Plinn 2.0\n"
-"POT-Creation-Date: Sun Jan 19 10:49:52 2014\n"
+"POT-Creation-Date: Tue Mar 4 15:13:49 2014\n"
"PO-Revision-Date: 2014-01-19 10:51+0100\n"
"Last-Translator: Benoît PIN\n"
"Language-Team: CRI http://cri.ensmp.fr\n"
"PO-Revision-Date: 2014-01-19 10:51+0100\n"
"Last-Translator: Benoît PIN\n"
"Language-Team: CRI http://cri.ensmp.fr\n"
"the community.\n"
msgstr ""
"\n"
"the community.\n"
msgstr ""
"\n"
-"Vous venez d'être inscrit en tant que membre du portail « %(portal_title)"
-"s », ce qui vous permet de participer à la rédaction des contenus.\n"
+"Vous venez d'être inscrit en tant que membre du portail "
+"« %(portal_title)s », ce qui vous permet de participer à la rédaction des "
+"contenus.\n"
#: n/profiles/default/workflows/member_workflow/scripts/sendNotificationEmail.py:43
#: n/profiles/photo/workflows/member_workflow/scripts/sendNotificationEmail.py:43
#: n/profiles/default/workflows/member_workflow/scripts/sendNotificationEmail.py:43
#: n/profiles/photo/workflows/member_workflow/scripts/sendNotificationEmail.py:43
#: n/skins/custom_content/event_edit_template.pt:78
#: n/skins/custom_content/event_edit_template.pt:103
#: n/skins/custom_content/event_edit_template.pt:78
#: n/skins/custom_content/event_edit_template.pt:103
-#: n/skins/generic/widgets.pt:94
+#: n/skins/generic/widgets.pt:96
msgid ""
"${month} / ${day} / ${year} ${hour} :"
" ${minute}"
msgid ""
"${month} / ${day} / ${year} ${hour} :"
" ${minute}"
msgid "Request made by IP ${ip} at ${time}"
msgstr "Requête faîte par l'IP ${ip} à ${time}"
msgid "Request made by IP ${ip} at ${time}"
msgstr "Requête faîte par l'IP ${ip} à ${time}"
-#: n/skins/custom_generic/main_template_standard.pt:96
-#: n/skins/photo_theme/main_template_standard.pt:97
-msgid "Skip to content"
-msgstr "Sauter au contenu"
-
#: n/skins/custom_generic/main_template_standard.pt:111
#: n/skins/custom_generic/talkback_tree.pt:63
#: n/skins/generic/main_template_ajax.pt:12
#: n/skins/custom_generic/main_template_standard.pt:111
#: n/skins/custom_generic/talkback_tree.pt:63
#: n/skins/generic/main_template_ajax.pt:12
msgid "locale_date_fmt"
msgstr "%d/%m/%Y %Hh%M"
msgid "locale_date_fmt"
msgstr "%d/%m/%Y %Hh%M"
-#: n/skins/generic/main_template_macros.pt:78
+#: n/skins/generic/main_template_macros.pt:80
#: n/skins/photo_theme/main_template_macros.pt:91
msgid "You are here:"
msgstr "Vous êtes ici :"
#: n/skins/photo_theme/main_template_macros.pt:91
msgid "You are here:"
msgstr "Vous êtes ici :"
-#: n/skins/generic/main_template_macros.pt:91
-#: n/skins/generic/main_template_macros.pt:94
-#: n/skins/generic/main_template_macros.pt:112
-#: n/skins/generic/main_template_macros.pt:113
+#: n/skins/generic/main_template_macros.pt:93
+#: n/skins/generic/main_template_macros.pt:96
+#: n/skins/generic/main_template_macros.pt:114
+#: n/skins/generic/main_template_macros.pt:115
#: n/skins/photo_theme/main_template_macros.pt:100
#: n/skins/photo_theme/main_template_macros.pt:113
msgid "Paste"
msgstr "Coller"
#: n/skins/photo_theme/main_template_macros.pt:100
#: n/skins/photo_theme/main_template_macros.pt:113
msgid "Paste"
msgstr "Coller"
-#: n/skins/generic/main_template_macros.pt:109
+#: n/skins/generic/main_template_macros.pt:111
#: n/skins/photo_theme/main_template_macros.pt:110
msgid "Exit boxes editing"
msgstr "Quitter l'édition des boîtes"
#: n/skins/photo_theme/main_template_macros.pt:110
msgid "Exit boxes editing"
msgstr "Quitter l'édition des boîtes"
msgid "Register"
msgstr "Inscrire"
msgid "Register"
msgstr "Inscrire"
-#: n/skins/generic/recent_news.pt:21 n/skins/generic/widgets.pt:123
+#: n/skins/generic/recent_news.pt:21 n/skins/generic/widgets.pt:125
msgid "News"
msgstr "Actualités"
msgid "News"
msgstr "Actualités"
msgid ""
"Enter your email or your username below and click on the \"Send\" button. "
"You will receive an email with a link to reset your password."
msgid ""
"Enter your email or your username below and click on the \"Send\" button. "
"You will receive an email with a link to reset your password."
-msgstr "Entrez votre email ou votre login ci-dessous et cliquez sur « Envoyer ». Vous recevrez un email contenant un lien pour réinitialiser votre mot de passe."
+msgstr ""
+"Entrez votre email ou votre login ci-dessous et cliquez sur « Envoyer ». "
+"Vous recevrez un email contenant un lien pour réinitialiser votre mot de "
+"passe."
#: n/skins/generic/request_password_reset_template.pt:19
msgid ""
#: n/skins/generic/request_password_reset_template.pt:19
msgid ""
msgid "Edit metadata"
msgstr "Éditer les métadonnées"
msgid "Edit metadata"
msgstr "Éditer les métadonnées"
-#: n/skins/generic/widgets.pt:53
+#: n/skins/generic/widgets.pt:57
msgid "Clipboard"
msgstr "Presse-papier"
msgid "Clipboard"
msgstr "Presse-papier"
-#: n/skins/generic/widgets.pt:128
+#: n/skins/generic/widgets.pt:63
+msgid "Delete"
+msgstr "Supprimer"
+
+#: n/skins/generic/widgets.pt:64
+msgid "Empty"
+msgstr "Vider"
+
+#: n/skins/generic/widgets.pt:130
msgid "News Item"
msgstr "Actualité"
msgid "News Item"
msgstr "Actualité"
msgid "Loading progress..."
msgstr "Chargement en cours..."
msgid "Loading progress..."
msgstr "Chargement en cours..."
+#: n/skins/photo_theme/main_template_standard.pt:97
+msgid "Skip to content"
+msgstr "Sauter au contenu"
+
#: n/skins/photo_theme/realis_main_macros.pt:28
msgid "Join"
msgstr "S'inscrire"
#: n/skins/photo_theme/realis_main_macros.pt:28
msgid "Join"
msgstr "S'inscrire"
msgid "December_abbr"
msgstr "Déc"
msgid "December_abbr"
msgstr "Déc"
-msgid "Delete"
-msgstr "Supprimer"
-
msgid "depublish"
msgstr "dépublier"
msgid "depublish"
msgstr "dépublier"
msgid "December_abbr"
msgstr ""
msgid "December_abbr"
msgstr ""
-msgid "Delete"
-msgstr ""
-
msgid "depublish"
msgstr ""
msgid "depublish"
msgstr ""
msgid ""
msgstr ""
"Project-Id-Version: 2.0 beta 1\n"
msgid ""
msgstr ""
"Project-Id-Version: 2.0 beta 1\n"
-"POT-Creation-Date: Sun Jan 19 10:49:52 2014\n"
+"POT-Creation-Date: Tue Mar 4 15:14:36 2014\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Zope 3 Developers <zope-dev@zope.org>\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Zope 3 Developers <zope-dev@zope.org>\n"
#: n/skins/custom_content/event_edit_template.pt:78
#: n/skins/custom_content/event_edit_template.pt:103
#: n/skins/custom_content/event_edit_template.pt:78
#: n/skins/custom_content/event_edit_template.pt:103
-#: n/skins/generic/widgets.pt:94
+#: n/skins/generic/widgets.pt:96
msgid "${month} / ${day} / ${year} ${hour} : ${minute}"
msgstr ""
msgid "${month} / ${day} / ${year} ${hour} : ${minute}"
msgstr ""
msgid "Request made by IP ${ip} at ${time}"
msgstr ""
msgid "Request made by IP ${ip} at ${time}"
msgstr ""
-#: n/skins/custom_generic/main_template_standard.pt:96
-#: n/skins/photo_theme/main_template_standard.pt:97
-msgid "Skip to content"
-msgstr ""
-
#: n/skins/custom_generic/main_template_standard.pt:111
#: n/skins/custom_generic/talkback_tree.pt:63
#: n/skins/generic/main_template_ajax.pt:12
#: n/skins/custom_generic/main_template_standard.pt:111
#: n/skins/custom_generic/talkback_tree.pt:63
#: n/skins/generic/main_template_ajax.pt:12
msgid "locale_date_fmt"
msgstr ""
msgid "locale_date_fmt"
msgstr ""
-#: n/skins/generic/main_template_macros.pt:78
+#: n/skins/generic/main_template_macros.pt:80
#: n/skins/photo_theme/main_template_macros.pt:91
msgid "You are here:"
msgstr ""
#: n/skins/photo_theme/main_template_macros.pt:91
msgid "You are here:"
msgstr ""
-#: n/skins/generic/main_template_macros.pt:91
-#: n/skins/generic/main_template_macros.pt:94
-#: n/skins/generic/main_template_macros.pt:112
-#: n/skins/generic/main_template_macros.pt:113
+#: n/skins/generic/main_template_macros.pt:93
+#: n/skins/generic/main_template_macros.pt:96
+#: n/skins/generic/main_template_macros.pt:114
+#: n/skins/generic/main_template_macros.pt:115
#: n/skins/photo_theme/main_template_macros.pt:100
#: n/skins/photo_theme/main_template_macros.pt:100
#: n/skins/photo_theme/main_template_macros.pt:113
#: n/skins/photo_theme/main_template_macros.pt:100
#: n/skins/photo_theme/main_template_macros.pt:100
#: n/skins/photo_theme/main_template_macros.pt:113
-#: n/skins/generic/main_template_macros.pt:109
+#: n/skins/generic/main_template_macros.pt:111
#: n/skins/photo_theme/main_template_macros.pt:110
msgid "Exit boxes editing"
msgstr ""
#: n/skins/photo_theme/main_template_macros.pt:110
msgid "Exit boxes editing"
msgstr ""
msgstr ""
#: n/skins/generic/recent_news.pt:21
msgstr ""
#: n/skins/generic/recent_news.pt:21
-#: n/skins/generic/widgets.pt:123
+#: n/skins/generic/widgets.pt:125
msgid "Edit metadata"
msgstr ""
msgid "Edit metadata"
msgstr ""
-#: n/skins/generic/widgets.pt:53
+#: n/skins/generic/widgets.pt:57
msgid "Clipboard"
msgstr ""
msgid "Clipboard"
msgstr ""
-#: n/skins/generic/widgets.pt:128
+#: n/skins/generic/widgets.pt:63
+msgid "Delete"
+msgstr ""
+
+#: n/skins/generic/widgets.pt:64
+msgid "Empty"
+msgstr ""
+
+#: n/skins/generic/widgets.pt:130
msgid "News Item"
msgstr ""
msgid "News Item"
msgstr ""
msgid "Loading progress..."
msgstr ""
msgid "Loading progress..."
msgstr ""
+#: n/skins/photo_theme/main_template_standard.pt:97
+msgid "Skip to content"
+msgstr ""
+
#: n/skins/photo_theme/realis_main_macros.pt:28
msgid "Join"
msgstr ""
#: n/skins/photo_theme/realis_main_macros.pt:28
msgid "Join"
msgstr ""
msgid "December_abbr"
msgstr ""
msgid "December_abbr"
msgstr ""
-msgid "Delete"
-msgstr ""
-
msgid "depublish"
msgstr ""
msgid "depublish"
msgstr ""
from Products.CMFCore.PortalFolder import PortalFolder as CMFPortalFolder
from Folder import PlinnFolder
from Products.CMFCore.PortalFolder import PortalFolder as CMFPortalFolder
from Folder import PlinnFolder
+from utils import getCPInfo, popCP
cmfPortalFolderSecurity = ClassSecurityInfo()
cmfPortalFolderSecurity = ClassSecurityInfo()
cmfPortalFolderSecurity.declareProtected(AddPortalContent, 'put_upload')
CMFPortalFolder.put_upload = PlinnFolder.put_upload.im_func
cmfPortalFolderSecurity.declareProtected(AddPortalContent, 'put_upload')
CMFPortalFolder.put_upload = PlinnFolder.put_upload.im_func
+cmfPortalFolderSecurity.declarePublic('getCPInfo')
+CMFPortalFolder.getCPInfo = getCPInfo
+
+cmfPortalFolderSecurity.declarePublic('getCP')
+CMFPortalFolder.popCP = popCP
+
cmfPortalFolderSecurity.apply(CMFPortalFolder)
cmfPortalFolderSecurity.apply(CMFPortalFolder)
- <div metal:define-macro="clipboard" tal:condition="python:not request.SESSION.get('editBoxes')" tal:omit-tag="" i18n:domain="plinn" tal:on-error="python:here.emptyClipboard(empty=True,ajax=True) and None">
+ <div metal:define-macro="clipboard"
+ tal:condition="python:not request.SESSION.get('editBoxes')"
+ tal:omit-tag=""
+ i18n:domain="plinn"
+ tal:on-error="python:here.emptyClipboard(empty=True,ajax=True) and None">
<table tal:condition="clip" class="clipboard" cellspacing="0" tal:define="clip here/getCPInfoList">
<tr><th i18n:translate="">Clipboard</th></tr>
<tr><td>
<table tal:condition="clip" class="clipboard" cellspacing="0" tal:define="clip here/getCPInfoList">
<tr><th i18n:translate="">Clipboard</th></tr>
<tr><td>
<ul>
<li tal:repeat="item clip" tal:attributes="class python:repeat['item'].odd() and 'odd' or 'even'"><input type="checkbox" name="indexes:int:list" tal:attributes="value repeat/item/index"/><a tal:attributes="href item/url ; title item/title"><img tal:attributes="src item/icon ; alt item/type ; height item/height ; width item/width" border="0" /> <span tal:replace="item/title">Title</span></a></li>
</ul>
<ul>
<li tal:repeat="item clip" tal:attributes="class python:repeat['item'].odd() and 'odd' or 'even'"><input type="checkbox" name="indexes:int:list" tal:attributes="value repeat/item/index"/><a tal:attributes="href item/url ; title item/title"><img tal:attributes="src item/icon ; alt item/type ; height item/height ; width item/width" border="0" /> <span tal:replace="item/title">Title</span></a></li>
</ul>
- <!--
- <input type="submit" name="delete" value="Delete" i18n:attributes="value" style="float:left"/>
- <input type="submit" name="empty" value="Empty" i18n:attributes="value" style="float:right" />
- -->
+ <input type="submit" name="delete" value="Delete" i18n:attributes="value" style="float:left"/>
+ <input type="submit" name="empty" value="Empty" i18n:attributes="value" style="float:right" />
</form>
</td></tr>
</table>
</form>
</td></tr>
</table>