> Could you make your code available? Perhaps file a ticket and upload a patch?
My implementation is called EasyForm, and you can get the whole source code from http://cvs.woodpecker.org.cn/svn/woodpecker/SharePlat/trunk the code is in apps/easyform/__init__.py the main code is: class EasyForm: def __init__(self, manipulator, form_template='', path='', data=None, errors=None, buttons=[], form_id=''): self.manipulator = manipulator self.type = type self.path = path self.buttons = buttons self.form_template = form_template self.form_id = form_id if not self.form_template: self.form_template = 'easyform/simple_form.html' self.set_data(data, errors) def __str__(self): form = forms.FormWrapper(self.manipulator, self.data, self.errors) form.buttons = self.buttons form.path = self.path form.enctype = self.enctype() form.form_id = self.form_id t = loader.get_template(self.form_template) c = { 'form': form, } return t.render(Context(c)) [snip] you can see that in __str__ I'll get a form_template, and use it to render the html code. So user can change the template, and make his own html code, and don't need to change the source code at all, just change the template code is enough. -- I like python! UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---