Re: Python <=> Excel question

2005-09-30 Thread riplin
> Suppose abc.xls has sheets a, b, c.
> How can I find, in Python, the sheet names?
> Given a sheet name, how can I export the sheet as a csv file?

http://chicago.sourceforge.net/xlhtml/

This has options to output csv files, the list of sheets and many other
things.  Just execute this on the .xls file and read the files that it
produces.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Jargons of Info Tech industry

2005-10-09 Thread riplin
> My grandma doesn't put captions in her photo album,
> and she doesn't need captions on her photos in email.

She doesn't need captions in the album because she will explain the
pictures, at length, every single one of them, to anyone who comes
within grabbing distance.

> "Here's Johnny with the dog. Here is Johnny with the
> dog again. This one is Johnny on his own. Here is the
> dog. Oh look, it is Johnny with the dog again --  ...

If your photos are so banal then only people who would recognise the
people would care about them.

Captions are for people who won't recognise the subject of the photo.
When you send a photo of a house to Granma is she supposed to just
_know_ that it your new house, or the one across the road, or the one
that burnt down last week ?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Microsoft Hatred FAQ

2005-10-16 Thread riplin

John Bokma wrote:

> No: the historical fact is that MS whiped Netscape of the planet.

By giving IE away for free, by ripping off spyglass, by _paying_ OEMs
to not include Netscape. By bundling IE. By abusing standards. By
contracting with sites to include non-standard IE features to
deliberately break NS.

If an OEM was shipping Netscape on machines MS paid them $5 a copy not
to.

> That
> you come up with "They were afraid that everybody would be running NS
> Office online using Netscape" is just a guess.

No. Netscape had announced that they were working on building network
applications that just required a browser. XUL is the latest version of
this.

> MS just seems to ignore a certain development for some time, then state
> it's not significant, and next they are an important player. This is not
> limited to "MS missed the Internet, almost...". They don't miss
> anything, they just don't jump on every hype.

No. You are wrong again. In edition 1 of "The Way Ahead" there was _no_
mention of the Internet. MS did not notice it, and when they did they
attempted to replace it with MSN which did not link to the internet
initially. MSN was free with Win95, but most users ignored it and
downloaded Netscape.

> and next they are an important player

Once they notice that there is a revenue stream then they will buy in a
product, rebrand it MS and claim it is the best, and use their monopoly
leverage to drive the other players out of business so that they can
have all the revenue.

The only reason that Linux/OpenOffice/GIMP/Apachee/MySQL/.. have
survived this process is that MS haven't worked out how to kill them
off.  Natural selection at work. If MS kills off everything that it can
then what is left is what it can't.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: HTML generation vs PSP vs Templating Engines

2005-11-19 Thread riplin
> No templates, no python-like or special languages, only pure and simple 
> python.

> You can embedd python into html or, if it better suits your programming
> style, you can embed html into python. Why don't you give it a try?

I dislike embedding code or html in each other, apart from the
'impurity' of mixing code and user interface it makes them inseparable.

Using templates means that the code can work with different templates,
and this should be seamless, it also means that different code can be
used with the templates, for example if different languages are used.

The main advantage, for me, is that different outputs formats can be
created without changing the code. If the user wants a set of data in a
table then the html template is used, if they want a csv file of the
data, that is just a different template name.  A printed report: same
code just a different template name. XML, simple text, postscript,
EDIFACT file, all done with same code, different template. Just arrange
for the name of the template file to be a parameter on the URL and the
various outputs can be selected by the user.

I did, however, write my own templating module, they are quite easy to
do.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: HTML generation vs PSP vs Templating Engines

2005-11-20 Thread riplin
>> Using templates means that the code can work with different templates,
>> and this should be seamless, it also means that different code can be
>> used with the templates, for example if different languages are used.

> This seems to contradict your statement that you dislike 'embedding
> code or html in each other', since the scenarios you describe still
> involve embedding presentation logic in markup. (The only templating
> systems that *completely* separate logic from markup are the DOM-style
> ones.)

Perhaps that is why I implemented my own mechanisms for templating. My
templates contain no logic at all and can be used from my Python
programs, Cobol or C equally well.

Contrarywise, my Python programs choose at runtime the required
template (depending on configuration, user request or other) and then
the same program code will output HTML, XML, EDIFACT, CSV, printed
report or other dependant entirely on the content of the template file.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI in python

2006-03-29 Thread riplin
For quick, no learning curve, simple:

http://www.ferg.org/easygui/

-- 
http://mail.python.org/mailman/listinfo/python-list