[Zope3-checkins] SVN: Zope3/branches/isarsprint-dav-work/src/zope/app/dav/interfaces.py Mark most DAV properties as readonly; it may be that some of the remaining

Martijn Pieters mj at zopatista.com
Thu Oct 14 06:31:48 EDT 2004


Log message for revision 28152:
  Mark most DAV properties as readonly; it may be that some of the remaining
  properties warrant being marked as readonly as well, but the current list I am
  at least sure about.
  

Changed:
  U   Zope3/branches/isarsprint-dav-work/src/zope/app/dav/interfaces.py

-=-
Modified: Zope3/branches/isarsprint-dav-work/src/zope/app/dav/interfaces.py
===================================================================
--- Zope3/branches/isarsprint-dav-work/src/zope/app/dav/interfaces.py	2004-10-14 10:12:22 UTC (rev 28151)
+++ Zope3/branches/isarsprint-dav-work/src/zope/app/dav/interfaces.py	2004-10-14 10:31:21 UTC (rev 28152)
@@ -40,9 +40,11 @@
                                 resources.  If present, it contains a
                                 timestamp of the moment when the
                                 resource was created (i.e., the moment
-                                it had non- null state).''')
+                                it had non- null state).''',
 
+                            readonly=True)
 
+
 class IDAVDisplayName(Interface):
 
     displayname = Text(title=u'''Provides a name for the resource that\
@@ -102,8 +104,10 @@
                                 The getcontentlength property MUST be
                                 defined on any DAV compliant resource
                                 that returns the Content-Length header
-                                in response to a GET.''')
+                                in response to a GET.''',
 
+                            readonly=True)
+
     getcontenttype = Text(title=u'''Contains the Content-Type header\
                                 returned by a GET without accept\
                                 headers''',
@@ -120,8 +124,10 @@
                    description=u'''\
                                 The getetag property MUST be defined
                                 on any DAV compliant resource that
-                                returns the Etag header.''')
+                                returns the Etag header.''',
 
+                            readonly=True)
+
     getlastmodified = Text(title=u'''Contains the Last-Modified header\
                                 returned by a GET method without\
                                 accept headers''',
@@ -138,9 +144,11 @@
                                 MUST be defined on any DAV compliant
                                 resource that returns the
                                 Last-Modified header in response to a
-                                GET.''')
+                                GET.''',
 
+                            readonly=True)
 
+
 class IDAV1Schema(IGETDependentDAVSchema):
     """DAV properties required for Level 1 compliance"""
 
@@ -150,9 +158,11 @@
                                 The resourcetype property MUST be
                                 defined on all DAV compliant
                                 resources.  The default value is
-                                empty.''')
+                                empty.''',
 
+                            readonly=True)
 
+
 class IDAV2Schema(IDAV1Schema):
     """DAV properties required for Level 2 compliance"""
 
@@ -169,8 +179,10 @@
                                  of this information if the requesting
                                  principal does not have sufficient
                                  access rights to see the requested
-                                 data.''')
+                                 data.''',
 
+                            readonly=True)
+
     supportedlock = Text(title=u'''To provide a listing of the lock\
                                 capabilities supported by the\
                                 resource''',
@@ -185,8 +197,9 @@
                                 controlled by access controls so a
                                 server is not required to provide
                                 information the client is not
-                                authorized to see.''')
+                                authorized to see.''',
 
+                            readonly=True)
 
 class IDAVSchema(IOptionalDAVSchema, IDAV2Schema):
     """Full DAV properties schema"""



More information about the Zope3-Checkins mailing list