app/soc/modules/ghop/models/task.py
changeset 3084 cac43a6cb986
parent 3083 f384c0a42920
child 3085 ded7a67e7e0a
equal deleted inserted replaced
3083:f384c0a42920 3084:cac43a6cb986
   127 
   127 
   128     return None
   128     return None
   129 
   129 
   130   @classmethod
   130   @classmethod
   131   def delete_tag(cls, scope, tag_name):
   131   def delete_tag(cls, scope, tag_name):
   132     """Copy a tag with a given scope and tag_name to another tag with
   132     """Delete a tag with a given scope and tag_name.
   133     new tag_name.
       
   134     """
   133     """
   135     tag = cls.get_by_scope_and_name(scope, tag_name)
   134     tag = cls.get_by_scope_and_name(scope, tag_name)
   136 
   135 
   137     if tag:
   136     if tag:
   138       tag.delete()
   137       tag.delete()