[CMF-checkins] SVN: CMF/trunk/CMFUid/ - minor cleanup

Yvo Schubbe y.2007- at wcm-solutions.de
Sun Jun 24 03:49:58 EDT 2007


Log message for revision 77002:
  - minor cleanup

Changed:
  U   CMF/trunk/CMFUid/UniqueIdAnnotationTool.py
  U   CMF/trunk/CMFUid/tests/test_uidannotation.py

-=-
Modified: CMF/trunk/CMFUid/UniqueIdAnnotationTool.py
===================================================================
--- CMF/trunk/CMFUid/UniqueIdAnnotationTool.py	2007-06-24 07:45:11 UTC (rev 77001)
+++ CMF/trunk/CMFUid/UniqueIdAnnotationTool.py	2007-06-24 07:49:57 UTC (rev 77002)
@@ -22,8 +22,10 @@
 from Acquisition import Implicit
 from Globals import InitializeClass
 from Globals import Persistent
+from OFS.interfaces import IObjectClonedEvent
 from OFS.PropertyManager import PropertyManager
 from OFS.SimpleItem import SimpleItem
+from zope.app.container.interfaces import IObjectAddedEvent
 from zope.component import queryUtility
 from zope.interface import implements
 
@@ -35,8 +37,6 @@
 from Products.CMFUid.interfaces import IUniqueIdAnnotationManagement
 from Products.CMFUid.interfaces import UniqueIdError
 
-from OFS.interfaces import IObjectClonedEvent
-from zope.app.container.interfaces import IObjectAddedEvent
 
 class UniqueIdAnnotation(Persistent, Implicit):
 

Modified: CMF/trunk/CMFUid/tests/test_uidannotation.py
===================================================================
--- CMF/trunk/CMFUid/tests/test_uidannotation.py	2007-06-24 07:45:11 UTC (rev 77001)
+++ CMF/trunk/CMFUid/tests/test_uidannotation.py	2007-06-24 07:49:57 UTC (rev 77002)
@@ -18,31 +18,30 @@
 import unittest
 import Testing
 
+import transaction
+from AccessControl.SecurityManagement import newSecurityManager
 from Acquisition import Implicit
 
 from zope.component import getSiteManager
 from zope.component import getUtility
+from zope.interface import implements
 from zope.interface.verify import verifyClass
-from zope.interface import implements
 
 from Products.CMFCore.PortalFolder import PortalFolder
-from Products.CMFUid.testing import UidEventZCMLLayer
 from Products.CMFCore.tests.base.dummy import DummyContent
 from Products.CMFCore.tests.base.testcase import SecurityTest
+from Products.CMFCore.tests.test_CMFCatalogAware import SimpleFolder
+from Products.CMFCore.tests.test_CMFCatalogAware import TheClass
+from Products.CMFCore.tests.test_PortalFolder import _AllowedUser
+from Products.CMFCore.tests.test_PortalFolder import _SensitiveSecurityPolicy
 from Products.CMFUid.interfaces import IUniqueIdAnnotationManagement
 from Products.CMFUid.interfaces import IUniqueIdHandler
 from Products.CMFUid.interfaces import UniqueIdError
+from Products.CMFUid.testing import UidEventZCMLLayer
 
-from Products.CMFCore.tests.test_PortalFolder import _AllowedUser
-from Products.CMFCore.tests.test_PortalFolder import _SensitiveSecurityPolicy
-from AccessControl.SecurityManagement import newSecurityManager
-from Products.CMFCore.tests.test_CMFCatalogAware import TheClass
-from Products.CMFCore.tests.test_CMFCatalogAware import SimpleFolder
+UID_ATTRNAME = 'cmf_uid'
 
-import transaction
 
-UID_ATTRNAME = 'cmf_uid'
-
 class DummyUniqueIdHandlerTool(Implicit):
 
     implements(IUniqueIdHandler)
@@ -64,6 +63,7 @@
         except AttributeError:
            raise UniqueIdError
 
+
 class UniqueIdAnnotationToolTests(SecurityTest):
 
     layer = UidEventZCMLLayer



More information about the CMF-checkins mailing list