Re: String Template

2013-12-28 Thread Cristiano Araujo
On Friday, December 27, 2013 9:55:00 AM UTC-3, Giuseppe Tripoli wrote: > Hello > > > > I'm rewriting a program previously written in C #, and trying to keep the > same configuration file, I have a problem with untapped strings. > > > > The previous configuration files provide an input templa

Re: String Template

2013-12-28 Thread Chris Angelico
On Sat, Dec 28, 2013 at 11:33 PM, Giuseppe Tripoli wrote: > Certainly the quickest and easiest method is to use the regex, but I did not > really intend to change the configuration file. Then all you need is a way to convert your config file string into a regex, which shouldn't be too difficult.

Re: String Template

2013-12-28 Thread Giuseppe Tripoli
The problem is that I have a huge amount of log apache, log Akami, log cotendo, log iis ... messily all together. And the program does is that, according to the file name, use the configuration file to read. Certainly the quickest and easiest method is to use the regex, but I did not really int

Re: String Template

2013-12-27 Thread Chris Angelico
On Fri, Dec 27, 2013 at 11:55 PM, wrote: > I'm rewriting a program previously written in C #, and trying to keep the > same configuration file, I have a problem with untapped strings. Not sure what you mean by "untapped" here? > Taking for example a classic line of apache log: > > 0.0.0.0 - [2

String Template

2013-12-27 Thread t . giuseppe
Hello I'm rewriting a program previously written in C #, and trying to keep the same configuration file, I have a problem with untapped strings. The previous configuration files provide an input template string of this type: This string is parsed and the values are replaced with the actual

Re: recommended general-purpose string template packages?

2006-08-16 Thread metaperl
vj wrote: > I use preppy from reportlab: > > http://www.reportlab.org/preppy.html wow. thanks for the link. I second you on pretty. It is ultra-simple and nothing but a gateway to python. also, reportlab makes a number of high-quality open source python wares. -- http://mail.python.org/mailman

Re: recommended general-purpose string template packages?

2006-08-15 Thread vj
I use preppy from reportlab: http://www.reportlab.org/preppy.html It's one file, is fast and can be easily embedded in any application. Vineet -- http://mail.python.org/mailman/listinfo/python-list

Re: recommended general-purpose string template packages?

2006-08-14 Thread Dan Sommers
On 13 Aug 2006 19:48:55 -0700, "John Machin" <[EMAIL PROTECTED]> wrote: > In general, I'm mainly interested in a template engine for dynamic web > pages but would like a general purpose one to avoid learning yet > another package for generating e-mail messages, form letters, source > code, whateve

Re: recommended general-purpose string template packages?

2006-08-14 Thread Yu-Xi Lim
Ravi Teja wrote: > Most Python templating engines are general purpose. Choice between them > however is sometimes a matter of preference, like editors. I settled > down on Cheetah for most part. I second Cheetah. It's suitable for most text templates. Many others are specific for XML or HTML docu

Re: recommended general-purpose string template packages?

2006-08-14 Thread metaperl
John Machin wrote: > Hi, > > In general, I'm mainly interested in a template engine for dynamic web > pages but would like a general purpose one to avoid learning yet > another package for generating e-mail messages, form letters, source > code, whatever. HTMLTemplate and texttemplate offer a som

Re: recommended general-purpose string template packages?

2006-08-13 Thread Ravi Teja
> In general, I'm mainly interested in a template engine for dynamic web > pages but would like a general purpose one to avoid learning yet > another package for generating e-mail messages, form letters, source > code, whatever. > > In particular, does anyone have much experience with the Python >

recommended general-purpose string template packages?

2006-08-13 Thread John Machin
Hi, In general, I'm mainly interested in a template engine for dynamic web pages but would like a general purpose one to avoid learning yet another package for generating e-mail messages, form letters, source code, whatever. In particular, does anyone have much experience with the Python interfac