コード例 #1
0
ファイル: contact_views.py プロジェクト: hforge/crm
 def set_value(self, resource, context, name, form):
     if name == 'tags':
         return TagsAware_Edit.set_value(self, resource, context, name,
                 form)
     elif name == 'comment':
         comment = Property(form['comment'], date=context.timestamp,
                 author=context.user.name)
         resource.set_property('comment', comment)
         return False
     return DBResource_Edit.set_value(self, resource, context, name, form)
コード例 #2
0
ファイル: company_views.py プロジェクト: hforge/crm
 def set_value(self, resource, context, name, form):
     if name == "tags":
         return TagsAware_Edit.set_value(self, resource, context, name, form)
     return DBResource_Edit.set_value(self, resource, context, name, form)