--- 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