app/soc/modules/ghop/models/task.py
changeset 3082 da8cc38cabe9
parent 2858 9b59d89e6707
child 3083 f384c0a42920
equal deleted inserted replaced
3081:14077185c46e 3082:da8cc38cabe9
    40 
    40 
    41 
    41 
    42 class TaskTag(Tag):
    42 class TaskTag(Tag):
    43   """Model for storing all Task tags.
    43   """Model for storing all Task tags.
    44   """
    44   """
    45   
    45 
    46   #: Each task_type tag is scoped under the program. 
    46   #: Each task_type tag is scoped under the program. 
    47   scope = db.ReferenceProperty(reference_class=soc.models.linkable.Linkable,
    47   scope = db.ReferenceProperty(reference_class=soc.models.linkable.Linkable,
    48                                required=True,
    48                                required=True,
    49                                collection_name='task_type_tags')
    49                                collection_name='task_type_tags')
    50 
    50 
   178 
   178 
   179 class TaskArbitraryTag(TaskTag):
   179 class TaskArbitraryTag(TaskTag):
   180   """Model for storing of arbitrary tags.
   180   """Model for storing of arbitrary tags.
   181   """
   181   """
   182 
   182 
   183   pass
   183   def __init__(self, *args, **kwds):
       
   184     """Initialization function.
       
   185     """
       
   186 
       
   187     TaskTag.__init__(self, *args, **kwds)
       
   188     self.auto_delete = True
   184 
   189 
   185 
   190 
   186 class GHOPTask(Taggable, soc.models.linkable.Linkable):
   191 class GHOPTask(Taggable, soc.models.linkable.Linkable):
   187   """Model for a task used in GHOP workflow.
   192   """Model for a task used in GHOP workflow.
   188 
   193