hust-marx / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

Remove Cheetah dependency #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Brief Description:
It would be nice to remove the dependency on Cheetah for generation of the 
initial projects from fbgen. There have been numerous errors encountered by 
individuals either with installation of Cheetah or with newer (2.7) versions of 
Python and Cheetah not working together correctly. Rather than be dependent on 
yet another toolset we should, if possible, remove any such dependency all 
together.

Use case:
Reduce possible errors when a user executes fbgen.py

Original issue reported on code.google.com by jarom.lo...@gmail.com on 17 Sep 2010 at 1:19

GoogleCodeExporter commented 9 years ago
While you are doing this, keep your mind open the idea that we could be running 
this from the web; I would still really like to find a way to provide a web 
page where the user can enter the parameters, click a button, and then download 
an archive with the generated plugin in it.

However, that doesn't have to be priority; it would just be really cool. =]

Original comment by taxilian on 17 Sep 2010 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by taxilian on 17 Sep 2010 at 1:57

GoogleCodeExporter commented 9 years ago
The attached patch uses python's built-in string.Template rather than Cheetah.

Note that fbgen.py became a bit more involved, because methods which were once 
called directly by Cheetah (ie, "GUID.generate(...)" and "time.strftime(...)") 
are now pre-computed values before parsing the template files. This is 
something to be aware of if new GUID fields are added in the future, etc.

Original comment by bloveri...@gmail.com on 17 Sep 2010 at 2:28

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by taxilian on 19 Sep 2010 at 1:37