[CMF-checkins] CVS: CMF/CMFDefault/skins/content -
document_edit.py:1.7.4.1 metadata_edit.py:1.6.4.1
newsitem_edit.py:1.7.4.1
Tres Seaver
tseaver at zope.com
Thu Apr 29 11:37:09 EDT 2004
Update of /cvs-repository/CMF/CMFDefault/skins/content
In directory cvs.zope.org:/tmp/cvs-serv17086/CMFDefault/skins/content
Modified Files:
Tag: tseaver-permissiongeddon-branch
document_edit.py metadata_edit.py newsitem_edit.py
Log Message:
- Enforced new "local permissions" pattern: each top-level CMF product
should have a 'permissions.py' module which imports / declares all
permissions used within the product; other modules within the product
should import from there. Likewise for 'exceptions.py'. CMFCorePermissions
delenda est!
=== CMF/CMFDefault/skins/content/document_edit.py 1.7 => 1.7.4.1 ===
--- CMF/CMFDefault/skins/content/document_edit.py:1.7 Wed Jan 7 11:31:47 2004
+++ CMF/CMFDefault/skins/content/document_edit.py Thu Apr 29 11:36:38 2004
@@ -2,11 +2,11 @@
##parameters=text_format, text, file='', SafetyBelt='', change_and_view=''
##title=Edit a document
##
-from Products.CMFCore.CMFCoreExceptions import EditingConflict
-from Products.CMFCore.CMFCoreExceptions import IllegalHTML
-from Products.CMFCore.CMFCoreExceptions import ResourceLockedError
-from Products.CMFDefault.utils import scrubHTML
from Products.PythonScripts.standard import urlencode
+from Products.CMFDefault.exceptions import EditingConflict
+from Products.CMFDefault.exceptions import IllegalHTML
+from Products.CMFDefault.exceptions import ResourceLockedError
+from Products.CMFDefault.utils import scrubHTML
try:
text = scrubHTML( text ) # Strip Javascript, etc.
=== CMF/CMFDefault/skins/content/metadata_edit.py 1.6 => 1.6.4.1 ===
--- CMF/CMFDefault/skins/content/metadata_edit.py:1.6 Wed Jan 7 11:31:47 2004
+++ CMF/CMFDefault/skins/content/metadata_edit.py Thu Apr 29 11:36:38 2004
@@ -2,9 +2,10 @@
##parameters=allowDiscussion=None, title=None, subject=None, description=None, contributors=None, effective_date=None, expiration_date=None, format=None, language=None, rights=None, change_and_edit='', change_and_view=''
##title=Update Content Metadata
##
-from Products.CMFCore.CMFCoreExceptions import ResourceLockedError
-from Products.CMFCore.utils import getToolByName
from Products.PythonScripts.standard import urlencode
+from Products.CMFCore.utils import getToolByName
+from Products.CMFDefault.exceptions import ResourceLockedError
+
dtool = getToolByName(script, 'portal_discussion')
def tuplify( value ):
=== CMF/CMFDefault/skins/content/newsitem_edit.py 1.7 => 1.7.4.1 ===
--- CMF/CMFDefault/skins/content/newsitem_edit.py:1.7 Wed Jan 7 11:31:47 2004
+++ CMF/CMFDefault/skins/content/newsitem_edit.py Thu Apr 29 11:36:38 2004
@@ -2,10 +2,10 @@
##parameters=text, description, text_format=None, change_and_view=''
##title=Edit a news item
##
-from Products.CMFCore.CMFCoreExceptions import IllegalHTML
-from Products.CMFCore.CMFCoreExceptions import ResourceLockedError
-from Products.CMFDefault.utils import scrubHTML
from Products.PythonScripts.standard import urlencode
+from Products.CMFDefault.exceptions import IllegalHTML
+from Products.CMFDefault.exceptions import ResourceLockedError
+from Products.CMFDefault.utils import scrubHTML
try:
text = scrubHTML( text ) # Strip Javascript, etc.
More information about the CMF-checkins
mailing list