Hello Barry,
First, if you use wsme with pecan, you do not have to use WSRoot as wsme
integrates tighly in the pecan RestController (see the doc [1]).
If you do use pecan RestController, then the routing will be done by
pecan, so you should look first into the pecan API to see how to expose
a function under a different name.
If it is possible (probably by adding a parameter to the pecan expose
decorator), then you can try and hack the wsme.pecan adapter so you can
provide this option to the wsmeext.pecan.expose decorator.
If you have a patch (with a unittest [2]), please push it to gerrit, it
will be happilly merged.
An alternative is of course to simply change the url scheme by using
"v30" instead of "3.0", which is, IIRC, what the ceilometer api does.
Hope this will help,
Christophe
[1]
https://wsme.readthedocs.org/en/latest/integrate.html#pecan
[2] see tests/pecantest/test/tests/test_ws.py and
tests/pecantest/test/controllers/ws.py
Le 11/12/2013 03:27, Barry Warsaw a �crit :
> --
> You received this message because you are subscribed to the Google
> Groups "python-wsme" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
python-wsme...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.