- import refactoring
authorborax
Thu, 13 Aug 2009 00:23:45 +0200
changeset 7 1d29e2389bd3
parent 6 55d4f1636c11
child 8 455b16a502c4
- import refactoring
.project
ztfy/utils/file.py
ztfy/utils/traversing.py
--- a/.project	Wed Aug 12 17:15:38 2009 +0200
+++ b/.project	Thu Aug 13 00:23:45 2009 +0200
@@ -3,7 +3,7 @@
 	<name>ZTFY.utils</name>
 	<comment></comment>
 	<projects>
-		<project>Virtual Eggs</project>
+		<project>EGGS</project>
 	</projects>
 	<buildSpec>
 		<buildCommand>
--- a/ztfy/utils/file.py	Wed Aug 12 17:15:38 2009 +0200
+++ b/ztfy/utils/file.py	Thu Aug 13 00:23:45 2009 +0200
@@ -17,24 +17,24 @@
 # import standard packages
 
 # import Zope3 interfaces
+from z3c.form.interfaces import IFileWidget
 from zope.app.file.interfaces import IFile
 from zope.schema.interfaces import IBytes
-from z3c.form.interfaces import IFileWidget
 
 # import local interfaces
 
 # import Zope3 packages
-from zope import component
+from z3c.form.converter import FileUploadDataConverter as BaseDataConverter
 from zope.app.file import File
+from zope.component import adapts
 from zope.schema.fieldproperty import FieldProperty
-from z3c.form.converter import FileUploadDataConverter as BaseDataConverter
 
 # import local packages
 
 
 class FileUploadDataConverter(BaseDataConverter):
 
-    component.adapts(IBytes, IFileWidget)
+    adapts(IBytes, IFileWidget)
 
     def toWidgetValue(self, value):
         return value or ''
--- a/ztfy/utils/traversing.py	Wed Aug 12 17:15:38 2009 +0200
+++ b/ztfy/utils/traversing.py	Thu Aug 13 00:23:45 2009 +0200
@@ -21,8 +21,8 @@
 # import local interfaces
 
 # import Zope3 packages
+from zope.app import zapi
 from zope.interface import Interface
-from zope.app import zapi
 
 # import local packages