Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 106544 Details for
Bug 223173
Action list not correct when using custom workflow with trac 0.11
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch for xmlrpcplugin
clipboard.txt (text/plain), 3.18 KB, created by
Steffen Pingel
on 2008-07-04 01:51:14 EDT
(
hide
)
Description:
patch for xmlrpcplugin
Filename:
MIME Type:
Creator:
Steffen Pingel
Created:
2008-07-04 01:51:14 EDT
Size:
3.18 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P xmlrpcplugin >Index: tracrpc/ticket.py >=================================================================== >--- tracrpc/ticket.py (revision 3952) >+++ tracrpc/ticket.py (working copy) >@@ -27,6 +27,7 @@ > yield ('TICKET_VIEW', ((list,), (list, str)), self.query) > yield ('TICKET_VIEW', ((list, xmlrpclib.DateTime),), self.getRecentChanges) > yield ('TICKET_VIEW', ((list, int),), self.getAvailableActions) >+ yield ('TICKET_VIEW', ((list, int),), self.getAvailableActions2) > yield ('TICKET_VIEW', ((list, int),), self.get) > yield ('TICKET_CREATE', ((int, str, str), (int, str, str, dict), (int, str, str, dict, bool)), self.create) > yield ('TICKET_ADMIN', ((list, int, str), (list, int, str, dict), (list, int, str, dict, bool)), self.update) >@@ -68,6 +69,19 @@ > t = model.Ticket(self.env, id) > return ticketSystem.get_available_actions(req, t) > >+ def getAvailableActions2(self, req, id): >+ """Returns the actions that can be performed on the ticket.""" >+ from trac.ticket.default_workflow import ConfigurableTicketWorkflow >+ controller = ConfigurableTicketWorkflow(self.env) >+ ticketSystem = TicketSystem(self.env) >+ ticket = model.Ticket(self.env, id) >+ for controller in TicketSystem(self.env).action_controllers: >+ actions = controller.get_ticket_actions(req, ticket) >+ for k, action in actions: >+ (label, control, hint) = controller.render_ticket_action_control(req, ticket, action) >+ changes = controller.get_ticket_changes(req, ticket, action) >+ yield (k, action, label, hint, changes) >+ > def get(self, req, id): > """ Fetch a ticket. Returns [id, time_created, time_changed, attributes]. """ > t = model.Ticket(self.env, id) >Index: .project >=================================================================== >--- .project (revision 0) >+++ .project (revision 0) >@@ -0,0 +1,18 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<projectDescription> >+ <name>xmlrpcplugin</name> >+ <comment></comment> >+ <projects> >+ <project>trac-0.11</project> >+ </projects> >+ <buildSpec> >+ <buildCommand> >+ <name>org.python.pydev.PyDevBuilder</name> >+ <arguments> >+ </arguments> >+ </buildCommand> >+ </buildSpec> >+ <natures> >+ <nature>org.python.pydev.pythonNature</nature> >+ </natures> >+</projectDescription> >Index: .pydevproject >=================================================================== >--- .pydevproject (revision 0) >+++ .pydevproject (revision 0) >@@ -0,0 +1,9 @@ >+<?xml version="1.0" encoding="UTF-8" standalone="no"?> >+<?eclipse-pydev version="1.0"?> >+ >+<pydev_project> >+<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.4</pydev_property> >+<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH"> >+<path>/xmlrpcplugin</path> >+</pydev_pathproperty> >+</pydev_project> >Index: setup.py >=================================================================== >--- setup.py (revision 3952) >+++ setup.py (working copy) >@@ -4,7 +4,7 @@ > > setup( > name='TracXMLRPC', >- version='1.0.0', >+ version='1.0.1', > license='BSD', > author='Alec Thomas', > author_email='alec@swapoff.org',
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223173
: 106544 |
106546
|
139095
|
139103