Hi Shane,

Shane Hathaway wrote:


> Jochen Knuth wrote:
> >
> > Hi,
> >
> > trying to update a ZClass based Product to Zope 2.2.0 i get the
> > following Error and Traceback:

[traceback deleted]

> > The error occurs in a method i defined in a ZClass. The beginning of
the
> > method is:
> >
> > <dtml-var standard_html_header>
> > <dtml-call "REQUEST.set('editor',AUTHENTICATED_USER)">
> > <dtml-call "REQUEST.set('edit_date', ZopeTime())">
> > <dtml-call
"propertysheets.properties.manage_changeProperties(REQUEST)">
> > <dtml-call reindex_object>
> > [...]
> >
> > The method is called from a edit form of a ZClass instance as the
form
> > action.
> >
> > Is there anything wrong with the method or is there something other
to
> > look at?
>
> Try changing:
>   <dtml-call "REQUEST.set('editor',AUTHENTICATED_USER)">
> to:
>   <dtml-call "REQUEST.set('editor',AUTHENTICATED_USER.getUserName())">

that's it. i changed the 2.1.x version (<dtml-call
"REQUEST.set('editor',AUTHENTICATED_USER.getUserRealName())">) because i
haven't ported our user folder (GUF, with an addition getUserRealName)
to 2.2.0 and forgot to set it to getUserName.

Thanx,

Jochen


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to