Re: [Zope] remote authentication
On Sunday 31 August 2008 15:31, Andreas Jung wrote: > --On 31. August 2008 15:38:38 +0100 Garry Saddington > > <[EMAIL PROTECTED]> wrote: > > On Sunday 31 August 2008 15:10, Andreas Jung wrote: > >> --On 31. August 2008 15:01:24 +0100 Garry Saddington > >> > >> <[EMAIL PROTECTED]> wrote: > >> > Is there a way to have two separate zope instances on different > >> > machines and have them both authenticate against one acl_users folder > >> > on only one of these machines? > >> > >> By using ZEO? > > > > No because I want to use different ZODB's. > > What is the problem? > > You share a common ZODB containing the acl_users folder in the root through > ZEO and mount different other ZODBs using ZEO into the mounted main > storage. > Thanks that sounds perfect, I didn't think about it like that! regards garry ___ 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] Styles of import in Zope (2 and 3)
On Sun, Aug 31, 2008 at 3:04 AM, Chris McDonough <[EMAIL PROTECTED]> wrote: > One goal to shoot for when you do imports is to be able to remove an imported > name by deleting a line as opposed to editing one (it makes reading diffs a > bit > easier). E.g. instead of: > > from foo import one, two, three A lot of this in my code :-( > I usually either do: > > import foo > foo.one Yes, I'm looking into this. > Or: > > from foo import one > from foo import two > from foo import three Too many of them... maybe an hint I should refactor something :-) ? > Either way makes diffs cleaner. > > One thing I always avoid is "from foo import *". At least, I've avoided this sin ;) > - C > -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.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] remote authentication
--On 31. August 2008 15:38:38 +0100 Garry Saddington <[EMAIL PROTECTED]> wrote: On Sunday 31 August 2008 15:10, Andreas Jung wrote: --On 31. August 2008 15:01:24 +0100 Garry Saddington <[EMAIL PROTECTED]> wrote: > Is there a way to have two separate zope instances on different > machines and have them both authenticate against one acl_users folder > on only one of these machines? By using ZEO? No because I want to use different ZODB's. What is the problem? You share a common ZODB containing the acl_users folder in the root through ZEO and mount different other ZODBs using ZEO into the mounted main storage. -aj pgpmjSvT5OJmQ.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 )
Re: [Zope] remote authentication
On Sunday 31 August 2008 15:10, Andreas Jung wrote: > --On 31. August 2008 15:01:24 +0100 Garry Saddington > > <[EMAIL PROTECTED]> wrote: > > Is there a way to have two separate zope instances on different machines > > and have them both authenticate against one acl_users folder on only one > > of these machines? > > By using ZEO? > No because I want to use different ZODB's. I have a management information system(MIS) used by teachers where the ZODB does not grow and all data is stored in a Postgres DB. The teachers authenticate against this machine. The students have an eportfolio system that runs on a different Zope server where the ZODB grows when students add work. I would like teachers to be able to log into the MIS and seemlessly visit the other student machine to grade work. As I have it, I would have to duplicate the acl_users folder for the teachers to both machines. It is this duplication that I am trying to do without. regards garry ___ 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] remote authentication
--On 31. August 2008 15:01:24 +0100 Garry Saddington <[EMAIL PROTECTED]> wrote: Is there a way to have two separate zope instances on different machines and have them both authenticate against one acl_users folder on only one of these machines? By using ZEO? -aj pgpY5S4oA0fXr.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] remote authentication
Is there a way to have two separate zope instances on different machines and have them both authenticate against one acl_users folder on only one of these machines? regards garry ___ 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 )