On Aug 12, 3:48 pm, Olemis Lang <[email protected]> wrote:
> IMO TracGViz should work with both versions (1.0.0 and >=1.0.6) of
> XmlRpcPlugin, but if I patch it to make it work with 1.0.6, for
> instance, then it stops working with 1.0.0. So I need to find a way to
> determine at run-time which type is the one being accepted by RPC
> handlers in order supply the right object as a parameter.
Either check for tracrpc.__version__ >= '1.0.6', or alternatively the
very next changeset adds the version to systeminfo dictionary - you
could look it up there - if it returns anything, then you are on a
version of the plugin that uses python datetime.
if self.env.systeminfo.get('RPC'):
# we have python datetime
The change was of course made so that all methods can be transport-
agnostic. It makes sense in the long run...
:::simon
https://www.coderesort.com
http://www.ohloh.net/accounts/osimons
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---