[Zope] GUF, ZODB, and 2.2.2
Andrews, Martin
mandrews@netgenics.com
Wed, 1 Nov 2000 16:11:16 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C04448.461E38F6
Content-Type: text/plain;
charset="iso-8859-1"
I am not using the ZODB as the backend, but I did have to patch GUF to get
it to work with zope 2.2.2. Caveat emptor: I have no idea if this patch is
really correct, I pretty much stole the little piece of code from
LoginManage (which has a similar disclaimer).
Martin Andrews
> -----Original Message-----
> From: Jason Byron [mailto:jason_zope@yahoo.com]
> Sent: Wednesday, October 18, 2000 11:58 AM
> To: zope@zope.org
> Subject: [Zope] GUF, ZODB, and 2.2.2
>
>
> Has anyone had luck getting GUF to work using ZODB to
> store the user info, and Zope version 2.2.2 (no hot
> fixes)?
>
------_=_NextPart_000_01C04448.461E38F6
Content-Type: application/octet-stream;
name="guf-getuserbyid.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="guf-getuserbyid.patch"
diff -r -c lib/python/Products/GenericUserFolder/GenericUserFolder.py =
Products/GenericUserFolder/GenericUserFolder.py=0A=
*** lib/python/Products/GenericUserFolder/GenericUserFolder.py Mon May =
29 20:58:28 2000=0A=
--- Products/GenericUserFolder/GenericUserFolder.py Wed Sep 27 23:34:45 =
2000=0A=
***************=0A=
*** 249,254 ****=0A=
--- 249,260 ----=0A=
=0A=
return None=0A=
=0A=
+ def getUserById(self, id, default=3DNone):=0A=
+ u =3D self.getUser(id)=0A=
+ if u is None:=0A=
+ u =3D default=0A=
+ return u=0A=
+ =0A=
def validate(self,request,auth=3DNone,roles=3DNone):=0A=
# No docstring for a reason=0A=
=0A=
------_=_NextPart_000_01C04448.461E38F6--