pombreda / formalchemy

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

I suggest to extract PylonsTemplate class in "formalchemy/templates.py" to "formalchemy.ext.pastertemplate.py" #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
File "formalchemy/templates.py" contain two main things :

1. mako_template function :
  * used if you have Make Template
  * used in :
     - formalchemy/forms.py
     - formalchemy/tables.py
2. PylonsTemplate class used by paster_create_template

outcome :

* when forms or table are rendered with make template useless
PylonsTemplate class is loaded

I suggest to :

* extract PylonsTemplate class to formalchemy.ext.paster_template.py or
formalchemy.ext.pastertemplate.py

What are your comments ?

Regards,
Stephane

Original issue reported on code.google.com by klein.stephane on 15 Feb 2009 at 2:14

GoogleCodeExporter commented 9 years ago
Sorry, I've would like to say formalchemy.ext.pylons.pastertemplate.py

Original comment by klein.stephane on 15 Feb 2009 at 2:25

GoogleCodeExporter commented 9 years ago
This my patch.

Original comment by klein.stephane on 15 Feb 2009 at 2:33

Attachments:

GoogleCodeExporter commented 9 years ago
Fix mistakes :

1. mako_template function :
  * used if you have Mako Template         <= MakO
  * used in :
     - formalchemy/forms.py
     - formalchemy/tables.py
2. PylonsTemplate class used by paster_create_template

outcome :

* when forms or table are rendered with mako template useless
PylonsTemplate class is loaded     <= makO

Original comment by klein.stephane on 16 Feb 2009 at 9:57

GoogleCodeExporter commented 9 years ago
applied, thanks

Original comment by gael.pas...@gmail.com on 20 Feb 2009 at 12:16