Re: [Zope3-Users] PAU, how to grant roles to groups

2006-09-08 Thread Denis Shaposhnikov
> "Stephan" == Stephan Richter <[EMAIL PROTECTED]> writes: Stephan> Right. Note that you do not have to use the "Grant" Stephan> view. You can also grant permissions and roles Stephan> programmatically, which is what I am doing in my customer Stephan> projects. Could you show a little exa

Re: [Zope3-Users] need help on skins

2006-09-08 Thread Denis Shaposhnikov
> "Stephan" == Stephan Richter <[EMAIL PROTECTED]> writes: >> > layer="admin_layer"     template="admin_details.pt"/> >> >> and >> >> > layer="user_layer"     template="user_details.pt"/> >> >> ? Stephan> Absolutely! :-) That's the point of layers and skins! apidoc from 3.3.0b2 said

Re: [Zope3-Users] PAU, how to grant roles to groups

2006-09-07 Thread Denis Shaposhnikov
> "Stephan" == Stephan Richter <[EMAIL PROTECTED]> writes: Stephan> You cannot grant permissions via ZCML to principals that are Stephan> located in the ZODB. You have to use the "Grant" view of the Stephan> folder for this. Oh, that's a bad news. Am I right that Zope3 have principals eith

[Zope3-Users] PAU, how to grant roles to groups

2006-09-07 Thread Denis Shaposhnikov
Hi! I'm exploring PAU and have a question. I've added PAU to `++etc++site/default` of my site and have added Group and Principal Folders (named `groups` and `users`) to it. I know, how to map permission to role. I can do it via ZCML. But my question is how to map groups from Group Folder of my PA

Re: [Zope3-Users] need help on skins

2006-09-06 Thread Denis Shaposhnikov
> "Stephan" == Stephan Richter <[EMAIL PROTECTED]> writes: Stephan> I think Albert's solution is okay, but I would also suggest Stephan> that you should consider redirecting to a different URL for Stephan> each user. Those different URLs could reflect the different Stephan> skins. Do you

Re: [Zope3-Users] need help on skins

2006-09-06 Thread Denis Shaposhnikov
> "Albertas" == Albertas Agejevas <[EMAIL PROTECTED]> writes: >> behaviour in Zope3? The simplest way as I see is use different >> skins? But how to dynamically change the skin to user's type? Albertas> You can set the skin in a handler to BeforeTraverseEvent. Albertas> You can find an ex

[Zope3-Users] need help on

2006-09-06 Thread Denis Shaposhnikov
Hi! I'm thinking on how to use Zope3 for my task and need some help. I have a web application which have different look for different users. Every user need to authenticate and have a some type like an Administrator, Operator, SomeManager, Just-A-User and so on. For example my webapp have an URL l