[Zope] SecurityGetUser object as text

Bryan C. Andregg bryan.andregg@duke.edu
Tue, 19 Mar 2002 14:02:55 -0500


--5tP+uu4DqNOLJklJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?
--=20
Bryan C. Andregg		Duke University Medical Center
 Programmer			Dept. of Anesthesiology
 e <bryan.andregg@duke.edu>
 p +1 919 684 6201

--5tP+uu4DqNOLJklJ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8l4tfj9pElyS/cakRAqIJAJ49f9vf1qtONt8kHbKIB+yoD4XxUACaA4lX
1PUJ+GGhszDo49ARp6Bcjbo=
=ywCr
-----END PGP SIGNATURE-----

--5tP+uu4DqNOLJklJ--