Trees Indices Help
Trac
Package trac :: Package ticket :: Module api :: Class TicketSystem

Class TicketSystem

source code

 object --+ 
 | 
core.Component --+
 |
 TicketSystem

Nested Classes

Inherited from core.Component : __metaclass__

Instance Methods
__init__(self, compmgr, init=<function __init__ at 0x7f8a61c78b90>, cls=<class 'trac.ticket.api.TicketSystem'>)
x.__init__(...) initializes x; see help(type(x)) for signature source code
get_available_actions(self, req, ticket)
Returns a sorted list of available actions source code
get_all_status(self)
Returns a sorted list of all the states all of the action controllers know about. source code
get_ticket_field_labels(self)
Produce a (name,label) mapping from get_ticket_fields. source code
get_ticket_fields(self)
Returns list of fields available for tickets. source code
reset_ticket_fields(self)
Invalidate ticket field cache. source code
fields(self, db)
Return the list of fields available for tickets. source code
get_custom_fields(self) source code
custom_fields(self, db)
Return the list of custom ticket fields available for tickets. source code
get_field_synonyms(self)
Return a mapping from field name synonyms to field names. source code
eventually_restrict_owner(self, field, ticket=None)
Restrict given owner field to be a list of users having the TICKET_MODIFY permission (for the given ticket) source code
get_permission_actions(self) source code
get_link_resolvers(self) source code
get_wiki_syntax(self) source code
get_resource_realms(self) source code
get_resource_description(self, resource, format=None, context=None, **kwargs) source code
format_summary(self, summary, status=None, resolution=None, type=None) source code
resource_exists(self, resource) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from core.Component : __new__ , implements

Class Variables
action_controllers = <OrderedExtensionsOption [ticket] "workfl...
restrict_owner = <BoolOption [ticket] "restrict_owner">
default_version = <Option [ticket] "default_version">
default_type = <Option [ticket] "default_type">
default_priority = <Option [ticket] "default_priority">
default_milestone = <Option [ticket] "default_milestone">
default_component = <Option [ticket] "default_component">
default_severity = <Option [ticket] "default_severity">
default_summary = <Option [ticket] "default_summary">
default_description = <Option [ticket] "default_description">
default_keywords = <Option [ticket] "default_keywords">
default_owner = <Option [ticket] "default_owner">
default_cc = <Option [ticket] "default_cc">
default_resolution = <Option [ticket] "default_resolution">
reserved_field_names = ['report', 'order', 'desc', 'group', 'g...
Properties
change_listeners
List of components that implement ITicketChangeListener
milestone_change_listeners
List of components that implement IMilestoneChangeListener

Inherited from object: __class__

Method Details

__init__(self, compmgr, init=<function __init__ at 0x7f8a61c78b90>, cls=<class 'trac.ticket.api.TicketSystem'>)
(Constructor)

source code
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

get_ticket_fields(self)

source code

Returns list of fields available for tickets.

Each field is a dict with at least the 'name', 'label' (localized) and 'type' keys. It may in addition contain the 'custom' key, the 'optional' and the 'options' keys. When present 'custom' and 'optional' are always True.

fields(self, db)

source code
Return the list of fields available for tickets.
Decorators:
  • @cached

custom_fields(self, db)

source code
Return the list of custom ticket fields available for tickets.
Decorators:
  • @cached

get_field_synonyms(self)

source code
Return a mapping from field name synonyms to field names. The synonyms are supposed to be more intuitive for custom queries.

Class Variable Details

action_controllers

Value:
<OrderedExtensionsOption [ticket] "workflow">

reserved_field_names

Value:
['report',
 'order',
 'desc',
 'group',
 'groupdesc',
 'col',
 'row',
 'format',
...

Property Details

change_listeners

List of components that implement ITicketChangeListener
Get Method:
unreachable.extensions(component) - Return a list of components that declare to implement the extension point interface.

milestone_change_listeners

List of components that implement IMilestoneChangeListener
Get Method:
unreachable.extensions(component) - Return a list of components that declare to implement the extension point interface.

Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /