RE: [Zope] Re: login page problem
You could try to look at the tutorial on devshed.com. They created a login system using text files. Its not exactly as you want but it gives you an idea about how to handle things :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of prabuddha ray Sent: donderdag 31 maart 2005 9:50 To: zope@zope.org Subject: [Zope] Re: login page problem thnx dieter n chris, i cudnt make my point clear. 1st a recap : i've a zpt login page wherein i have got the district name n coressponding users drop down list built. now after selecting d district n username d passwd is to b filled. then d form is to b submitted. It has to be done thid way only so i cant hav cookie crumblers n simpleuserfolder componenets. now my problem how n where do i check d pwd n redirect to the next zpt or the previous one if its wrong. i've a zsql method giving me the pwd for the user param passed. i wanted to kno if i can call this method on d onsubmit event? kindly gimme solns u've in mind. On Wed, 30 Mar 2005 20:01:24 +0200, Dieter Maurer <[EMAIL PROTECTED]> wrote: > prabuddha ray wrote at 2005-3-29 01:57 -0800: > >I'm creatin a customised login page template using districtname, user > >name and password. > >i got halt in d logic for password checking. > >after submitting d login form how do i call d same page if the passwd > >is wrong along with d req params passed? do i need an ext python > >script for this redirection. > > No, you can do it where you checked the password. > > >also tell how to set session data in ZPTs from the form fields? > > > > -- > Dieter > -- Share the vision of difference with ME ___ 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 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] Re: login page problem
thnx dieter n chris, i cudnt make my point clear. 1st a recap : i've a zpt login page wherein i have got the district name n coressponding users drop down list built. now after selecting d district n username d passwd is to b filled. then d form is to b submitted. It has to be done thid way only so i cant hav cookie crumblers n simpleuserfolder componenets. now my problem how n where do i check d pwd n redirect to the next zpt or the previous one if its wrong. i've a zsql method giving me the pwd for the user param passed. i wanted to kno if i can call this method on d onsubmit event? kindly gimme solns u've in mind. On Wed, 30 Mar 2005 20:01:24 +0200, Dieter Maurer <[EMAIL PROTECTED]> wrote: > prabuddha ray wrote at 2005-3-29 01:57 -0800: > >I'm creatin a customised login page template using districtname, user > >name and password. > >i got halt in d logic for password checking. > >after submitting d login form how do i call d same page if the passwd > >is wrong along with d req params passed? do i need an ext python > >script for this redirection. > > No, you can do it where you checked the password. > > >also tell how to set session data in ZPTs from the form fields? > > > > -- > Dieter > -- Share the vision of difference with ME ___ 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] WebDAV BUGS and access to /tmp directory
Hi, I am back trying to figure out why my zope crashes on open('/tmp/tmp4fd4foo') kind of opens, which seem to originated from webdav code. Question to someone who is expert in webdav/*.py code... I just would like to know so I can further my investigation into the bug/malfuction of zope on OS X. regards, Pavel ___ 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] role, user defined roles, and inclusion
Dieter, thanks for your clarifications. Is my assumption that granting a permission to Anonymous means granting it to anybody correct? Robert Dieter Maurer wrote: Chris Withers wrote at 2005-3-30 08:31 +0100: Dennis Allison wrote: Are the standard roles (anonymous, authorized_user, manager) inclusive? Yes. These special roles are "inclusive" (as their name might suggest). ... A user will have the Anonymous role iff they have not supplied any authentication credentials. Any user has the "Anonymous" role whether or not it is authenticated. A user will have the Authenticated role iff they HAVE supplied authentication credentials. Especially, any "Manager" has the "Authenticated" role (as it is authenticated). A user will never have Authenticated and Anonymous roles at the same time. This is wrong. ___ 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] Ecommerce solutions
Has anyone used Zopewith a shopping cart such as AgoraCart to create an online store? Best RegardsIan Nunn ___ 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] User changing their own password via External Method with Cookie Crumbler
On Wednesday 30 March 2005 12:00, [EMAIL PROTECTED] wrote: > Dave Cinege wrote: > > Does anyone have a working example code snippet? > > Have a look at the CMF source code, find the bit that allows users to > change their own passwords... Thanks. I was hoping it wouldn't come to that... From what I was able to dissect from CMF changing the password is down to a hack. : P userFolderEditUser() doesn't work. You must instead change the '__' attribute of a user object. : O My code below works, except that credentialsChanged() ends up redirecting to the login page vs, resetting the cookie and allowing the user to continue. Is that expected? def UserEditFunc (self): reqd = dict(self.REQUEST) user = self.acl_users.getUser(reqd['username']) user.__ = reqd['password'] self.login.credentialsChanged(user,reqd['username'],reqd['password']) ___ 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] role, user defined roles, and inclusion
Chris Withers wrote at 2005-3-30 08:31 +0100: >Dennis Allison wrote: >> Are the standard roles (anonymous, authorized_user, manager) inclusive? Yes. These special roles are "inclusive" (as their name might suggest). > ... >A user will have the Anonymous role iff they have not supplied any >authentication credentials. Any user has the "Anonymous" role whether or not it is authenticated. >A user will have the Authenticated role iff they HAVE supplied >authentication credentials. Especially, any "Manager" has the "Authenticated" role (as it is authenticated). >A user will never have Authenticated and Anonymous roles at the same time. This is wrong. -- Dieter ___ 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] avoiding 'AttributeError'
' -Original Message- ' From: Dieter Maurer [mailto:[EMAIL PROTECTED] ' ' ' This should not fail and, especially, Zope should not die. ' ' If Zope really dies, then there is a *severe* problem elsewhere ' (not with your ZPT code). It does fail, however zope doesn't 'die', it merely fails, displaying an error message. But as somebody else pointed out, it should read: because it's the tal:condition-tag that is failing. that's how I understand it at least. \malthe ___ 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] Mac OS X and zope (continued)
Oops looks like i have made mistake to use select instead of thread command... post more log stuff later. pavel ___ 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] login page problem
prabuddha ray wrote at 2005-3-29 01:57 -0800: >I'm creatin a customised login page template using districtname, user >name and password. >i got halt in d logic for password checking. >after submitting d login form how do i call d same page if the passwd >is wrong along with d req params passed? do i need an ext python >script for this redirection. No, you can do it where you checked the password. >also tell how to set session data in ZPTs from the form fields? -- Dieter ___ 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] avoiding 'AttributeError'
Malthe Borch wrote at 2005-3-27 01:15 +0100: >I can't seem to find an elegant solution to checking if an object has a certain >attribute. The following fails (i.e. zope dies), if the attribute does not >exist: > > tal:replace="obj/someAttribute" /> This should not fail and, especially, Zope should not die. If Zope really dies, then there is a *severe* problem elsewhere (not with your ZPT code). -- Dieter ___ 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 )