Re: Generate a tree List...

2007-03-02 Thread Jeremy Dunck
On 3/2/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > I thought with django i would choose a full features framework :( It works pretty well for me and many others. Writing a template tag is a reasonable solution, IMHO. :-/ --~--~-~--~~~---~--~~ You received thi

Re: Generate a tree List...

2007-03-02 Thread Jens Diemer
Jeremy Dunck schrieb: > If you want recursion in templates, why not just use Jinja? Jinja is super cool. But I would like to keep the PyLucid package small. I thought with django i would choose a full features framework :( -- Mfg. Jens Diemer CMS in pure Python CGI: http://www.pylucid.

Re: Generate a tree List...

2007-03-02 Thread Jeremy Dunck
On 3/2/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > Jeremy Dunck schrieb: > >> I found this: > >> https://svn.greenpeace.org/projects/custard/browser/production/trunk/melt/apps/custard/templatetags/customtags.py > >> > >> But i don't know how i can use this. > > Hm :( > The code is for an older

Re: Generate a tree List...

2007-03-02 Thread Jens Diemer
Jeremy Dunck schrieb: >> I found this: >> https://svn.greenpeace.org/projects/custard/browser/production/trunk/melt/apps/custard/templatetags/customtags.py >> >> But i don't know how i can use this. Hm :( The code is for an older django version. -- Mfg. Jens Diemer CMS in pure Python CG

Re: Generate a tree List...

2007-03-02 Thread Jens Diemer
Jens Diemer schrieb: > Jeremy Dunck schrieb: >>> I found this: >>> https://svn.greenpeace.org/projects/custard/browser/production/trunk/melt/apps/custard/templatetags/customtags.py >>> >>> But i don't know how i can use this. >> Yeah, I'd be careful about the license. I don't see one. >> You migh

Re: Generate a tree List...

2007-03-01 Thread Jens Diemer
Jeremy Dunck schrieb: >> I found this: >> https://svn.greenpeace.org/projects/custard/browser/production/trunk/melt/apps/custard/templatetags/customtags.py >> >> But i don't know how i can use this. > > Yeah, I'd be careful about the license. I don't see one. > You might contact one of these fol

Re: Generate a tree List...

2007-03-01 Thread Jeremy Dunck
On 3/1/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > Joseph Heck schrieb: > > Check out the docs at > > http://www.djangoproject.com/documentation/templates_python/ for a good > > overview. Making one is really pretty straightfoward. > > I don't think this is so easy :( > > I found this: > https:

Re: Generate a tree List...

2007-03-01 Thread Jens Diemer
Joseph Heck schrieb: > Check out the docs at > http://www.djangoproject.com/documentation/templates_python/ for a good > overview. Making one is really pretty straightfoward. I don't think this is so easy :( I found this: https://svn.greenpeace.org/projects/custard/browser/production/trunk/mel

Re: Generate a tree List...

2007-02-28 Thread Jeremy Dunck
On 2/27/07, Jens Diemer <[EMAIL PROTECTED]> wrote: ... > recurse used the for loop again with the subitems. So i can easy create > a recursion. While I agree with Joseph that writing your own template tag to handle this is pretty easy, it's worth noting that Jinja spun off of Django's templating

Re: Generate a tree List...

2007-02-28 Thread Joseph Heck
The templates don't support that kind of functionality directly. You'll probably want to create your own template tag that will do for you - you can recurse to your heart's content in Python. Check out the docs at http://www.djangoproject.com/documentation/templates_python/ for a good overview. Ma

Generate a tree List...

2007-02-27 Thread Jens Diemer
I wand generate a tree menu/sitemap. How can i make a recursive loop in a template??? In jinja i can use the tag "recurse": http://wsgiarea.pocoo.org/jinja/docs/loops.html#recursion Here a jinja example: context = {'sitemap