[CMF-checkins] CVS: Products/CMFDefault - Document.py:1.25 Favorite.py:1.8 File.py:1.15 Image.py:1.11 Link.py:1.7 NewsItem.py:1.10
Tres Seaver
tseaver@digicool.com
Thu, 2 Aug 2001 21:36:45 -0400
Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv415/CMFDefault
Modified Files:
Document.py Favorite.py File.py Image.py Link.py NewsItem.py
Log Message:
- Rip out spurious 'afterCreate' protocol.
=== Products/CMFDefault/Document.py 1.24 => 1.25 ===
from Products.CMFCore import CMFCorePermissions
-from Products.CMFCore.WorkflowCore import WorkflowAction, afterCreate
+from Products.CMFCore.WorkflowCore import WorkflowAction
from Products.CMFCore.utils import _format_stx, keywordsplitter
from utils import parseHeadersBody, SimpleHTMLParser, bodyfinder, _dtmldir
=== Products/CMFDefault/Favorite.py 1.7 => 1.8 ===
from Products.CMFCore import CMFCorePermissions
-from Products.CMFCore.WorkflowCore import afterCreate
factory_type_information = ( { 'id' : 'Favorite'
, 'meta_type' : 'Favorite'
@@ -135,7 +134,6 @@
remote_url))
o=Favorite( id, title, relUrl, description )
self._setObject(id,o)
- afterCreate(self.this()._getOb(id))
class Favorite( Link ):
=== Products/CMFDefault/File.py 1.14 => 1.15 ===
from Products.CMFCore import CMFCorePermissions
-from Products.CMFCore.WorkflowCore import WorkflowAction, afterCreate
+from Products.CMFCore.WorkflowCore import WorkflowAction
factory_type_information = ( { 'id' : 'File'
@@ -174,8 +174,6 @@
# constructor because the object is now in the ZODB and
# can span ZODB objects.
self._getOb(id).manage_upload(file)
-
- afterCreate(self._getOb(id))
class File( OFS.Image.File
=== Products/CMFDefault/Image.py 1.10 => 1.11 ===
from Products.CMFCore import CMFCorePermissions
-from Products.CMFCore.WorkflowCore import WorkflowAction, afterCreate
+from Products.CMFCore.WorkflowCore import WorkflowAction
factory_type_information = ( { 'id' : 'Image'
, 'meta_type' : 'Portal Image'
@@ -166,8 +166,6 @@
# 'Upload' the image. This is done now rather than in the
# constructor because it's faster (see File.py.)
self._getOb(id).manage_upload(file)
-
- afterCreate(self._getOb(id))
class Image( OFS.Image.Image
=== Products/CMFDefault/Link.py 1.6 => 1.7 ===
from Products.CMFCore import CMFCorePermissions
-from Products.CMFCore.WorkflowCore import WorkflowAction, afterCreate
+from Products.CMFCore.WorkflowCore import WorkflowAction
factory_type_information = ( { 'id' : 'Link'
, 'meta_type' : 'Link'
@@ -136,7 +136,6 @@
"""
o=Link( id, title, remote_url, description )
self._setObject(id,o)
- afterCreate(self.this()._getOb(id))
class Link( PortalContent
=== Products/CMFDefault/NewsItem.py 1.9 => 1.10 ===
from Products.CMFCore import CMFCorePermissions
from AccessControl import ClassSecurityInfo
-from Products.CMFCore.WorkflowCore import WorkflowAction, afterCreate
+from Products.CMFCore.WorkflowCore import WorkflowAction
factory_type_information = ( { 'id' : 'News Item'
, 'meta_type' : 'News Item'
@@ -143,8 +143,6 @@
, text_format=text_format
)
self._setObject(id, o)
- afterCreate(self.this()._getOb(id))
-
class NewsItem( Document ):
"""