Changes between Version 7 and Version 8 of BluePrintTicketing


Ignore:
Timestamp:
06/09/10 20:23:07 (12 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintTicketing

    v7 v8  
    1919 * Volunteer Management
    2020
     21== Resource Tagging ==
     22
     23Resource tagging can be a method to assign tickets to resources, e.g. to hospitals, organisations or projects.
     24
     25A resource tag is basically a table with:
     26  * tag ID
     27  * ticket ID
     28  * resource name (=tablename)
     29  * resource UID
     30
     31which links tickets to any resource (many-to-many, a ticket can be linked to multiple resources).
     32
     33A RESTful controller for resource tags can CRUD all tickets that are assigned to a specific resource, or to a type of resources, e.g. like:
     34
     35{{{
     36def tag():
     37
     38    tablename = request.vars.get("tag.resource", None)
     39    uid = request.vars.get("tag.uid", None)
     40    filter = None
     41
     42    if tablename:
     43        filter = (db.ticket_tag.resource_name==tablename)
     44        if uid:
     45            filter = (db.ticket_tag.resource_uid==uid) & filter
     46        response.s3.filter = filter
     47
     48    return shn_rest_controller("ticket", "tag", ...)
     49}}}
     50
     51This controller can be linked-in in any relevant resource view (e.g. as a popup) in a generic way.
     52The tags can also be used to link module-specific request/response information to the tickets.
     53
    2154----
    2255BluePrints