Re: [Zope] creating a new permission

2006-06-07 Thread Sascha Welter
(Wed, Jun 07, 2006 at 12:00:10PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: "thomas desvenain" <[EMAIL PROTECTED]>
> 
> i am searching for hours, and i don't find how to define a new
> permission, in python code, for my product

Something I wrote a while ago, "Introduction to some Zope security 
settings":
http://betabug.ch/blogs/ch-athens/196

Regards,

Sascha

-- 
About the record changer:
"Those with an all-LP collection will not want it (the man who is too
lazy to change records every 25 minutes is too lazy to live)..."
   Excerpt from the book "Hi-Fi All-New" 1958 Edition
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] creating a new permission

2006-06-07 Thread Martin Aspeli


thomas desvenain wrote:
> 
> i am searching for hours, and i don't find how to define a new
> permission, in python code, for my product
> 

Permissions kind of "spring into existence" when they are used. For example,
Poi defines some additional permissions in Products/Poi/permissions.py. It
then calls setDefaultRoles() to set the default roles of each permission.
When these are used e.g. in security.declareProtected() statements around
methods, they become available in the ZMI.

Martin
--
View this message in context: 
http://www.nabble.com/creating-a-new-permission-t1746362.html#a4748103
Sent from the Zope - General forum at Nabble.com.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] creating a new permission

2006-06-07 Thread Andreas Jung
Look at the e.g. at the PloneCollectorNG sources..it defines new roles and 
permissions.


-aj

--On 7. Juni 2006 09:53:10 +0200 thomas desvenain 
<[EMAIL PROTECTED]> wrote:



hello,

i am searching for hours, and i don't find how to define a new
permission, in python code, for my product

can you help me ?

thanks

thomas
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -  http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )




--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting


pgplEDWljHLVI.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] creating a new permission

2006-06-07 Thread thomas desvenain

hello,

i am searching for hours, and i don't find how to define a new
permission, in python code, for my product

can you help me ?

thanks

thomas
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )