[Zope] setting default security permissions

Sidnei da Silva sidnei@x3ng.com.br
Fri, 12 Apr 2002 13:56:03 -0300


Anyway, seems that there was a bug on the permission machinery, that was 
solved today with the people at ZC, during the Bug Day.

The fixes are on CVS.

[]'s

On Qui 11 Abr 2002 18:23, Tom Cameron wrote:
| After more experimenting, I discovered that a restart of the zope server
| solved the problem.
|
| Nice to know, but I dont really wish to restart zope everytime I make a
| change. I am using Zope 2.5 and it appears that the refresh does not
| refresh the default security permissions.
|
| Tom
|
| => -----Original Message-----
| => From: Sidnei da Silva [mailto:sidnei@x3ng.com.br]
| => Sent: Thursday, April 11, 2002 9:57 AM
| => To: tom@mooball.com; Zope-dev
| => Cc: zope@zope.org
| => Subject: Re: [Zope] setting default security permissions
| =>
| =>
| => I had the same problem a few weeks ago, and i posted my bug to
| => the collector
| => with a example class.
| =>
| => See there:
| => http://collector.zope.org/Zope/275
| =>
| => This friday, 9:00am EST there will be a "BugDay" on
| => irc://irc.zope.org/#zope-dev
| =>
| => Description of BugDays here:
| => http://dev.zope.org/CVS/BugDays
| =>
| =>
| => I hope someone will be able to discuss this bug with me during
| => the BugDay,
| => and anyone with the same problem to be around and help.
| =>
| => []'s
| =>
| => On Sab 06 Abr 2002 01:43, you wrote:
| => | I am building a python product. I am having trouble getting default
| => | security permissions to set.
| => | I am able to declare the permission properly, but the defaults
| => dont work.
| => |
| => | I try the line
| => |     security = ClassSecurityInfo()
| => |     security.setPermissionDefault('View User Home',
| => |                       ['Anonymous','Authenticated'])
| => |     security.declareProtected('View User Home', 'home')
| => |
| => | The 'declareProtected' works, but the 'setPermissionDefault'
| => has no effect
| => | on anything.
| => |
| => | I have no idea what else I need to be doing.
| => |
| => | Tom
| => |
| => |
| => |
| => |
| => | _______________________________________________
| => | Zope maillist  -  Zope@zope.org
| => | http://lists.zope.org/mailman/listinfo/zope
| => | **   No cross posts or HTML encoding!  **
| => | (Related lists -
| => |  http://lists.zope.org/mailman/listinfo/zope-announce
| => |  http://lists.zope.org/mailman/listinfo/zope-dev )
| =>
| => --
| => Sidnei da Silva (dreamcatcher) <sidnei@x3ng.com.br>
| => X3ng Web Technology <http://www.x3ng.com.br>
| => GNU/Linux user 257852
| => Debian GNU/Linux 3.0 (Sid) 2.4.19-pre6-ben0 ppc
| =>
| => "But what we need to know is, do people want nasally-insertable
| => computers?"
| =>
|
|
|
| _______________________________________________
| Zope maillist  -  Zope@zope.org
| http://lists.zope.org/mailman/listinfo/zope
| **   No cross posts or HTML encoding!  **
| (Related lists -
|  http://lists.zope.org/mailman/listinfo/zope-announce
|  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
Sidnei da Silva (dreamcatcher) <sidnei@x3ng.com.br>
X3ng Web Technology <http://www.x3ng.com.br>
GNU/Linux user 257852
Debian GNU/Linux 3.0 (Sid) 2.4.19-pre6-ben0 ppc

Linux: because a PC is a terrible thing to waste
	-- ksh@cis.ufl.edu put this on Tshirts in '93