Re: Dumping objects in templates

2008-02-08 Thread Jorge Gajon
On Fri, Feb 8, 2008 at 6:46 AM, Gollum <[EMAIL PROTECTED]> wrote: > Is there any way to dump the whole object to html, for usual debugging > purposes. All I want is to see some objects whole structure, all field > values, child sets, etc. that are available for template. > I'm kind of new to p

Re: Dumping objects in templates

2008-02-08 Thread Tim
This might help: http://www.djangosnippets.org/snippets/306/ On Feb 8, 9:59 am, Gollum <[EMAIL PROTECTED]> wrote: > Thanks a lot! > I know how to add tags, so I guess I'll start working on my own debug > tools lib, but its still feels rather strange that I ought to do it. --~--~-~--~

Re: Dumping objects in templates

2008-02-08 Thread Gollum
Thanks a lot! I know how to add tags, so I guess I'll start working on my own debug tools lib, but its still feels rather strange that I ought to do it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: Dumping objects in templates

2008-02-08 Thread NickJ
I don't know of anything out-of-the-box in python or in django, but it should be pretty easy to write your own debug function. Python supports excellent introspection. A very basic start would be something like: def debug(obj): ret = "" for attr in dir(obj): ret += "%s - %s" %

Dumping objects in templates

2008-02-08 Thread Gollum
Hi, all! Is there any way to dump the whole object to html, for usual debugging purposes. All I want is to see some objects whole structure, all field values, child sets, etc. that are available for template. I'm kind of new to python and django, but I have some cakePHP experience and debug() func