Define the BugDir class for storing a collection of bugs.
A BugDir is a container for Bugs, with some additional attributes.
Parameters : | storage : Storage
uuid : str, optional
from_storage : bool, optional
|
---|
See also
SimpleBugDir
Methods
append | L.append(object) – append object to end |
bug_from_uuid(uuid) | |
clear_cached_setting([setting]) | If setting=None, clear all cached settings |
count(...) | |
extend | L.extend(iterable) – extend list by appending elements from the iterable |
has_bug(bug_uuid) | |
index((value, [start, ...) | Raises ValueError if the value is not present. |
insert | L.insert(index, object) – insert object before index |
load_all_bugs() | Warning: this could take a while. |
load_settings([settings_mapfile]) | |
new_bug([summary, _uuid]) | |
pop(...) | Raises IndexError if list is empty or index is out of range. |
remove | L.remove(value) – remove first occurrence of value. |
remove_bug(bug) | |
reverse | L.reverse() – reverse IN PLACE |
save() | Save any loaded contents to storage. |
save_settings() | |
sibling_uuids() | |
sort | L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; |
uuids([use_cached_disk_uuids]) |
The allowed active bug states and their descriptions.
This property defaults to None.
Space for an array of extra strings. Useful for storing state for functionality implemented purely in becommands/<some_function>.py.
This property defaults to [].
This property is checked with <function _extra_strings_check_fn at 0x95286bc>.
The allowed inactive bug states and their descriptions.
This property defaults to None.
Warning: this could take a while.
Save any loaded contents to storage. Because of lazy loading of bugs and comments, this is actually not too inefficient.
However, if self.storage.is_writeable() == True, then any changes are automatically written to storage as soon as they happen, so calling this method will just waste time (unless something else has been messing with your stored files).
The allowed bug severities and their descriptions.
This property defaults to None.
The current project development target.
This property defaults to None.
RevisionedBugDirs are read-only copies used for generating diffs between revisions.
Methods
append | L.append(object) – append object to end |
bug_from_uuid(uuid) | |
changed() | |
clear_cached_setting([setting]) | If setting=None, clear all cached settings |
count(...) | |
extend | L.extend(iterable) – extend list by appending elements from the iterable |
has_bug(bug_uuid) | |
index((value, [start, ...) | Raises ValueError if the value is not present. |
insert | L.insert(index, object) – insert object before index |
load_all_bugs() | Warning: this could take a while. |
load_settings([settings_mapfile]) | |
new_bug([summary, _uuid]) | |
pop(...) | Raises IndexError if list is empty or index is out of range. |
remove | L.remove(value) – remove first occurrence of value. |
remove_bug(bug) | |
reverse | L.reverse() – reverse IN PLACE |
save() | Save any loaded contents to storage. |
save_settings() | |
sibling_uuids() | |
sort | L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; |
uuids([use_cached_disk_uuids]) |