Re: nosylist/assignedto per subject
"John P. Rouillard" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Tom: In message <[email protected]>, Anthony Pankov writes: >Hello, Tom. > >tracker_admin, as i see, is simplifying use of roundup-tracker from >outside. Tom Ekberg wrote: >> I had previously written an API for roundup_admin that helped with >> this. The assignedto -> assignedto_mutli part is: > >> import tracker_admin >> tracker = 'it' > >> def main(): >> admin = tracker_admin.Admin('/var/www/html/' + tracker) >> for (id,assignedto) in admin.find_props('issue', ['id', 'assignedto'], order='id'): >> if assignedto: >> admin.set('issue', id, assignedto_multi=assignedto) >> admin.close() > >> if __name__ == '__main__': >> main() > >> A side effect was that the activity field changed. One user >> complained about that. The find_props method has no corresponding >> roundup-admin command. It's like 'list' with more than one property. >> The code to change user-defined queries was similar. > >> So, it is not recommended, but is possible. If anyone wants >> the tracker_admin code, just ask. The api sounds like it may be a good post for the wiki. Maybe as part of: the api section of: http://www.roundup-tracker.org/cgi-bin/moin.cgi/CustomisationExamples -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------------------------------