ncoronado / tracshell

Automatically exported from code.google.com/p/tracshell
1 stars 0 forks source link

trac proxy rewrite #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Describe the enhancement in detail.

I don't like the current Trac backend and have written a cleaner
ServerProxy wrapper class for another potential project that can be
integrated into tracshell.

It will allow for a more natural API:

>> from tracshell import proxy
>> trac = proxy.TracProxy(user, passwd, ...)
>> tickets = trac.query_tickets("status!=closed")
>> for ticket in tickets:
>>     print ticket.id, ticket.summary
1 test ticket 1
2 test ticket 2
3 test ticket 3
>> ticket = trac.get_ticket(1)
>> ticket.summary = "My Ticket"
>> trac.save_ticket(ticket)
>> tickets = track.query_tickets("summary=My Ticket")
>> for ticket in tickets:
       print ticket.id, ticket.summary
1 My Ticket

What files will be affected?

D trac.py
A proxy.py
A backends/
A backends/__init__.py
A backends/trac.py
M shell.py

How will the enhancement benefit the project?

Improve program readability and maintainability

What side-effects (if any) will the enhancement create?

Heavy modifications to shell.py as this enhancement will completely change
the trac API.

The feature branch for this ticket is: /branches/rpc-rewrite

Original issue reported on code.google.com by j.kennet...@gmail.com on 14 Apr 2009 at 7:57

GoogleCodeExporter commented 8 years ago
pretty much ready to merge into trunk, but googlecode is giving me a 503 :S

Original comment by j.kennet...@gmail.com on 16 Apr 2009 at 2:37

GoogleCodeExporter commented 8 years ago
r59

Original comment by j.kennet...@gmail.com on 16 Apr 2009 at 2:57