[Zope-PTK] CMF Help immediately ...!

Muhammad Jahanzeb jahanzeb@bigfoot.com
Mon, 12 Mar 2001 18:14:55 +0500


My problem is that I have not been able to import the CMF in proper form, it
always is seen in a broken form. Tres Seavor advised me the following patch.

Tres Seavor wrote:

The CMF requires either version 2.3.1 of Zope, or version 2.3.0
with this one-line patch to fix this bug (apply the patch to
the file, 'lib\python\AccessControl\SecurityInfo.py' under
your Zope installation):

[/usr/local/zope/Zope2-head/lib/python/AccessControl] $ cvs diff \
-r Zope-2_3_0-src SecurityInfo.py
Index: SecurityInfo.py
===================================================================
RCS file: /cvs-repository/Zope2/lib/python/AccessControl/SecurityInfo.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- SecurityInfo.py 2001/01/16 20:01:09 1.7
+++ SecurityInfo.py 2001/02/08 16:45:35 1.8
@@ -242,7 +242,7 @@
         for permission_name, names in permissions:
             roles = getRoles(permission_name, ())
             if len(roles):
-                entry = (permission_name, tuple(names), tuple(roles))
+                entry = (permission_name, tuple(names),
tuple(roles.keys()))
             else:
                 entry = (permission_name, tuple(names))
             __ac_permissions__.append(entry)


I have patched the security_info.py file in the AccessControl folder. When I
try to start the Zserver, the process gets aborted and the window closes
without any message or so. Now even when I restore the previous file, it
doesnt get back to normal execution and Zserver is not getting started.
Please have a word on this issue.

-Jzb