Changes between Version 22 and Version 23 of FlexibleAssignToPlugin
- Timestamp:
- Nov 19, 2015, 10:25:11 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FlexibleAssignToPlugin
v22 v23 22 22 == Bugs/Feature Requests 23 23 24 Existing bugs and feature requests for FlexibleAssignToPlugin are [query:status!=closed&component=FlexibleAssignToPlugin&order=priority here]. 24 Existing bugs and feature requests for FlexibleAssignToPlugin are 25 [report:9?COMPONENT=FlexibleAssignToPlugin here]. 25 26 26 27 If you have any issues, create a … … 32 33 33 34 * '''Source''' 34 * latest/trunk rev: download the zipped source from [ download:flexibleassigntoplugin here].35 * latest/trunk rev: download the zipped source from [export:flexibleassigntoplugin here]. 35 36 * '''Binaries''': all zips include sample plugin !SampleValidOwnerProvider.py: 36 37 * Trac 0.13+ on Python 2.7: [attachment:FlexibleAssignTo-0.8.13-py2.7.zip FlexibleAssignTo-0.8.13-py2.7]: recommended version due to modernized Trac DB API usage … … 39 40 == Installation 40 41 41 This plugin requires '''Trac 0.11+''', and it was built and tested against [ http://trac.edgewall.org/browser/trunk?rev=10668 0.13dev-r10668] on Python 2.7.1.42 This plugin requires '''Trac 0.11+''', and it was built and tested against [/browser/trunk?rev=10668 0.13dev-r10668] on Python 2.7.1. 42 43 43 44 To install this plugin: 44 45 45 46 {{{#!sh 46 easy_install http ://trac-hacks.org/svn/flexibleassigntoplugin/0.13/trunk47 easy_install https://trac-hacks.org/svn/flexibleassigntoplugin/0.13/trunk 47 48 }}} 48 49 … … 65 66 This module must contain a class that: 66 67 * declares that it implements IValidOwnerProvider 67 * provides a getUsers method that takes a 'next_action_obj' as it's sole param and returns a list of instances of !SimpleUser (or a subclass) representing valid owners of that next state. Keep reading for details on the getUsers() method and the !SimpleUser class. If this sounds confusing and/or you just want to jump in and get your hands dirty, go check out the source for !SampleValidOwnerProvider.py.68 * provides a getUsers method that takes a 'next_action_obj' as it's sole param and returns a list of instances of !SimpleUser (or a subclass) representing valid owners of that next state. Keep reading for details on the getUsers() method and the !SimpleUser class. If this sounds confusing and/or you just want to experiment, go check out the source for !SampleValidOwnerProvider.py. 68 69 c. the getUsers() method [[BR]] 69 70 The sole param to getUsers(), next_action_obj, represents a workflow state that is available from the current ticket state AND that implements the "set_owner" operation (if you really want to get into the nitty gritty, next_action_obj is identical to the objects in the !ConfigurableTicketWorkflow.actions list in trac/ticket/default_workflow.py). next_action_obj is provided to getUsers for the sole purpose of providing a way to look up custom workflow state params. For example, if you had a workflow state defined in your `trac.ini`: … … 92 93 There are standard get/set methods for these; see the !SimpleUser class for specific method prototypes. [[BR]]'''Note:''' the format of username values *must* match the format of usernames for logged-in users: if John Doe logs in with the username "jdoe", then a !SimpleUser instance representing John Doe should get its username attribute set to "jdoe". If you don't do this, !FlexibleAssignTo will not work correctly. 93 94 94 '''3. Config options''' [[BR]]95 '''3. Configuration options''' [[BR]] 95 96 The following options should be specified in the {{{[flexibleassignto]}}} section of your `trac.ini`. 96 97 * `ensure_user_data` [[BR]]