trac.ticket.model¶
Components¶
-
class
trac.ticket.model.MilestoneCache¶ Bases:
trac.core.ComponentCache for milestone data and factory for ‘milestone’ resources.
-
factory(name_due_completed_description_tuple, milestone_component=None)¶ Build a
Milestoneobject 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
insertmethod gets called with success.
-
fetchall()¶ Iterator on all milestones.
-
fetchone(name, milestone=None)¶ Retrieve an existing milestone having the given
name.If
milestoneis specified, fill that instance instead of creating a fresh one.Returns: Noneif 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.
-