Re: [Zope3-Users] Small skinning question...
On 10.05.2007, at 12:14, Thierry Florac wrote: Hi, I'm building a new application with Zope3. In this application, I can use several skins : - for all "back-office" and management pages, a single skin is used ; it's defined via an Apache rewrite rule on a specific virtual host - for front-office pages, the applied skin can be chosen by each "subsite" administrator between a set of skins made available to him. My idea is to use the "IBeforeTraverseEvent" on the "site" container, and to apply the selected skin when I'm on a front-office page. So my question is simple : can I know easilly (without hardcoding virtual hosts, in fact) if I'm on a back-office page or not and, in fact, if a specific skin has already been applied ? hm, one solution would be to store the skin name chosen in the session, and then look it up or set it in the traverser to look if a skin is applied you just have to test if the request implements your layer if IMyLayerInterface.providedBy(request) regards, bernd Thanks for any help, Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROTECTED] Tél. : +33 01.40.19.59.64 Fax. : +33 01.40.19.59.85 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Remote authentication
Am Donnerstag, 10. Mai 2007 18:13 schrieb David Pratt: > Hi. Has anyone got a bit of a blueprint for a remote authentication in > zope 3. I wish to authenticate on a z3 site (site 1) using credentials > stored on a different z3 site (site 2) over the Internet (otherwise > would likely use LDAP). I do not want to maintain users on site 1. I > only want users from a couple of groups on site 2 to be able to access > site 1. > > I was thinking of using xmlrpc but will likely use a different transport > with better security and encryption. To my mind, xmlrpc can also be transported via HTTPS. At a quick glance, I therefore cannot see any security issues. I'd rather think about performance problems. If HTTPS is no option, a VPN connection between the two servers would probably also be a secure solution. Regards, Hermann -- [EMAIL PROTECTED] GPG key ID: 299893C7 (on keyservers) FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Remote authentication
Hi Bernd. Yes, this should give me something similar to examine. Many thanks. Regards David Bernd Dorn wrote: as a plugin example you may want to take a look at http://svn.zope.org/ldappas/ regards, bernd On 10.05.2007, at 18:13, David Pratt wrote: Hi. Has anyone got a bit of a blueprint for a remote authentication in zope 3. I wish to authenticate on a z3 site (site 1) using credentials stored on a different z3 site (site 2) over the Internet (otherwise would likely use LDAP). I do not want to maintain users on site 1. I only want users from a couple of groups on site 2 to be able to access site 1. I was thinking of using xmlrpc but will likely use a different transport with better security and encryption. Anyone doing anything similar at the moment that could share their experience. I am reading through the zope.app.authentication to refresh my memory on plugins in the meantime. Many thanks. Regards, David ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Remote authentication
as a plugin example you may want to take a look at http:// svn.zope.org/ldappas/ regards, bernd On 10.05.2007, at 18:13, David Pratt wrote: Hi. Has anyone got a bit of a blueprint for a remote authentication in zope 3. I wish to authenticate on a z3 site (site 1) using credentials stored on a different z3 site (site 2) over the Internet (otherwise would likely use LDAP). I do not want to maintain users on site 1. I only want users from a couple of groups on site 2 to be able to access site 1. I was thinking of using xmlrpc but will likely use a different transport with better security and encryption. Anyone doing anything similar at the moment that could share their experience. I am reading through the zope.app.authentication to refresh my memory on plugins in the meantime. Many thanks. Regards, David ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Remote authentication
Hi. Has anyone got a bit of a blueprint for a remote authentication in zope 3. I wish to authenticate on a z3 site (site 1) using credentials stored on a different z3 site (site 2) over the Internet (otherwise would likely use LDAP). I do not want to maintain users on site 1. I only want users from a couple of groups on site 2 to be able to access site 1. I was thinking of using xmlrpc but will likely use a different transport with better security and encryption. Anyone doing anything similar at the moment that could share their experience. I am reading through the zope.app.authentication to refresh my memory on plugins in the meantime. Many thanks. Regards, David ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Small skinning question...
Hi, I'm building a new application with Zope3. In this application, I can use several skins : - for all "back-office" and management pages, a single skin is used ; it's defined via an Apache rewrite rule on a specific virtual host - for front-office pages, the applied skin can be chosen by each "subsite" administrator between a set of skins made available to him. My idea is to use the "IBeforeTraverseEvent" on the "site" container, and to apply the selected skin when I'm on a front-office page. So my question is simple : can I know easilly (without hardcoding virtual hosts, in fact) if I'm on a back-office page or not and, in fact, if a specific skin has already been applied ? Thanks for any help, Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROTECTED] Tél. : +33 01.40.19.59.64 Fax. : +33 01.40.19.59.85 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] RE: Annotations when creating a Principal
Further to my last email, it appears that my error is using the FoundPrincipalFactory. I changed the code to use the getPrincipal method of the PAU and it works fine. pau = getUtility(IAuthentication) principal = pau.getPrincipal(principal_id) Thanks Kevin > I am following the example in chapter 22 of Philipps book. I am setting up > the PAU so that new users can register with the site. I am extending the > example so that the information entered when creating the Principal is > copied to the Annotations. Thus I can present the user with a one step > sign-up. ... ** www.commuterhomes.ie - MyHome.ie are sponsoring the Commuter Homes Exhibition 2007 which takes place this Sunday 4th of March in The Lynch Green Isle Hotel, Naas Road, Dublin 22 from 1pm 6pm. FREE ADMISSION. ** The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. ** eSafe scanned this email for viruses, vandals and malicious content. ** ** ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users