[Grok-dev] Work on grokcore.view shared_templates_userwarning branch
vincent.fretin at gmail.com
Mon Aug 3 12:49:55 EDT 2009
I worked on the shared template directory issue on the grokcore.view
Grokkers now use the new template registry, all tests passed.
I think I did a ugly hack for UnassociatedTemplatesGrokker in
Actually, the templatereg.check_unassociated action should be registered
only once and I don't know how to do that without a global grokker.
To Martin Faassen:
_annotateGrokInfo is defined in grokcore/view/components.py, it's used to
self.__grok_name__, self.__grok_location_ on the PageTemplate. It's used
only in __repr__.
I used __grok_location__ to get the template_path of a template. We don't
know the extension in the file registry...
you can use the same template with several view, there are tests for that
and https://bugs.launchpad.net/grok/+bug/401726 is fixed AFAICT.
Site : http://vincentfretin.ecreall.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Grok-dev