# HG changeset patch # User Sylvain Thénault # Date 1253691286 -7200 # Node ID 3be33dc83d8b7a6bc3a937916da3c4761bf912a7 # Parent 9192ba07890d1c9a73b97b6be950c5aa9e29c672 use ._cw.vreg instead of vreg on appobject classes diff -r 9192ba07890d -r 3be33dc83d8b entities/authobjs.py --- a/entities/authobjs.py Wed Sep 23 09:34:10 2009 +0200 +++ b/entities/authobjs.py Wed Sep 23 09:34:46 2009 +0200 @@ -59,12 +59,13 @@ try: # properties stored on the user aren't correctly typed # (e.g. all values are unicode string) - return self.vreg.typed_value(key, self.properties[key]) + return self._cw.vreg.typed_value(key, self.properties[key]) except KeyError: pass except ValueError: - self.warning('incorrect value for eproperty %s of user %s', key, self.login) - return self.vreg.property_value(key) + self.warning('incorrect value for eproperty %s of user %s', + key, self.login) + return self._cw.vreg.property_value(key) def matching_groups(self, groups): """return the number of the given group(s) in which the user is