Macro Form Overwiew
The Form macro displays forms based on database records. The records can be edited or deleted. New records can be inserted. The macro also supports sub forms, filters and table views. Currently connections to SQLite, ODBC, MySQL and Oracle DB connections are supported. Of course any database source accessible by ODBC is supported. Even connections to SQLite attachments are supported, please see for a live example at Recipes .
Please have a look at the original description.
Macro Form update
Now, with the updated version Form-0.12alpha0.py, the macro Form.py does now work in MoinMoin 1.9.7. The user TestTest was so friendly and fixed the bugs, caused by an internal change of the API in MoinMoin.
In order to help to adopt other Macros to the new API, I made a diff from old to new version:
50c51 < self.post_args = request.form --- > self.post_args = request.values 254c255 < value = self.post_args.get(field_key, [None]) --- > value = self.post_args.get(field_key, None) 257,258c258,259 < index = form['index'] < records = form['records'] --- > index = form.get('index', 0) > records = form.get('records', ) 268c269 < value = self.post_args.get(field_key, [u''])[index] --- > value = self.post_args.getlist(field_key)[index]
List of pages in this category:
-- RudolfReuter 2014-06-12 10:30:04