[ZCM] [ZC] 275/ 2 Comment "setPermissionDefault not setting anything at all."

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Mon, 18 Mar 2002 09:47:05 -0500


Issue #275 Update (Comment) "setPermissionDefault not setting anything at all."
 Status Pending, Zope/bug critical
To followup, visit:
  http://collector.zope.org/Zope/275

==============================================================
= Comment - Entry #2 by sidnei on Mar 18, 2002 9:46 am


Uploaded:  "Test-0.2.tgz"
 - http://collector.zope.org/Zope/275/Test-0.2.tgz/view
Made some modifications, suggested by TheJester, but not difference.

Removed __ac_roles__. Created the role Produtor on the root folder.
Instantiated Test class, created user with Produtor role. User cant 
log in. If i set the same permissions via Security Tab to the Produtor role
the user can log in.

HELP!
________________________________________
= Request - Entry #1 by sidnei on Mar 7, 2002 11:25 am


Uploaded:  "Test-0.1.tgz"
 - http://collector.zope.org/Zope/275/Test-0.1.tgz/view
This is an issue which i have posted to the list and 
Chris McDonough told me to put on the collector, so 
here it is.

I've created a Class that is based on Folder. On this
class, i set __ac_roles__ to create a few roles and
use setPermissionDefault do assign some permissions
to these roles. However, the roles dont get any permission
set, which you can test by creating a user Test Folder, creating
a User Folder and creating a user with Produtor role.

Result: the user cannot log in. But if you go to the Security
tab of the same folder and check the 'View management screens'
on the Produtor role, the user can log in. 

So, i dont know exactly whats going on here, but seems to be
a serious bug.

Test Class attached. Thanx
==============================================================