I have a table of users from a database and I would like to have login based on it. Concretely, I have a form to edit record(s) in a (second) table of whatever data which is the responsability of a user(s). When a user presses an Edit button, I would like to ask him for a login/password to access the record. I can manually implement this check but may be it could be based on zope security? The login/password should be stored in the table of users. How can I "link" this table with acl_users without manually maintaining the "link"? Thanks, Fernando
How about using an exUserFolder or something similar? Fernando Martins wrote:
I have a table of users from a database and I would like to have login based on it.
Concretely, I have a form to edit record(s) in a (second) table of whatever data which is the responsability of a user(s). When a user presses an Edit button, I would like to ask him for a login/password to access the record. I can manually implement this check but may be it could be based on zope security?
The login/password should be stored in the table of users. How can I "link" this table with acl_users without manually maintaining the "link"?
Thanks, Fernando
_______________________________________________ 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 )
From: Chris Beaven [mailto:chris@d-designz.co.nz] How about using an exUserFolder or something similar?
Thanks. I looked at the introductory page and it seems to do what I need but it refers to postgresql. Maybe it works also with a Gadfly table. Cheers, Fernando
The 'Postgresql' setting works for my Access database, it's pretty straight forward SQL that it uses... try it out. Fernando Martins wrote:
From: Chris Beaven [mailto:chris@d-designz.co.nz] How about using an exUserFolder or something similar?
Thanks. I looked at the introductory page and it seems to do what I need but it refers to postgresql. Maybe it works also with a Gadfly table.
Cheers, Fernando
_______________________________________________ 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 )
You might take a look at "simpleUserFolder". Its in the zope products list ... or at least it is findable on the Zope Site. Currently I am storing user data in "dtml folders". It is nearly as easy to do this with an external DB and SimpleUserFolder even provides examples of this. Worth taking a look. David ----- Original Message ----- From: "Fernando Martins" <fmartins@hetnet.nl> To: "Zope@Zope. Org" <zope@zope.org> Sent: Sunday, February 23, 2003 3:06 PM Subject: [Zope] Access based on a table of users
I have a table of users from a database and I would like to have login based on it.
Concretely, I have a form to edit record(s) in a (second) table of whatever data which is the responsability of a user(s). When a user presses an Edit button, I would like to ask him for a login/password to access the record. I can manually implement this check but may be it could be based on zope security?
The login/password should be stored in the table of users. How can I "link" this table with acl_users without manually maintaining the "link"?
Thanks, Fernando
_______________________________________________ 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 )
Hi, just by reading the product's (?) introduction I would have skip it. "scriptable and subclassable" is not yet that clear for me - I just need to specify a db connection, a table name, user and password field names. I'll try it though, Thanks, Fernando David Hassalevris wrote:
You might take a look at "simpleUserFolder". Its in the zope products list ... or at least it is findable on the Zope Site. Currently I am storing user data in "dtml folders". It is nearly as easy to do this with an external DB and SimpleUserFolder even provides examples of this. Worth taking a look. David
Fernando Martins wrote:
just by reading the product's (?) introduction I would have skip it.
Then you would have missed out...
"scriptable and subclassable" is not yet that clear for me - I just need to specify a db connection, a table name, user and password field names.
So with SUF, you'd: 1. Add your DB connection 2. Add you SUF 3. Write one ZSQL method cheers, Chris
From: Chris Withers [mailto:chrisw@nipltd.com] [...]
"scriptable and subclassable" is not yet that clear for me - I just need to specify a db connection, a table name, user and password field names.
So with SUF, you'd:
1. Add your DB connection 2. Add you SUF 3. Write one ZSQL method
Doh! Now I know why you call it "simple". ;-) May I suggest to actually put these steps into the page? Cheers, Fernando
Fernando Martins wrote:
May I suggest to actually put these steps into the page?
Not really. People don't only use it for SQL so putting one example in like that doesn't help. The tests show examples using a Gadfly DB, DTML Documents and a seperate Python class structure and I know lots more is possible. I'm hoping some day someone will provide me an example that goes to LDAP for its info... cheers, Chris
participants (4)
-
Chris Beaven -
Chris Withers -
David Hassalevris -
Fernando Martins