Package trac :: Package ticket :: Module model :: Class Milestone

Class Milestone

source code

object --+
         |
        Milestone

Instance Methods
 
__init__(self, env, name=None)
Create an undefined milestone or fetch one from the database, if name is given.
source code
 
__repr__(self)
repr(x)
source code
 
checkin(self, invalidate=True) source code
 
delete(self)
Delete the milestone.
source code
 
insert(self)
Insert a new milestone.
source code
 
update(self, author=None)
Update the milestone.
source code
 
move_tickets(self, new_milestone, author, comment=None, exclude_closed=False)
Move tickets associated with this milestone to another milestone.
source code

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

Class Methods
 
select(cls, env, include_completed=True) source code
Class Variables
  realm = 'milestone'
Properties
  resource
  cache
  exists
  is_completed
  is_late

Inherited from object: __class__

Method Details

__init__(self, env, name=None)
(Constructor)

source code 

Create an undefined milestone or fetch one from the database, if name is given.

In the latter case however, raise ~trac.resource.ResourceNotFound if a milestone of that name doesn't exist yet.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

insert(self)

source code 
Insert a new milestone.
Raises:

update(self, author=None)

source code 
Update the milestone.
Raises:

move_tickets(self, new_milestone, author, comment=None, exclude_closed=False)

source code 
Move tickets associated with this milestone to another milestone.
Parameters:
  • new_milestone - milestone to which the tickets are moved
  • author - author of the change
  • comment - comment that is inserted into moved tickets. The string should not be translated.
  • exclude_closed - whether tickets with status closed should be excluded
Returns:
a list of ids of tickets that were moved

Property Details

resource

Get Method:
unreachable.resource(self)

cache

Get Method:
unreachable.cache(self)

exists

Get Method:
unreachable(self)

is_completed

Get Method:
unreachable(self)

is_late

Get Method:
unreachable(self)