[Checkins] SVN: z3c.contents/trunk/src/z3c/contents/interfaces.py declare some form variables

Roger Ineichen roger at projekt01.ch
Sat Apr 12 18:40:43 EDT 2008


Log message for revision 85295:
  declare some form variables

Changed:
  U   z3c.contents/trunk/src/z3c/contents/interfaces.py

-=-
Modified: z3c.contents/trunk/src/z3c/contents/interfaces.py
===================================================================
--- z3c.contents/trunk/src/z3c/contents/interfaces.py	2008-04-12 22:25:52 UTC (rev 85294)
+++ z3c.contents/trunk/src/z3c/contents/interfaces.py	2008-04-12 22:40:42 UTC (rev 85295)
@@ -27,7 +27,39 @@
 class IContentsPage(interfaces.ITable):
     """Container management page."""
 
+    searchForm = zope.interface.Attribute('Search form')
 
+    allowCut = zope.schema.Bool(
+        title=u'Allow cut',
+        description=(u'Allow cut operation if available.'),
+        default=True)
+
+    allowCopy = zope.schema.Bool(
+        title=u'Allow copy',
+        description=(u'Allow copy operation if available.'),
+        default=True)
+
+    allowDelete = zope.schema.Bool(
+        title=u'Allow delete',
+        description=(u'Allow delete operation if available.'),
+        default=True)
+
+    allowPaste = zope.schema.Bool(
+        title=u'Allow paste',
+        description=(u'Allow paste operation if available.'),
+        default=True)
+
+    allowRename = zope.schema.Bool(
+        title=u'Allow rename',
+        description=(u'Allow rename operation if available.'),
+        default=True)
+
+    allowSearch = zope.schema.Bool(
+        title=u'Allow search',
+        description=(u'Allow search.'),
+        default=True)
+
+
 class ISearch(zope.interface.Interface):
     """
     Search support for containers.



More information about the Checkins mailing list