> I want to define just once how to render any arbitrary lists of
> tickets into HTML, and then use that same operation in both places.
> 
> In TurboGears, I would build a custom widget, and then use that inside
> my template.  I suspect that the Django community has a similiar tool
> available, but I haven't found it yet.

If you want them merely for display purposes, it sounds like 
you're looking for "template tags"

http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-tags

If they're for input, then new-forms may be what you seek, as you 
can create a single form and then easily render it to a page.

http://www.djangoproject.com/documentation/newforms/#form-objects

You can even use a combo of the two if needed...reusable 
presentation objects via template tags and reusable input-forms 
via subclassing the new-forms "Form" object.

-tim





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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