[Grok-dev] Re: what grok.JSON methods to publish?

Jan-Wijbrand Kolman janwijbrand at gmail.com
Fri Jan 4 17:09:57 EST 2008

On Jan 4, 2008 7:21 PM, Jan-Wijbrand Kolman <janwijbrand at gmail.com> wrote:
> Since I'd like (need!) to have the __call__ bug fixed asap, I'll look
> into having the __* and the _* methods ignored in REST, XMLRPC and JSON
> "views".
> I'll factor this filtering of methods into one function that the
> subsequent grokkers can use. I'll also take care of filtering out the
> method for these "view" types that really should be kept internal (like
> browserDefault() and publishTraverse()).

I checked in a fix and improved the JSON tests to make sure __*__
methods (or any other methods with names starting with an '_') are not
registered anymore as view.


More information about the Grok-dev mailing list