﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	parents
639	WTForms form extension hooks	Christopher Allan Webber		"I wonder if it's possible to do something like this:

{{{
  class BlaBlaForm(pluginapi.HookForm):
    _hook_name = 'blabla'
    bla_bla = wtforms.BlaBlaField()
}}}

This would require some fancy metaclassing but if it worked, it should be able to allow to attach fields to the form either before or after like the following:

{{{
  pluginapi.add_form_field(
     wtforms.SomeFormField(),
     position=before)
}}}

Is this possible?  Not totally sure.  Would be great if it did. Would also involve evil metaclassing.  But what part of plugin systems don't involve a bit of evil ;)
"	enhancement	closed	major	0.4.0	programming	fixed	pluginapi		
