Changeset 651


Ignore:
Timestamp:
10/24/08 09:45:31 (5 years ago)
Author:
aculapov
Message:
  • cleaned up the unused files and the ones not related to the plugin
Location:
trunk/plugins/tickettypedsystem/ticketsystem
Files:
1 added
4 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/tickettypedsystem/ticketsystem/tickettypes/__init__.py

    r602 r651  
    22# 
    33# Copyright 2008 Optaros, Inc 
    4 import parentticket, util, uxhandler 
     4import parentticket, util, commontypes 
  • trunk/plugins/tickettypedsystem/ticketsystem/tickettypes/util.py

    r415 r651  
    88 
    99class TicketMetadataProvider(Component): 
     10    """ 
     11    This component adds a level of abstraction over the raw ini file  
     12    information that makes easy the retrieval of settings for the upper layers. 
     13    """     
    1014     
    1115    def __init__(self, *args, **kwargs): 
     
    1519 
    1620    def get_defined_realms(self): 
     21        """ 
     22        Returns a list with the names of the resources that have been defined. 
     23        """ 
    1724        return self.reader.get_resources() 
    1825     
    1926    def get_ticket_types(self, resource): 
     27        """ 
     28        Returns a list with the ticket types that have been defined. 
     29        """ 
    2030        return self.reader.get_groupings(resource) 
    2131         
    2232    def get_relationship_filters(self, resource, type): 
     33        """ 
     34        Returns the settings related to relationships. 
     35        """ 
    2336        # see if the resource has metadata 
    2437        if resource.realm in self.reader.get_resources():  
     
    2740     
    2841    def get_field_filters(self, resource, type): 
     42        """ 
     43        Returns the names of the ticket fields that are allowed per ticket  
     44        type. 
     45        """ 
    2946        # see if the resource has metadata 
    3047        if resource.realm in self.reader.get_resources():  
     
    3451    def get_ticket_group_field(self, resource): 
    3552        return self.reader.get_groupings(resource)[0] 
     53 
    3654 
    3755 
  • trunk/plugins/tickettypedsystem/ticketsystem/web_ui.py

    r624 r651  
    55import re 
    66import pkg_resources 
    7 import traceback 
    87 
    98from trac.core import Component, implements, ExtensionPoint 
     
    1211from trac.web.chrome import ITemplateProvider 
    1312 
    14 from ticketsystem.api import IOperationsProvider, ITicketRelationshipProvider, ITicketUIWrapper, TypedTicketSystem, TypedTicket 
     13from ticketsystem.api import IOperationsProvider, ITicketRelationshipProvider, ITicketUIWrapper, TypedTicket 
    1514 
    1615class TypedTicketModule(Component): 
     
    4544    # ITicketChangeListener methods 
    4645    def ticket_changed(self, ticket, comment, author, old_values) : 
    47         print 'ticket changed' 
    4846        for ticket_renderer in [ r for r in self.renderers if r.match_for_render(ticket['type'])]: 
    4947            ticket_renderer.process_changes(None, ticket) 
     
    110108    def pre_process_request(self, req, handler) : 
    111109        match = self.typed_ticket_re.match( req.path_info ) 
    112          
    113110        if match and req.method=='POST': 
     111             
    114112            type = None 
    115113            if 'id' in req.args and req.args['id'] is not None: 
     
    121119                    ticket_renderer.process_changes(req, None) 
    122120            except Exception, e: 
    123                 print e 
    124121                self.log.error(e) 
    125122        return handler 
Note: See TracChangeset for help on using the changeset viewer.