RE: Subject: [Zope-dev] change ownership

2001-05-11 Thread Tim McLaughlin
Magnus, OK, here goes the evil workaround It seems that getUser does not return an acquisition wrapped object, so make your external method this to wrap it (thus giving ownerinfo the ability to determine the user db): def setOwner(self, username): #note: this assumes that the closest

RE: Subject: [Zope-dev] change ownership

2001-05-10 Thread Tim McLaughlin
I call the external method like this from DTML... set_owner(restrictedTraverse(path_to_user)), where path to user is a physical path, but I'm using the ZUserFolder, so I can use the restrictedTraverse to get to users. UserFolder has a different API. You could do this if your acl_users is a

RE: Subject: [Zope-dev] change ownership

2001-05-10 Thread Tim McLaughlin
What kind of UserFolder are you using... LoginManager or something? -Original Message- From: Magnus Heino (Rivermen) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 9:13 AM To: 'Tim McLaughlin'; Magnus Heino (Rivermen) Cc: '[EMAIL PROTECTED]' Subject: SV: Subject: [Zope-dev]

RE: Subject: [Zope-dev] change ownership

2001-05-10 Thread Tim McLaughlin
] change ownership The one that comes with Zope. /Magnus -Ursprungligt meddelande- Från: Tim McLaughlin [mailto:[EMAIL PROTECTED]] Skickat: den 10 maj 2001 15:26 Till: 'Magnus Heino (Rivermen)'; Tim McLaughlin Kopia: '[EMAIL PROTECTED]' Ämne: RE: Subject: [Zope-dev] change