Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 223173 | Differences between
and this patch

Collapse All | Expand All

(-)tracrpc/ticket.py (+14 lines)
Lines 27-32 Link Here
27
        yield ('TICKET_VIEW', ((list,), (list, str)), self.query)
27
        yield ('TICKET_VIEW', ((list,), (list, str)), self.query)
28
        yield ('TICKET_VIEW', ((list, xmlrpclib.DateTime),), self.getRecentChanges)
28
        yield ('TICKET_VIEW', ((list, xmlrpclib.DateTime),), self.getRecentChanges)
29
        yield ('TICKET_VIEW', ((list, int),), self.getAvailableActions)
29
        yield ('TICKET_VIEW', ((list, int),), self.getAvailableActions)
30
        yield ('TICKET_VIEW', ((list, int),), self.getAvailableActions2)
30
        yield ('TICKET_VIEW', ((list, int),), self.get)
31
        yield ('TICKET_VIEW', ((list, int),), self.get)
31
        yield ('TICKET_CREATE', ((int, str, str), (int, str, str, dict), (int, str, str, dict, bool)), self.create)
32
        yield ('TICKET_CREATE', ((int, str, str), (int, str, str, dict), (int, str, str, dict, bool)), self.create)
32
        yield ('TICKET_ADMIN', ((list, int, str), (list, int, str, dict), (list, int, str, dict, bool)), self.update)
33
        yield ('TICKET_ADMIN', ((list, int, str), (list, int, str, dict), (list, int, str, dict, bool)), self.update)
Lines 68-73 Link Here
68
        t = model.Ticket(self.env, id)
69
        t = model.Ticket(self.env, id)
69
        return ticketSystem.get_available_actions(req, t)
70
        return ticketSystem.get_available_actions(req, t)
70
71
72
    def getAvailableActions2(self, req, id):
73
        """Returns the actions that can be performed on the ticket."""
74
        from trac.ticket.default_workflow import ConfigurableTicketWorkflow
75
        controller = ConfigurableTicketWorkflow(self.env)
76
        ticketSystem = TicketSystem(self.env)
77
        ticket = model.Ticket(self.env, id)
78
        for controller in TicketSystem(self.env).action_controllers:
79
            actions = controller.get_ticket_actions(req, ticket)
80
            for k, action in actions:
81
                (label, control, hint) = controller.render_ticket_action_control(req, ticket, action)
82
                changes = controller.get_ticket_changes(req, ticket, action)
83
                yield (k, action, label, hint, changes)
84
71
    def get(self, req, id):
85
    def get(self, req, id):
72
        """ Fetch a ticket. Returns [id, time_created, time_changed, attributes]. """
86
        """ Fetch a ticket. Returns [id, time_created, time_changed, attributes]. """
73
        t = model.Ticket(self.env, id)
87
        t = model.Ticket(self.env, id)
(-).project (+18 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>xmlrpcplugin</name>
4
	<comment></comment>
5
	<projects>
6
		<project>trac-0.11</project>
7
	</projects>
8
	<buildSpec>
9
		<buildCommand>
10
			<name>org.python.pydev.PyDevBuilder</name>
11
			<arguments>
12
			</arguments>
13
		</buildCommand>
14
	</buildSpec>
15
	<natures>
16
		<nature>org.python.pydev.pythonNature</nature>
17
	</natures>
18
</projectDescription>
(-).pydevproject (+9 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<?eclipse-pydev version="1.0"?>
3
4
<pydev_project>
5
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.4</pydev_property>
6
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
7
<path>/xmlrpcplugin</path>
8
</pydev_pathproperty>
9
</pydev_project>
(-)setup.py (-1 / +1 lines)
Lines 4-10 Link Here
4
4
5
setup(
5
setup(
6
    name='TracXMLRPC',
6
    name='TracXMLRPC',
7
    version='1.0.0',
7
    version='1.0.1',
8
    license='BSD',
8
    license='BSD',
9
    author='Alec Thomas',
9
    author='Alec Thomas',
10
    author_email='alec@swapoff.org',
10
    author_email='alec@swapoff.org',

Return to bug 223173