[Checkins] SVN: Sandbox/luciano/kirbi/src/kirbi/collection.py added collection.py

Luciano Ramalho luciano at ramalho.org
Sat Aug 18 18:52:40 EDT 2007


Log message for revision 78976:
  added collection.py
  

Changed:
  A   Sandbox/luciano/kirbi/src/kirbi/collection.py

-=-
Added: Sandbox/luciano/kirbi/src/kirbi/collection.py
===================================================================
--- Sandbox/luciano/kirbi/src/kirbi/collection.py	                        (rev 0)
+++ Sandbox/luciano/kirbi/src/kirbi/collection.py	2007-08-18 22:52:39 UTC (rev 78976)
@@ -0,0 +1,27 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Kirbi item collection
+"""
+
+import grok
+from interfaces import ICollection
+from zope.interface import implements
+
+class Collection(grok.Container):
+    implements(ICollection)
+    def __init__(self, title, private=False):
+        super(Collection, self).__init__()
+        self.title = title
+        self.private = False ### XXX: implement private collections
+



More information about the Checkins mailing list