[Checkins] SVN: zope.site/trunk/src/zope/site/folder.py coding standard
Wolfgang Schnerring
wosc at wosc.de
Mon Jul 27 09:01:19 EDT 2009
Log message for revision 102342:
coding standard
Changed:
U zope.site/trunk/src/zope/site/folder.py
-=-
Modified: zope.site/trunk/src/zope/site/folder.py
===================================================================
--- zope.site/trunk/src/zope/site/folder.py 2009-07-27 12:17:37 UTC (rev 102341)
+++ zope.site/trunk/src/zope/site/folder.py 2009-07-27 13:01:19 UTC (rev 102342)
@@ -1,3 +1,21 @@
+#############################################################################
+#
+# Copyright (c) 2009 Zope Foundation 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.
+#
+##############################################################################
+"""
+
+$Id$
+"""
+
from zope.interface import implements, directlyProvides
from zope.site.interfaces import IFolder, IRootFolder
@@ -4,17 +22,20 @@
from zope.site.site import SiteManagerContainer
from zope.location.interfaces import ISite
-from zope.container.folder import Folder
+import zope.container.folder
-class Folder(Folder, SiteManagerContainer):
+class Folder(zope.container.folder.Folder, SiteManagerContainer):
+
implements(IFolder)
+
def rootFolder():
f = Folder()
directlyProvides(f, IRootFolder)
return f
+
class FolderSublocations(object):
"""Get the sublocations of a folder
More information about the Checkins
mailing list