trac.ticket.model
¶
Components¶
-
class
trac.ticket.model.
MilestoneCache
¶ Bases:
trac.core.Component
Cache for milestone data and factory for ‘milestone’ resources.
-
factory
(name_due_completed_description_tuple, milestone_component=None)¶ Build a
Milestone
object from milestone data.That instance remains private, i.e. can’t be retrieved by name by other processes or even by other threads in the same process, until its
insert
method gets called with success.
-
fetchall
()¶ Iterator on all milestones.
-
fetchone
(name, milestone=None)¶ Retrieve an existing milestone having the given
name
.If
milestone
is specified, fill that instance instead of creating a fresh one.Returns: None
if no such milestone exists
-
milestones
¶ Dictionary containing milestone data, indexed by name.
Milestone data consist of a tuple containing the name, the datetime objects for due and completed dates and the description.
-