[Zope-CMF] DCWorkflow: matching a catalogged variable with user id in woklist

Florent Guillaume fg@nuxeo.com
Sat, 23 Mar 2002 19:27:29 +0000 (UTC)


Luca Olivetti  <luca@wetron.es> wrote:
> Florent Guillaume wrote:
> 
> > Except that the "if self.isAnonymous:" part isn't needed, anonymous users
> > will get a 'Anonymous User' from getMemberId.
> 
> I thought something similar, but I had to add it because it bombed when I first 
> programmed it without doing it and tried to visit the portal as guest.

Indeed, actually what I mostly use is:
  member = mtool.getAuthenticatedMember()
  id = member.getUserName()
which works in all cases.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com