Philippe C. Martin wrote:
> I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have
> a title followed by lines of text that do not look too ugly. If possible I
> would like to use an existing module.
How to do this really depends on what your data looks like, and how you
get
"Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi,
>
> I wish to use an easy way to generate reports from wxPython and feel
> wxHtmlEasyPrinting could be a good solution.
>
> I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have
> a title
PS: Just wanted to add that HTMLGen works very well and outputs html that
wxHtmlEasyPrinting and my email client have not problem reading (I output
student grades, missing assignments, ... in tables).
The one gitch is they do not have any installation program (that I've seen)
for windows.
Regards
Thanks
Walter Dörwald wrote:
> Cappy2112 wrote:
>> I looked at HTMLGen a while ago- I didn't see what the advantage was.
>> I wrote soem code similar to the example above, to generate a page..
>> It worked out fine.
>>
>> However, I want to add HTML ouput to many of my other python programs,
>>
Cappy2112 wrote:
> I looked at HTMLGen a while ago- I didn't see what the advantage was.
> I wrote soem code similar to the example above, to generate a page..
> It worked out fine.
>
> However, I want to add HTML ouput to many of my other python programs,
> and I don't want to re-write this for e
Thanks
Kent Johnson wrote:
> Philippe C. Martin wrote:
>> Hi,
>>
>> I wish to use an easy way to generate reports from wxPython and feel
>> wxHtmlEasyPrinting could be a good solution.
>>
>> I now need to generate the HTML wxHtmlEasyPrinting can print: I need to
>> have a title followed by line
Philippe C. Martin wrote:
> Hi,
>
> I wish to use an easy way to generate reports from wxPython and feel
> wxHtmlEasyPrinting could be a good solution.
>
> I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have
> a title followed by lines of text that do not look too ugly. I
I looked at HTMLGen a while ago- I didn't see what the advantage was.
I wrote soem code similar to the example above, to generate a page..
It worked out fine.
However, I want to add HTML ouput to many of my other python programs,
and I don't want to re-write this for each program. So some higher
Thanks a bunch,
I'm currently playing with HTMLGen (great but not in Python distrib ...) and
it look very good - Yet your code example looks simple enough for me to
look at that alternative.
Thomas Guettler wrote:
> Am Thu, 09 Jun 2005 12:43:19 + schrieb Philippe C. Martin:
>
>> Hi,
>>
I'll take a pick thanks - I like the fact it's buit-in (no extra
installation)
Michele Simionato wrote:
> You could generate your report in reStructuredText
> format (Google is your friend) and then convert
> them in HTML, PS, PDF, etc.
>
> Michele Simionato
--
http://mail.python.o
Am Thu, 09 Jun 2005 12:43:19 + schrieb Philippe C. Martin:
> Hi,
>
> I wish to use an easy way to generate reports from wxPython and feel
> wxHtmlEasyPrinting could be a good solution.
>
> I now need to generate the HTML wxHtmlEasyPrinting can print
I don't know wxPython, but generating HTM
You could generate your report in reStructuredText
format (Google is your friend) and then convert
them in HTML, PS, PDF, etc.
Michele Simionato
--
http://mail.python.org/mailman/listinfo/python-list
PS: I am looking at the formatter module which seems to be related to HTML
somehow, but without any code sample I'm a bit lost
Philippe C. Martin wrote:
> Hi,
>
> I wish to use an easy way to generate reports from wxPython and feel
> wxHtmlEasyPrinting could be a good solution.
>
> I now need
Hi,
I wish to use an easy way to generate reports from wxPython and feel
wxHtmlEasyPrinting could be a good solution.
I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have
a title followed by lines of text that do not look too ugly. If possible I
would like to use an existi
Michele Simionato wrote:
Also, one could argue that the designer should
not get in touch with the HTML, but just play with the CSS.
Finally, you can achieve separation between logic and presentation just
putting the routines generating the HTML pages in a separate module, no need to
use
a differe
Matt Goodall <[EMAIL PROTECTED]> writes:
[...]
> Agreed. Although I would go further and say that it's important to
> choose a templating system that allows the Python developer to annotate
> XHTML templates using **valid XML**, i.e. no "for x in y" loops, no "if
> foo" conditionals, no "i = 0" var
Kent Johnson wrote:
> Michele Simionato wrote:
> > The problem is a problem of standardization, indeed. There plenty
of
> > recipes to
> > do the same job, I just would like to use a blessed one (I am
teaching
> > a Python
> > course and I do not know what to recommend to my students).
>
> Why not
Michele Simionato wrote:
> The problem is a problem of standardization, indeed.
> There are plenty of recipes to do the same job, I just
> would like to use a blessed one (I am teaching a Python
> course and I do not know what to recommend to my students).
Wouldn't we *all* like all of our problem
Kent Johnson:
>I've written web pages this way (using a pretty nice Java HTML
generation package) >and I don't
>recommend it. In my experience, this approach has several drawbacks:
>- as soon as the web page gets at all complex, the conceptual shift
from HTML to >code and back is
>difficult.
>- It
On Mon, 2005-02-21 at 07:36 -0500, Kent Johnson wrote:
> Michele Simionato wrote:
> > The problem is a problem of standardization, indeed. There plenty of
> > recipes to
> > do the same job, I just would like to use a blessed one (I am teaching
> > a Python
> > course and I do not know what to reco
Michele Simionato wrote:
The problem is a problem of standardization, indeed. There plenty of
recipes to
do the same job, I just would like to use a blessed one (I am teaching
a Python
course and I do not know what to recommend to my students).
Why not teach your students to use a template system?
The problem is a problem of standardization, indeed. There plenty of
recipes to
do the same job, I just would like to use a blessed one (I am teaching
a Python
course and I do not know what to recommend to my students).
FWIW, here is a my version of the recipe (stripped down to the bare
essentials
xtian wrote:
> Stan (part of nevow, which is part of twisted) is a nice python
syntax
> for building HTML
[...]
> I don't know how detachable it is from the rest of nevow. I'd assume
it
> wouldn't be too difficult to implement in a standalone fashion.
FWIW I whipped up a simple self-contained Stan
Stan (part of nevow, which is part of twisted) is a nice python syntax
for building HTML - I like the use of () and [] to separate attributes
from sub-elements.
For example:
class Greeter(rend.Page):
def greet(self, context, data):
return random.choice(["Hello", "Greetings", "Hi"]), "
Here are a couple of pointers. I agree with Michele that it would be
nice to have some kind of standardization. Maybe this would be worth a
post to the Web-SIG ?
- I posted a 70-line recipe on the Python Cookbook, a sort of poor man's
HTMLGen called HTMLTags
http://aspn.activestate.com/ASPN/Coo
Michele Simionato wrote:
> What is the recommended way of generating HTML from Python? I know of
> HTMLGen and of
> few recipes in the Cookbook, but is there something which is more or
> less standard?
I'm also an htmlgen user, but it's getting a bit long in the tooth, a
Just to clarify, before people start pointing out their preferred
templating language: I am NOT asking for
a template system. I am asking for something on the
lines of HTMLGen, where you just use pure Python.
--
http://mail.python.org/mailman/listinfo/python-list
Michele Simionato napisał(a):
What is the recommended way of generating HTML from Python? I know of
HTMLGen and of
few recipes in the Cookbook, but is there something which is more or
less standard?
Also, are there plans to include a module for HTML generation in the
standard library?
I really
What is the recommended way of generating HTML from Python? I know of
HTMLGen and of
few recipes in the Cookbook, but is there something which is more or
less standard?
Also, are there plans to include a module for HTML generation in the
standard library?
I really would like to see some
29 matches
Mail list logo