[Checkins] SVN: z3c.autoinclude/trunk/src/z3c/autoinclude/zcml.py use zope.schema.BytesLine instead of TextLine for zcml filename, because that's what zope.configuration.xmlconfig uses in the 'include' directive's interface. i don't really have any idea what the difference is so i'd better just do what it does..

Ethan Jucovy ejucovy at openplans.org
Sat Jan 17 15:01:44 EST 2009


Log message for revision 94809:
  use zope.schema.BytesLine instead of TextLine for zcml filename, because that's what zope.configuration.xmlconfig uses in the 'include' directive's interface. i don't really have any idea what the difference is so i'd better just do what it does..

Changed:
  U   z3c.autoinclude/trunk/src/z3c/autoinclude/zcml.py

-=-
Modified: z3c.autoinclude/trunk/src/z3c/autoinclude/zcml.py
===================================================================
--- z3c.autoinclude/trunk/src/z3c/autoinclude/zcml.py	2009-01-17 19:44:37 UTC (rev 94808)
+++ z3c.autoinclude/trunk/src/z3c/autoinclude/zcml.py	2009-01-17 20:01:44 UTC (rev 94809)
@@ -2,7 +2,7 @@
 from zope.configuration.xmlconfig import include, includeOverrides
 from zope.configuration.fields import GlobalObject
 from zope.dottedname.resolve import resolve
-from zope.schema import TextLine
+from zope.schema import BytesLine
 
 from z3c.autoinclude.dependency import DependencyFinder
 from z3c.autoinclude.utils import distributionForPackage
@@ -62,7 +62,7 @@
         required=True,
         )
 
-    file = TextLine(
+    file = BytesLine(
         title=u"ZCML filename to look for",
         description=u"""
         Name of a particular ZCML file to look for.
@@ -72,6 +72,7 @@
         required=False,
         )
 
+
 def includePluginsDirective(_context, package, file=None):
     dotted_name = package.__name__
     if file is None:
@@ -93,4 +94,3 @@
 
     for filename in zcml_to_look_for:
         includeZCMLGroup(_context, info, filename, override=True)
-    



More information about the Checkins mailing list