Re: [Zope] Logon process

2007-07-13 Thread Dieter Maurer
Garito wrote at 2007-7-9 02:24 +0200: > ... >To Dieter: I have a folder with some objects. This objects has 2 subgroups: >availables for everyone and availables only for a role > >I would like to do folder.objectValues() and get a list of objects filtereds >but I don't have any idea if I could do t

Re: [Zope] Logon process

2007-07-08 Thread Garito
To Andrew: I'll try! If doesn't work I'll reask, thanks! To Dieter: I have a folder with some objects. This objects has 2 subgroups: availables for everyone and availables only for a role I would like to do folder.objectValues() and get a list of objects filtereds but I don't have any idea if I

Re: [Zope] Logon process

2007-07-08 Thread Dieter Maurer
Garito wrote at 2007-7-7 14:17 +0200: > ... >And this is the Logon code: > >from AccessControl import getSecurityManager > >usuario = context.acl_users.validate(context.REQUEST) Usually, the login in performed by the user folder automatically (provided, you use the correct form variables (what you

Re: [Zope] Logon process

2007-07-07 Thread Andrew Milton
+---[ Garito ]-- | Hi Andrew! | | This is my form code: | | | | The title | | | | Usuario: | Contrase?a: | Logar | | | | | And this is the Logon code: | | from AccessControl import getSecurityManager | | usuario = context.

Re: [Zope] Logon process

2007-07-07 Thread Garito
Hi Andrew! This is my form code: The title Usuario: ContraseƱa: Logar And this is the Logon code: from AccessControl import getSecurityManager usuario = context.acl_users.validate(context.REQUEST) print str(usuario) print getSecurityManager().getUser().g

Re: [Zope] Logon process

2007-07-07 Thread Andrew Milton
+---[ Garito ]-- | I try context.acl_users.authenticate(user, pass, request) but this doesn't | change the session user, isn't it? | | Can I change the logged user in the session in any way? I'm not sure what you mean by "in the session". If you want to change the cookies

Re: [Zope] Logon process

2007-07-07 Thread Garito
I try context.acl_users.authenticate(user, pass, request) but this doesn't change the session user, isn't it? Can I change the logged user in the session in any way? Thanks! 2007/7/7, Garito <[EMAIL PROTECTED]>: Sure? I'll try then Thank you so much!!! 2007/7/7, Andrew Milton <[EMAIL PROTEC

Re: [Zope] Logon process

2007-07-07 Thread Garito
Sure? I'll try then Thank you so much!!! 2007/7/7, Andrew Milton <[EMAIL PROTECTED]>: +---[ Garito ]-- | How can I change the user programatically? | Can I? | | The process will be the same in acl_users, cookieCrumbler, ExUserFolder, isn't | it? | | for example: acl_use

Re: [Zope] Logon process

2007-07-07 Thread Andrew Milton
+---[ Garito ]-- | How can I change the user programatically? | Can I? | | The process will be the same in acl_users, cookieCrumbler, ExUserFolder, isn't | it? | | for example: acl_users.authenticate(user_name, password) | | Is this possible? | | That's my original need,

Re: [Zope] Logon process

2007-07-07 Thread Garito
How can I change the user programatically? Can I? The process will be the same in acl_users, cookieCrumbler, ExUserFolder, isn't it? for example: acl_users.authenticate(user_name, password) Is this possible? That's my original need, but I'm not so sure if I ask properly, sorry Thanks so much!

Re: [Zope] Logon process

2007-07-06 Thread Maciej Wisniowski
> Hi, Maciej! > The same problem as with CookieCrumbler or ExUserFolder: I don't understand > the process to setup the product in order to use it > > Do you know any url o similar about how to setup and use PAS? docs/ folder in PAS product :) I don't remember exaclty how PAS looks so following d

Re: [Zope] Logon process

2007-07-06 Thread Dieter Maurer
Garito wrote at 2007-7-5 18:10 +0200: > ... >I check this and ExUserFolder but in both cases I don't understand the >product's setup process As for most products: You ensure that the "ExUserFolder" product is placed in the "Products" folder of your "INSTANCE_HOME". Then, you restart Zope and creat

Re: [Zope] Logon process

2007-07-06 Thread Garito
Hi, Maciej! The same problem as with CookieCrumbler or ExUserFolder: I don't understand the process to setup the product in order to use it Do you know any url o similar about how to setup and use PAS? Thanks! 2007/7/5, Maciej Wisniowski <[EMAIL PROTECTED]>: > Thanks, I try to use a more easy

Re: [Zope] Logon process

2007-07-05 Thread Maciej Wisniowski
> Thanks, I try to use a more easy solution but it's ok > > I check this and ExUserFolder but in both cases I don't understand the > product's setup process > > Do you know where I can found a tutorial about how to setup and use Cookie > Crumbler product? I think you should rather take a look at

Re: [Zope] Logon process

2007-07-05 Thread Garito
Thanks, I try to use a more easy solution but it's ok I check this and ExUserFolder but in both cases I don't understand the product's setup process Do you know where I can found a tutorial about how to setup and use Cookie Crumbler product? Thanks again! 2007/7/5, Tom Von Lahndorff <[EMAIL PR

Re: [Zope] Logon process

2007-07-05 Thread Tom Von Lahndorff
Not sure if it's exactly what you're looking for but you may want to check out the Cookie Crumbler product. http://packages.debian.org/stable/source/zope-cookiecrumbler On Jul 5, 2007, at 2:41 AM, Garito wrote: Hi all! I've developed a site that if you are not logged in renders in a way b

[Zope] Logon process

2007-07-04 Thread Garito
Hi all! I've developed a site that if you are not logged in renders in a way but if you are logged in renders in another way (with more functionality) I would like to create a logon form and the validate the user in an AJAX way Where can I read about it? Or where the acl_users code is located?