[ckan-dev] Forms refactor status.
David Raznick
kindly at gmail.com
Thu May 19 18:02:03 UTC 2011
Hello
I will have just merged into default the work I have been doing on the forms
refactor.
Plugins that make their own formalchemy forms for packages/groups will *No*
longer work automatically. It is encouraged to convert these forms to use
templates. Look in docs/forms.rst for a bit more guidance in how todo this.
The form in ckanext-dgu is also a very complicated case that would be useful
to look at.
However, for the time being, there will be a way to keep using the
formalchemy forms. To do this the extensions will have to add this as part
of their IRoutes plugin.
def before_map(self, map):
map.connect('/package/new', controller='package_formalchemy',
action='new')
map.connect('/package/edit/{id}', controller='package_formalchemy',
action='edit')
return map
The authzs forms also need to be refacored to not use formalchemy as some
point soon and then we will be rid of it entirely.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20110519/6c592bc9/attachment.html>
More information about the ckan-dev
mailing list