Example #1
0
File: tag.py Project: alkadis/vcv
 def create(self, format='html'):
     delegateable = self.form_result.get('delegateable')
     for tag_text in text.tag_split(self.form_result.get('tags')):
         if not model.Tagging.find_by_delegateable_name_creator(
                 delegateable, tag_text, c.user):
             model.Tagging.create(delegateable, tag_text, c.user)
     model.meta.Session.commit()
     redirect(h.entity_url(delegateable, format=format))
Example #2
0
 def create_all(cls, delegateable, tags, creator):
     import adhocracy.lib.text as text
     return [Tagging.create(delegateable, t, creator) \
         for t in text.tag_split(tags)]
Example #3
0
 def create_all(cls, delegateable, tags, creator):
     import adhocracy.lib.text as text
     return [Tagging.create(delegateable, t, creator) \
         for t in text.tag_split(tags)]