Hi Dave,
awesome work on your shortened Dojo integration. Definitely more
lightweight than my work :) Don't know why I never had the idea to use
the request for storing Dojo properties. Maybe just because the
middleware django.core.context_processors.request has to be added and
because i wanted to have a complete form abstraction that is usable
exactly as the normal django forms, so a django developer does not
have to learn a new logic. And in my case there are several areas
where it is not possible to pass the request to the form.
Also I never cared about extra (non-valid) attributes in the HTML,
because I knew that someone will either write a validation for that or
the "data"-attributes will be used in the future, which happened in
Dojo trunk lately:
http://bugs.dojotoolkit.org/changeset/22697.
Dojango would need some love to use those new attributes.
By having a short look onto your code I've recognized that an
integration wouldn't be easy, but I would love to have a programmatic
instantiation within dojango. There is already the DojoCollector that
just cares about the dojo.require calls atm, but also could be
faciliated to save form field attributes and to generate the dynamic
js code for instantiation. Would be great, if you would like to work
on that?
Regards, Tobias