On May 3, 2010, at 12:09 PM, Thadeus Burgess wrote:
> I would like to add
>
> [9] NODB support for the DAL (ie: mongo, couch)
+1
> [10] A new form system, (this includes widgets, validators,
> converters)
This should be an add-on, not a replacement. I do not think there
should be a single form system. It may become a replacement over time.
> [11] Comments in gluon core.
+1 but help me write them. Jonathan has been great at this.
> [12] PEP-8 Gluon
Once in a while we tried. Full compliance is impossible but I will
always take patches in this direction.
> [13] DAL signal/slot (I have worked some with this, but not quite
> happy with it atm)
This has come up. why should the signal slot be restricted to DAL?
Let's discuss it more before you implement it.
> [14] New DAL.
+1
> [16] Routes converters, ie: often times args(0) is the id for a
> record, it would be nice to specify this in the URL and have it
> auto-convert to my type instead of having to go ``try:
> int(request.args(0)) except: raise(404)``
I usually just define a function get(table,x=0) which gets
table[request.args(x)] in a try except and redirects to 'error' on
failure.
> [15] Named blocks, and filters into template system.
> Uliweb has already a patched version of web2py templates.py that
> support named blocks. This might be something to look into integrating
> ? Massimo, could you please explain the inconsistencies you have
> experienced with blocks ?
Tell me more about filters. I really cannot stand Django's filters
they are non-pythonic.
I do not have a strong objection into incorporating blocks. They do
present logical inconsistencies.
Parent {{block a}}xxx{{end block}}yyy{{block b}}zzz{{end block}}
Child extends parent {{block a}}rrr{{end block}}sss{{block b}}ttt{{end
block}}
I expect the output to be rrryyyzzz. Where did sss go?
I think the current {{def blockname():}}...{{return}} is more
pythonic. The issue is in the order of execution.