I have the following Extention def cryptPass(self,username,password): import crypt return crypt.crypt(password,username[:2]) When I call this with, cryptPass(_.SecurityGetUser(),'some pass phrase') Zope returns an error because it cannot perform a slice on the object that SecurityGetUser() returns. Is there a way to just get the text value of that object? -- Bryan C. Andregg Duke University Medical Center Programmer Dept. of Anesthesiology e <bryan.andregg@duke.edu> p +1 919 684 6201
Bryan C. Andregg writes:
... Zope returns an error because it cannot perform a slice on the object that SecurityGetUser() returns. Is there a way to just get the text value of that object? "SecurityGetUser()" returns the user object. "user.getUserName()" returns "user"s name.
Dieter
participants (2)
-
Bryan C. Andregg -
Dieter Maurer