[CMF-checkins] SVN: CMF/trunk/CMFDefault/skins/zpt_content/ -
replaced direct attribute calls by interface method calls
Yvo Schubbe
y.2006_ at wcm-solutions.de
Mon Feb 20 06:23:13 EST 2006
Log message for revision 41710:
- replaced direct attribute calls by interface method calls
Changed:
U CMF/trunk/CMFDefault/skins/zpt_content/document_edit_control.py
U CMF/trunk/CMFDefault/skins/zpt_content/folder_edit_control.py
U CMF/trunk/CMFDefault/skins/zpt_content/newsitem_edit_control.py
-=-
Modified: CMF/trunk/CMFDefault/skins/zpt_content/document_edit_control.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_content/document_edit_control.py 2006-02-20 08:09:41 UTC (rev 41709)
+++ CMF/trunk/CMFDefault/skins/zpt_content/document_edit_control.py 2006-02-20 11:23:12 UTC (rev 41710)
@@ -4,7 +4,7 @@
from Products.CMFDefault.exceptions import ResourceLockedError
from Products.CMFDefault.utils import Message as _
-if text_format != context.text_format or text != context.text:
+if text_format != context.text_format or text != context.EditableBody():
try:
context.edit(text_format, text, safety_belt=SafetyBelt)
return context.setStatus(True, _(u'Document changed.'))
Modified: CMF/trunk/CMFDefault/skins/zpt_content/folder_edit_control.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_content/folder_edit_control.py 2006-02-20 08:09:41 UTC (rev 41709)
+++ CMF/trunk/CMFDefault/skins/zpt_content/folder_edit_control.py 2006-02-20 11:23:12 UTC (rev 41710)
@@ -2,8 +2,8 @@
##
from Products.CMFDefault.utils import Message as _
-if title!=context.title or description != context.description:
+if title!=context.Title() or description != context.Description():
context.edit(title=title, description=description)
- return context.setStatus(True, _(u'Folder changed.'))
+ return context.setStatus(True, _(u'Metadata changed.'))
else:
return context.setStatus(False, _(u'Nothing to change.'))
Modified: CMF/trunk/CMFDefault/skins/zpt_content/newsitem_edit_control.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_content/newsitem_edit_control.py 2006-02-20 08:09:41 UTC (rev 41709)
+++ CMF/trunk/CMFDefault/skins/zpt_content/newsitem_edit_control.py 2006-02-20 11:23:12 UTC (rev 41710)
@@ -3,8 +3,8 @@
from Products.CMFDefault.exceptions import ResourceLockedError
from Products.CMFDefault.utils import Message as _
-if description != context.description or \
- text_format != context.text_format or text != context.text:
+if description != context.Description() or \
+ text_format != context.text_format or text != context.EditableBody():
try:
context.edit(text=text, description=description,
text_format=text_format)
More information about the CMF-checkins
mailing list