Hi Alec,
Attached goes a simple patch against tracrpc revision 975 to get it working
properly with trac in trunk (r 3501)
There is also a set of __ready-to-use__ examples in:
http://www.gwyddion.com/~cprov/tracrpc-examples/
for those interested in (nothing new, tough).
Thank you for the very nice job, RPC for Trac rocks.
[]
--
Celso Providelo <[EMAIL PROTECTED]>
Gwyddion Intelligent Devices - http://www.gwyddion.com
Index: tracrpc/ticket.py
===================================================================
--- tracrpc/ticket.py (revision 975)
+++ tracrpc/ticket.py (working copy)
@@ -33,11 +33,11 @@
yield ('TICKET_ADMIN', ((bool, int, str),), self.deleteAttachment)
# Exported methods
- def query(self, req, qstr = 'status!=closed'):
+ def query(self, req, qstr='status!=closed'):
""" Perform a ticket query, returning a list of ticket ID's. """
q = query.Query.from_string(self.env, qstr)
out = []
- for t in q.execute():
+ for t in q.execute(req):
out.append(t['id'])
return out
Index: tracrpc/wiki.py
===================================================================
--- tracrpc/wiki.py (revision 975)
+++ tracrpc/wiki.py (working copy)
@@ -79,7 +79,7 @@
def getPageHTML(self, req, pagename, version=None):
""" Return page in rendered HTML, latest version. """
- text = self.getPage(pagename, version)
+ text = self.getPage(req, pagename, version)
html = wiki_to_html(text, self.env, req, absurls=1)
return '<html><body>%s</body></html>' % html
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac