Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Generate a tree List...
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeremy Dunck  
View profile  
 More options Mar 1 2007, 9:35 am
From: "Jeremy Dunck" <jdu...@gmail.com>
Date: Thu, 1 Mar 2007 08:35:12 -0600
Local: Thurs, Mar 1 2007 9:35 am
Subject: Re: Generate a tree List...
On 3/1/07, Jens Diemer <python_gm...@jensdiemer.de> 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://svn.greenpeace.org/projects/custard/browser/production/trunk/...

> 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 folks:
https://svn.greenpeace.org/projects/custard/browser/doc/copyright.html

But it looks like something like this would do:

x = { 'value':1, 'children': [
  { 'value': 2, 'children': []},
  {'value' : 3, 'children': [
     { 'value':4, 'children':[] }
     ]}
  ]}
----
{% recurse through children as node starting with x %}
...do something with node.
{% endrecurse %}

> Jeremy Dunck schrieb:
>  > It won't be added to Django core, AFAIK.
> Why?
> Everyone need this function, if you would like to build a sitemap with a
> tree.

No, not everyone needs this.
http://www.djangobook.com/en/beta/chapter04/#cn210

If you do, consider using Jinja with Django.  The HttpResponse just
wants a string which Jinja is (of course) capable of creating.

> I think this feature should not be missing in the core. It's a very
> useful function

As a programmer, I agree.  But the Django templating language is not
only for me, nor am I limited to the Django templating language.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.