equal
deleted
inserted
replaced
57 |
57 |
58 def property_value(self, key): |
58 def property_value(self, key): |
59 try: |
59 try: |
60 # properties stored on the user aren't correctly typed |
60 # properties stored on the user aren't correctly typed |
61 # (e.g. all values are unicode string) |
61 # (e.g. all values are unicode string) |
62 return self.vreg.typed_value(key, self.properties[key]) |
62 return self._cw.vreg.typed_value(key, self.properties[key]) |
63 except KeyError: |
63 except KeyError: |
64 pass |
64 pass |
65 except ValueError: |
65 except ValueError: |
66 self.warning('incorrect value for eproperty %s of user %s', key, self.login) |
66 self.warning('incorrect value for eproperty %s of user %s', |
67 return self.vreg.property_value(key) |
67 key, self.login) |
|
68 return self._cw.vreg.property_value(key) |
68 |
69 |
69 def matching_groups(self, groups): |
70 def matching_groups(self, groups): |
70 """return the number of the given group(s) in which the user is |
71 """return the number of the given group(s) in which the user is |
71 |
72 |
72 :type groups: str or iterable(str) |
73 :type groups: str or iterable(str) |