[Cosmo-dev] JSON-RPC considered harmful
Brian Moseley
bcm at osafoundation.org
Wed Dec 6 00:26:05 PST 2006
On 12/6/06, Travis Vachon <travis at osafoundation.org> wrote:
> Bobby- how well does JSON-RPC handle overriding methods? That is,
> assuming ScoobyService points at an RPCService which defines both
> getEvent(calendarPath, eventId) and getEvent(calendarPath, eventId,
> ticket), will the RPC stuff do the correct thing for both
> ScoobyService.getEvents(calendarPath, eventID) and
> ScoobyService.getEvents(calendarPath, eventId, ticket) on the
> javascript side?
i think you're going to need to do a second rpc url no matter what,
for anonymous access to the preview page. the alternative is making
the current rpc url allow both anonymous and user access and adding a
bunch of conditionals to all rpc methods to behave differently in each
circumstance.
More information about the cosmo-dev
mailing list