I do'nt consider to be a MVC good pattern rendering form html inside
newforms class.

I think a better proach while rendering html forms is to use a
template file

A proff of concept:

class BaseForm(StrAndUnicode):
  .......
  def __unicode__(self):
     t = get_template('default_form.html')
     nodelist = t.nodelist

     return nodelist.render(self)

This way  _html_output, as_table, as_ul, as_div functions will be no
more necessary.
Beside that it's separate code from presentation :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to