[Checkins] SVN: z3c.website/branches/darrylcousins-trialbranch/ Included some more configuration to get it working: z.a.folder (for IReadContainer), z.a.authentication (for passwordManager registration), zope.dublincore and zope.renderer (for source registration). Again I have added these only if necessary to answer errors. To get around authentication problems (no http login for zope.Manager?) I have just gone with grantAll to zope.Anonymous in site.zcml so that I could view the site and try adding sites.

Darryl Cousins darryl at darrylcousins.net.nz
Fri Jun 29 21:13:35 EDT 2007


Log message for revision 77260:
  Included some more configuration to get it working: z.a.folder (for IReadContainer), z.a.authentication (for passwordManager registration), zope.dublincore and zope.renderer (for source registration). Again I have added these only if necessary to answer errors. To get around authentication problems (no http login for zope.Manager?) I have just gone with grantAll to zope.Anonymous in site.zcml so that I could view the site and try adding sites.

Changed:
  U   z3c.website/branches/darrylcousins-trialbranch/buildout.cfg
  U   z3c.website/branches/darrylcousins-trialbranch/setup.py
  U   z3c.website/branches/darrylcousins-trialbranch/src/z3c/website/tool/content.py

-=-
Modified: z3c.website/branches/darrylcousins-trialbranch/buildout.cfg
===================================================================
--- z3c.website/branches/darrylcousins-trialbranch/buildout.cfg	2007-06-30 00:22:18 UTC (rev 77259)
+++ z3c.website/branches/darrylcousins-trialbranch/buildout.cfg	2007-06-30 01:13:34 UTC (rev 77260)
@@ -34,18 +34,22 @@
             <browser:menu id="zmi_actions" title="Actions" />
 
             <include package="zope.app.appsetup" />
+            <include package="zope.app.authentication" />
             <include package="zope.app.component" />
             <include package="zope.app.container" />
             <include package="zope.app.error" />
             <include package="zope.app.file" />
+            <include package="zope.app.folder" />
             <include package="zope.app.i18n" />
             <include package="zope.app.publication" />
+            <include package="zope.app.renderer" />
             <include package="zope.app.security" />
             <include package="zope.app.securitypolicy" />
             <include package="zope.app.session" />
             <include package="zope.app.twisted" />
             <include package="zope.app.wsgi" />
             <include package="zope.annotation" />
+            <include package="zope.dublincore" />
             <include package="zope.component" />
             <include package="zope.contentprovider" />
             <include package="zope.location" />
@@ -86,6 +90,7 @@
 
             <role id="zope.Manager" title="Manager" />
             <grantAll role="zope.Manager" />
+            <grantAll role="zope.Anonymous" />
 
             <principal
                 id="zope.manager"

Modified: z3c.website/branches/darrylcousins-trialbranch/setup.py
===================================================================
--- z3c.website/branches/darrylcousins-trialbranch/setup.py	2007-06-30 00:22:18 UTC (rev 77259)
+++ z3c.website/branches/darrylcousins-trialbranch/setup.py	2007-06-30 01:13:34 UTC (rev 77260)
@@ -86,10 +86,12 @@
         'zc.resourcelibrary',
         'zc.table',
         'zope.annotation',
+        'zope.dublincore',
         'zope.app.content',
         'zope.app.container',
-       'zope.app.catalog',
+        'zope.app.catalog',
         'zope.app.pagetemplate',
+        'zope.app.renderer',
         'zope.app.session',
         'zope.app.generations',
         'zope.component',

Modified: z3c.website/branches/darrylcousins-trialbranch/src/z3c/website/tool/content.py
===================================================================
--- z3c.website/branches/darrylcousins-trialbranch/src/z3c/website/tool/content.py	2007-06-30 00:22:18 UTC (rev 77259)
+++ z3c.website/branches/darrylcousins-trialbranch/src/z3c/website/tool/content.py	2007-06-30 01:13:34 UTC (rev 77260)
@@ -20,7 +20,6 @@
 from zope.traversing.browser import absoluteURL
 from zope.app.component import hooks
 from zope.app.container.interfaces import IContainer
-from zope.app.folder.interfaces import IFolder
 from zope.viewlet import viewlet
 
 from z3c.website import interfaces
@@ -45,9 +44,6 @@
                 context = self.context.__parent__
             else:
                 return []
-            # just getting myself access to the site.
-            if IFolder.providedBy(context):
-                return []
             for item in context.values():
                 info = {}
                 info['url'] = absoluteURL(item, self.request)



More information about the Checkins mailing list