[Zope] Change Password (third post) Help

M. Adam Kendall mak@kha0s.org
16 Mar 2001 10:27:56 -0500


Daniel,
Your best bet is to force the user to re-login after the password change
occurs.  You can
do this by <dtml-raise Unauthorized>.

--Adam

On 16 Mar 2001 08:50:17 -0600, Daniel Rusch wrote:
> 
> 
> Yes it is in the acquistion path, it is a root level property! I know
> that is what the problem appears to be, but how can changing a password
> cause it not to find a root level password???????
> 
> 
> Your problem is that it cant find BoxName, is that visible in the
> Acquistion?
> --
>   Andy McKay.
> ----- Original Message -----
> From: "Daniel Rusch" <drusch@globalcrossing.com>
> To: <zope@zope.org>
> Sent: Monday, March 12, 2001 3:28 PM
> Subject: [Zope] Manage
> 
> 
> > All,
> >
> > Zope 2.3.0 (binary release, python 1.5.2, solaris-2.6-sparc)
> > Python Version 1.5.2 (#8, Nov 16 1999, 10:05:41) [GCC 2.8.1]
> > System Platform sunos5
> >
> > We have a page that allows users to change their password it executes
> > the following:
> >
> >
> > <dtml-call "REQUEST.set('name', login_name)">
> > <dtml-call "REQUEST.set('password', password)">
> > <dtml-call "REQUEST.set('confirm', confirm)">
> > <dtml-call "REQUEST.set('roles',
> > acl_users.getUser(login_name).getRoles())">
> > <dtml-call "acl_users.manage_users(submit='Change', REQUEST=REQUEST)">
> >
> >
> > The password is changed and the user is taken to a page that notifies
> > them that their password was changed, but when the user tries to
> > navigate to any page instead of getting an Authentication dialog, they
> > get a NameError for a variable that is (or should be) there.
> >
> > It is as if the Name Space is lost? Any thoughts?
> >
> > Dan
> >
> >
> >           Zope Error
> >
> >           Zope has encountered an error while publishing this resource.
> >
> >           NameError
> >
> >           Sorry, a Zope error occurred.
> >
> >           Traceback (innermost last):
> >             File /home/newZope/lib/python/ZPublisher/Publish.py, line
> > 222, in publish_module
> >             File /home/newZope/lib/python/ZPublisher/Publish.py, line
> > 187, in publish
> >             File /home/newZope/lib/python/Zope/__init__.py, line 221, in
> > zpublisher_exception_hook
> >               (Object: Traversable)
> >             File /home/newZope/lib/python/ZPublisher/Publish.py, line
> > 171, in publish
> >             File /home/newZope/lib/python/ZPublisher/mapply.py, line
> > 160, in mapply
> >               (Object: index_html)
> >             File /home/newZope/lib/python/ZPublisher/Publish.py, line
> > 112, in call_object
> >               (Object: index_html)
> >             File /home/newZope/lib/python/OFS/DTMLDocument.py, line 189,
> > in __call__
> >               (Object: index_html)
> >             File /home/newZope/lib/python/DocumentTemplate/DT_String.py,
> > line 538, in __call__
> >               (Object: index_html)
> >             File /home/newZope/lib/python/OFS/DTMLMethod.py, line 182,
> > in __call__
> >               (Object: standard_html_header)
> >             File /home/newZope/lib/python/DocumentTemplate/DT_String.py,
> > line 538, in __call__
> >               (Object: standard_html_header)
> >             File /home/newZope/lib/python/DocumentTemplate/DT_Util.py,
> > line 334, in eval
> >               (Object: BoxName=='devo')
> >               (Info: BoxName)
> >             File <string>, line 0, in ?
> >           NameError: BoxName
> >
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>