equal
deleted
inserted
replaced
99 kwargs = dict(pkey=unicode(pkey), value=value) |
99 kwargs = dict(pkey=unicode(pkey), value=value) |
100 if self.is_in_group('managers'): |
100 if self.is_in_group('managers'): |
101 kwargs['for_user'] = self |
101 kwargs['for_user'] = self |
102 self._cw.create_entity('CWProperty', **kwargs) |
102 self._cw.create_entity('CWProperty', **kwargs) |
103 else: |
103 else: |
104 prop.set_attributes(value=value) |
104 prop.cw_set(value=value) |
105 |
105 |
106 def matching_groups(self, groups): |
106 def matching_groups(self, groups): |
107 """return the number of the given group(s) in which the user is |
107 """return the number of the given group(s) in which the user is |
108 |
108 |
109 :type groups: str or iterable(str) |
109 :type groups: str or iterable(str) |