Log message for revision 123342: explicit is better than implicit Changed: U Zope/branches/2.13/src/OFS/Image.py U Zope/branches/2.13/src/webdav/LockItem.py
-=- Modified: Zope/branches/2.13/src/OFS/Image.py =================================================================== --- Zope/branches/2.13/src/OFS/Image.py 2011-11-14 16:42:11 UTC (rev 123341) +++ Zope/branches/2.13/src/OFS/Image.py 2011-11-14 16:42:24 UTC (rev 123342) @@ -34,7 +34,6 @@ from webdav.Lockable import ResourceLockedError from ZPublisher import HTTPRangeSupport from ZPublisher.HTTPRequest import FileUpload -from ZPublisher.Iterators import filestream_iterator from zExceptions import Redirect from zope.contenttype import guess_content_type from zope.interface import implementedBy @@ -654,6 +653,9 @@ return '' +InitializeClass(File) + + manage_addImageForm=DTMLFile('dtml/imageAdd',globals(), Kind='Image',kind='image') def manage_addImage(self, id, file, title='', precondition='', content_type='', @@ -893,7 +895,9 @@ return '%s />' % result +InitializeClass(Image) + def cookId(id, title, file): if not id and hasattr(file,'filename'): filename=file.filename Modified: Zope/branches/2.13/src/webdav/LockItem.py =================================================================== --- Zope/branches/2.13/src/webdav/LockItem.py 2011-11-14 16:42:11 UTC (rev 123341) +++ Zope/branches/2.13/src/webdav/LockItem.py 2011-11-14 16:42:24 UTC (rev 123342) @@ -15,6 +15,7 @@ import time +from AccessControl.class_init import InitializeClass from AccessControl.owner import ownerInfo from AccessControl.SecurityInfo import ClassSecurityInfo from Persistence import Persistent @@ -171,7 +172,6 @@ return s def asXML(self): - s = """<?xml version="1.0" encoding="utf-8" ?> <d:prop xmlns:d="DAV:"> <d:lockdiscovery> @@ -179,3 +179,5 @@ </d:lockdiscovery> </d:prop>""" % self.asLockDiscoveryProperty(ns="d") return s + +InitializeClass(LockItem) _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org https://mail.zope.org/mailman/listinfo/zope-checkins