[Zope] how to??

2007-01-24 Thread javi lopez
hello I want to do it this: a plugin for PAS to validate users, i put user and password and if user is a correct user, log in plone. class ValidaPlugin(BasePlugin, Cacheable): meta_type = 'ValidaPlugin' security = ClassSecurityInfo() def __init__(self, id, title=None): self._id

[Zope] User Folder

2007-01-31 Thread javi lopez
hello and thanks for your help.. I did a plugin for PAS and iwant to read the users from de acl_users to validate and i did this: def authenticateCredentials(self, credentials): """ Authentication Part """ acl = self.getUserFolder() // Is this ok? login = credentials.get('lo

[Zope] User Folder

2007-02-01 Thread javi lopez
hello thanks for your help. I am doing a new pluging for PAS, I need take users and login for Plone. To do it, i did this class: class ValidaPlugin(BasePlugin): """ PAS plugin """ uservar = 'X_REMOTE_USER' meta_type = 'ValidaPlugin' security = ClassSecurityInfo() _properties =

[Zope] UserFolder

2007-02-01 Thread javi lopez
hello and thanks for your help I want to sustitute authentificateCredentials for this plugin i made. It take users from ZODB and validate if user exists and so user can login in Plone. can´t I do one product pluging for PAS with one init.py and one ProductName.py where this method is implements fo

[Zope] PAS Plugin

2007-02-08 Thread javi lopez
Hello everyone and thanks for your help! I am doing a plugin for PAS and put on that plugin two methods: authenticatedCredentials and extractCredentials First works ok, but extract don´t work, it is its code: creds = {} login = request.get('__ac_name', '') if login: #

[Zope] session

2007-02-13 Thread javi lopez
i did a plugin for authenticated and extractCredentials, but it don´t save session so it is how if user isn´t validate. Can i save session for user authenticated? Thanks for your help!!! ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/li

Re: [Zope] session

2007-02-13 Thread javi lopez
2007/2/13, Maciej Wisniowski <[EMAIL PROTECTED]>: > i did a plugin for authenticated and extractCredentials, but it don´t > save session so it is how if user isn´t validate. > Can i save session for user authenticated? What do you mean by 'save session'? -- Maciej Wisniowski Sorry my english

Re: [Zope] session

2007-02-13 Thread javi lopez
i did it, but it don´t work, def extractCredentials(self, request): creds = {} login = request.get('__ac_name', '') if login: # Look in the request for the names coming from the login form login = request.get('__ac_name', '') password = request.get(

[Zope] form-script-zsql

2007-03-07 Thread javi lopez
I´m doing a form with username and email, these values go script python and with a zsql method inside script, it stored in DB I have a zpt with a form I have a script python:: Connection DB:: db_system_type = REQUEST.get('db_system_type', 'mysql') from Products.ZMySQLDA import DA DA.manage_addZMy

[Zope] database connection in script

2007-03-07 Thread javi lopez
how to create a database connection in a script python ___ 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 htt

Re: [Zope] database connection in script

2007-03-07 Thread javi lopez
my database is Mysql. can you help me?Thanks ___ 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.

[Zope] call exthernal method

2007-03-12 Thread javi lopez
hello: how to call exthernal method from script python in zope Thanks.. ___ 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] sql and script python

2007-03-13 Thread javi lopez
hello everyone: how to create a query(mysql) inside script python ___ 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-a

[Zope] how to do this?

2007-03-15 Thread javi lopez
Hello everyone and thaks for your help: I have this things: Zdatabase Conection zsql method Controller page template(form) Controller python script(call zsql method) controller validator page template it´s a form, it stores email and comments in database and it works. I need put all this inside

[Zope] filesystem ZMySQL database connection

2007-03-16 Thread javi lopez
hot to do a filesystem Z MySQL database connection? Thanks everyone ___ 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-anno

[Zope] email validator script

2007-03-19 Thread javi lopez
Hello everyone: I did a form and i need a validator email address (controller validator) can you help me? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://m