aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/properties.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged Thomas Habets 2009-01-07 XML output for "be show".W. Trevor King2009-06-191-4/+6
| | | | | | | | | | | | I rewrote a few of his routines, e.g. generalizing Comment.string_thread to run a caller-specified method avoided the need for some duplicate code in Comment.xml_thread. There was also a reasonable reorganization of libbe.settings_object.versioned_property because the <in_reply_to> field of the Comment.xml output was giving me `-1' (= old settings_object.EMPTY) instead of None, even after I had set comm.in_reply_to to None. The rewritten versioned_property avoids the ambiguity of UNPRIMED vs EMPTY, and avoids the stupididy of my using EMPTY=-1 ;).
* Added decorator-style properties to bugdir. Created settings_object module.W. Trevor King2008-12-021-18/+77
| | | | | | | | settings_object.SavedSettingsObject encapsulates some of the common settings functionality in the BE BugDir, Bug, and Comment classes. It's a bit awkward due to the nature of scoping in python subclasses, but it's better than reproducing this code in each of the above classes. Now I need to move Bug and Comment over to *this* system ;).
* Added libbe/properties to make property management easier.W. Trevor King2008-11-281-0/+418
libbe/bug has been moved over to the new system. comment and bugdir still to go.