common/mixins.py
changeset 2058 7ef12c03447c
parent 2005 e8032965f37a
child 2144 51c84d585456
equal deleted inserted replaced
2057:0a0cbccafcb5 2058:7ef12c03447c
   235 
   235 
   236     # specific vocabulary methods #############################################
   236     # specific vocabulary methods #############################################
   237 
   237 
   238     @obsolete('use EntityFieldsForm.subject_in_state_vocabulary')
   238     @obsolete('use EntityFieldsForm.subject_in_state_vocabulary')
   239     def subject_in_state_vocabulary(self, rschema, limit=None):
   239     def subject_in_state_vocabulary(self, rschema, limit=None):
   240         form = self.vreg.select_object('forms', 'edition', self.req, entity=self)
   240         form = self.vreg.select('forms', 'edition', self.req, entity=self)
   241         return form.subject_in_state_vocabulary(rschema, limit)
   241         return form.subject_in_state_vocabulary(rschema, limit)
   242 
   242 
   243 
   243 
   244 
   244 
   245 class EmailableMixIn(object):
   245 class EmailableMixIn(object):