entities/lib.py
changeset 3460 e4843535db25
parent 3451 6b46d73823f5
child 4252 6c4f109c2b03
equal deleted inserted replaced
3459:e134d2dd9992 3460:e4843535db25
   107 
   107 
   108     fetch_attrs, fetch_order = fetch_config(['pkey', 'value'])
   108     fetch_attrs, fetch_order = fetch_config(['pkey', 'value'])
   109     rest_attr = 'pkey'
   109     rest_attr = 'pkey'
   110 
   110 
   111     def typed_value(self):
   111     def typed_value(self):
   112         return self.vreg.typed_value(self.pkey, self.value)
   112         return self._cw.vreg.typed_value(self.pkey, self.value)
   113 
   113 
   114     def dc_description(self, format='text/plain'):
   114     def dc_description(self, format='text/plain'):
   115         try:
   115         try:
   116             return self._cw._(self.vreg.property_info(self.pkey)['help'])
   116             return self._cw._(self._cw.vreg.property_info(self.pkey)['help'])
   117         except UnknownProperty:
   117         except UnknownProperty:
   118             return u''
   118             return u''
   119 
   119 
   120     def after_deletion_path(self):
   120     def after_deletion_path(self):
   121         """return (path, parameters) which should be used as redirect
   121         """return (path, parameters) which should be used as redirect