app/soc/tasks/__init__.py
author Madhusudan C.S <madhusudancs@gmail.com>
Sat, 25 Jul 2009 01:09:46 +0530
changeset 2679 0ede2f3adbc1
parent 2594 dd300af0e7df
permissions -rw-r--r--
Adds to Melange a tags framework based on taggable-mixin. The taggable-mixin allowed only tag per Datastore model. This is extended framework allows any arbitrary number of tags per Datastore model. Also, now one can define different models for different Tag types which are all inherited from the base Tag model provided by taggable-mixin. The GHOPTask model makes use of 2 tags per model, one for difficulty and the other for task_type, both using the tags framework. Reviewed by: Paweł Sołyga
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2594
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
#
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
# Copyright 2009 the Melange authors.
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
#
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
# Licensed under the Apache License, Version 2.0 (the "License");
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
# you may not use this file except in compliance with the License.
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
# You may obtain a copy of the License at
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
# 
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
#   http://www.apache.org/licenses/LICENSE-2.0
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
# 
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
# Unless required by applicable law or agreed to in writing, software
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
# distributed under the License is distributed on an "AS IS" BASIS,
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
# See the License for the specific language governing permissions and
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
# limitations under the License.
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    15
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    16
"""This module contains Melange Task API related modules."""