pombreda / formalchemy

Automatically exported from code.google.com/p/formalchemy
MIT License
0 stars 0 forks source link

restfieldset.mako ttemplate is harcoded in _RESTControler #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Actualy in ext.pylons.contoler.py

restfieldset.mako template is hardcoded in the _RESTControler

so, if someone change his template place in myproject/forms/__init__.py
TemplateEngine Class, the change is ignored and the admin controler is
still looking for this restfieldset template in the default place
/template/forms directory

Is possible to workaround this be redefinig the template place in the admin
controler like this :

class DbadminController(BaseController):
    """ Generate a CRUD admin interface with FormAlchemy."""
    template = '/dbadmin/restfieldset.mako'
    model = model # SQLAlchemy mappers
    forms = forms # module containing FormAlchemy fieldsets definitions

But in this case i would have prefer to directly define all the admin
templates in only one place.

Original issue reported on code.google.com by miniw...@gmail.com on 1 Apr 2010 at 2:06

GoogleCodeExporter commented 9 years ago
Finaly i prefer like is it now as i only use formalchemy for the admin 
interface but
at list it may be usefull to document this. 

Original comment by miniw...@gmail.com on 1 Apr 2010 at 2:14

GoogleCodeExporter commented 9 years ago

Original comment by gael.pas...@gmail.com on 2 Apr 2010 at 10:19