#3184: [patch] better unordered_list
------------------------------------+---------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Type: defect | Status: new
Priority: normal | Milestone:
Component: Template system | Version: SVN
Severity: normal | Resolution:
Keywords: |
------------------------------------+---------------------------------------
Comment (by simonbun <[EMAIL PROTECTED]>):
Hold on, child <ul>'s were not nested correctly. This is better:
{{{
def unordered_list(value):
def _recurse_children(parent):
temp = ''
for child in parent:
if type(child) == ListType:
temp += '<ul>' + _recurse_children(child) + '</ul>'
else:
if temp != '':
temp += '</li>'
temp += '<li>' + child
return temp
return _recurse_children(value)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/3184#comment:>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---