__init__(self,
env,
tkt_id=None,
db=None,
version=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
|
|
|
|
|
__setitem__(self,
name,
value)
Log ticket modifications so the table ticket_change can be updated
source code
|
|
|
get_value_or_default(self,
name)
Return the value of a field or the default value if it is undefined
source code
|
|
|
populate(self,
values)
Populate the ticket with 'suitable' values from a dictionary
source code
|
|
|
|
|
|
save_changes(self,
author=None,
comment=None,
when=None,
db=None,
cnum='')
Store ticket changes in the database.
source code
|
|
|
get_changelog(self,
when=None,
db=None)
Return the changelog as a list of tuples of the form
(time, author, field, oldvalue, newvalue, permanent).
source code
|
|
|
|
|
|
get_change(self,
cnum,
db=None)
Return a ticket change by its number.
source code
|
|
|
delete_change(self,
cnum)
Delete a ticket change.
source code
|
|
|
modify_comment(self,
cdate,
author,
comment,
when=None)
Modify a ticket comment specified by its date, while keeping a
history of edits.
source code
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|
Static Methods
Class Variables
protected_fields = ('resolution', 'status', 'time', 'changetime')
Properties
Inherited from object:
__class__
Method Details
__init__(self,
env,
tkt_id=None,
db=None,
version=None)
(Constructor)
source code
x.__init__(...) initializes x; see help(type(x)) for signature
- Overrides:
object.__init__
- (inherited documentation)
Add ticket to database.
The db argument is deprecated in favor of with_transaction().
save_changes(self,
author=None,
comment=None,
when=None,
db=None,
cnum='')
source code
Store ticket changes in the database. The ticket must already exist in
the database. Returns False if there were no changes to save, True
otherwise.
The db argument is deprecated in favor of with_transaction().
Return the changelog as a list of tuples of the form
(time, author, field, oldvalue, newvalue, permanent).
While the other tuple elements are quite self-explanatory,
the permanent flag is used to distinguish collateral changes
that are not yet immutable (like attachments, currently).
Delete the ticket.
The db argument is deprecated in favor of with_transaction().
Property Details
time_created
- Get Method:
- unreachable(self)
time_changed
- Get Method:
- unreachable(self)
exists
- Get Method:
- unreachable(self)