Done.  For those following along, here's the link:

http://www.djangosnippets.org/snippets/1186/


On Nov 13, 10:17 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Fri, Nov 14, 2008 at 12:13 PM, Erik <[EMAIL PROTECTED]> wrote:
>
> > In case there are others following this topic, I have the test system
> > working.  I ended up putting a couple of functions in the contrib
> > folder of my django installation under the mako_django folder.  The
> > functions emulate the behavior of the instrumented_test_render and
> > run_tests functions from django.test.utils an django.test.simple
> > respectively.  This is pretty much the simplest scheme I could come up
> > with, and I'm sure a different implementation would provide more
> > features.  However, it does allow you to access the template and
> > context members of the result when using the django test client.
> > Russ -- Thanks for your help.  After browsing around in the code, I
> > think the process for adding at least this much test functionality for
> > an external template system was relatively painless.  I would welcome
> > any comments (or corrections) regarding this solution if you have
> > them.  As far as improvements, I think all that's really needed is a
> > little howto (to which I would be happy to contribute).  It seemed
> > easy enough at least in this case that adding special support might be
> > overkill.
>
> Documentation improvements are always welcome.
>
> > If anyone wants to try it, what I did was to put the following code in
> > django/contrib/mako_django/__init__.py:
>
> Thanks for taking the time to do this Erik.
>
> One minor suggestion - there's not really any need to put this into
> the django.contrib namespace. django.contrib is intended as a
> collection of officially sanctioned extensions, not a general storage
> place for other plugins. It shouldn't make any difference to the way
> your code runs - it just means people don't get confused into thinking
> that your code is part of the official distribution that they are
> missing for some reason.
>
> Another suggestion, but a procedural one: I would suggest that you
> upload this to djangosnippets.org. As a message in a mailing list,
> this good work is easy to lose - on snippets, it is archived along
> with lots of other useful goodies.
>
> Yours,
> Russ Magee %-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to