[Zope-PTK] Re: Zope.org feedback
Tres Seaver
tseaver@digicool.com
Sun, 11 Mar 2001 09:48:01 -0500 (EST)
On Sun, 11 Mar 2001, Hezbollah wrote:
> Thank you very much for your quick reply.
> You wrote:
> Please check out the newly-released 1.0 beta:
>
> http://cmf.zope.org/download/CMF-1.0beta
>
> I have tried hard to install it but in vain. I untar it in my
> Products Folder but it it gave me this message :
>
> Traceback (innermost last):
<snip>
> File "C:\WINNTP~1\WINNT-~1\lib\python\AccessControl\SecurityInfo.py", line
> 245, in apply
> entry = (permission_name, tuple(names), tuple(roles))
> TypeError: tuple() argument must be a sequence
>
> I know you are very busy, I am really sorry to disturb you
> again and again, but please save some time to reply and suggest
> to me.
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)
Also, you will get the benefit of more people's experience if you
will direct such questions to the CMF/PTK mailing list:
zope-ptk@zope.org.
Tres.
--
===============================================================
Tres Seaver tseaver@digicool.com
Digital Creations "Zope Dealers" http://www.zope.org