[Checkins] SVN: z3c.dav/trunk/src/z3c/dav/properties.py Remove the namespace attribute from the OpaqueField as it was replaced in a

Michael Kerrin michael.kerrin at openapp.ie
Sun May 13 14:29:17 EDT 2007


Log message for revision 75723:
  Remove the namespace attribute from the OpaqueField as it was replaced in a
  previous checkin by the tag attribute and is no longer used.
  

Changed:
  U   z3c.dav/trunk/src/z3c/dav/properties.py

-=-
Modified: z3c.dav/trunk/src/z3c/dav/properties.py
===================================================================
--- z3c.dav/trunk/src/z3c/dav/properties.py	2007-05-13 15:02:43 UTC (rev 75722)
+++ z3c.dav/trunk/src/z3c/dav/properties.py	2007-05-13 18:29:16 UTC (rev 75723)
@@ -141,11 +141,6 @@
 
 class IOpaqueField(IField):
 
-    namespace = schema.BytesLine( # should this be schema.URI
-        title = u"Namespace",
-        description = u"Namespace to which the value belongs",
-        required = False)
-
     tag = schema.BytesLine(
         title = u"ElementTree tag",
         description = u"This is the key used by the opaque properties storage",
@@ -158,37 +153,29 @@
       >>> from zope.interface.verify import verifyObject
       >>> field = OpaqueField(__name__ = 'test',
       ...    title = u'Test opaque field',
-      ...    namespace = 'testns:',
       ...    tag = '{testns:}test')
 
       >>> IOpaqueField.providedBy(field)
       True
-      >>> field.namespace
-      'testns:'
       >>> field.tag
       '{testns:}test'
 
       >>> from zope.interface.verify import verifyObject
       >>> field = OpaqueField(__name__ = 'test',
       ...    title = u'Test opaque field',
-      ...    namespace = None,
       ...    tag = 'test')
       >>> IOpaqueField.providedBy(field)
       True
-      >>> field.namespace is None
-      True
       >>> field.tag
       'test'
 
     """
     interface.implements(IOpaqueField)
 
-    namespace = FieldProperty(IOpaqueField["namespace"])
     tag = FieldProperty(IOpaqueField["tag"])
 
-    def __init__(self, tag, namespace = None, **kw):
+    def __init__(self, tag, **kw):
         super(OpaqueField, self).__init__(**kw)
-        self.namespace = namespace
         self.tag = tag
 
     def get(self, obj):
@@ -230,7 +217,6 @@
         self.iface = IOpaquePropertyStorage
         self.field = OpaqueField(
             __name__ = name,
-            namespace = namespace,
             tag = tag,
             title = u"",
             description = u"")



More information about the Checkins mailing list