Re: [Tutor] Making pretty web pages from python code examples?

2010-04-14 Thread Modulok
> : Basically, I'm trying to read python code examples from files on > : disk and generate pretty little web pages from them. > I think you may want sphinx [0] which is available in PyPI [1]. > > It understands reStrucTured text and adds a few Sphinx-specific > directives/features for pulling th

[Tutor] How to deploy and upgrade python and its apps

2010-04-14 Thread Dilip M
Hi All, I would like to understand how to deploy specific version of python and its modules and apps in consistent manner. Use case: 1- How to install specific version of python in my own path. (consider  NFS, /opt/sw/bin and /opt/sw/lib). This particular share is mounted on all dev machines. 2

[Tutor] How to deploy and upgrade python and its apps

2010-04-14 Thread Dilip M
Hi All, I would like to understand how to deploy specific version of python and its modules and apps in consistent manner. Use case: 1- How to install specific version of python in my own path. (consider NFS, /opt/sw/bin and /opt/sw/lib). This particular share is mounted on all dev machines.

Re: [Tutor] How to deploy and upgrade python and its apps

2010-04-14 Thread Bjorn Egil Ludvigsen
Hi Dilip, There is some good information about this in the book "Expert Python Programming" by Tarek Ziade, and maybe you could look into http://pypi.python.org/virtualenv, easy_install and zc.buildout. Regards, Bjorn On Wed, Apr 14, 2010 at 10:27 AM, Dilip M wrote: > Hi All, > > I would like

[Tutor] Problems with creating XML-documents

2010-04-14 Thread Karjer Jdfjdf
I'm having problems with creating XML-documents, because I don't seem to write it to a document correctly. I have to write the document from a loop:     doc.write('\n')         for instance in query:        if doc != None:     text = str('\n' + \    ' ' +  st

Re: [Tutor] Problems with creating XML-documents

2010-04-14 Thread bob gailer
On 4/14/2010 4:16 PM, Karjer Jdfjdf wrote: I'm having problems with creating XML-documents, because I don't seem to write it to a document correctly. I have to write the document from a loop: doc.write('\n') for instance in query: if doc != None: text = str

Re: [Tutor] Problems with creating XML-documents

2010-04-14 Thread Alan Gauld
"Karjer Jdfjdf" wrote I'm having problems with creating XML-documents, because I don't seem to write it to a document correctly. Is that because you don't understand XML or because the output is not what you expect? How is the data being generated? Are you parsing an existing XML source or

Re: [Tutor] Introduction to modelling with Python

2010-04-14 Thread Eike Welk
On Wednesday April 7 2010 11:38:07 AG wrote: > > Eike > > I just wanted to come back to you on the book recommendation you made > "Python scripting for computational science" - I tracked down a cheapish > copy of the 3rd edition from 2009 and flipping through it (it only > arrived yesterday), it

[Tutor] Re Problems with creating XML-documents

2010-04-14 Thread Karjer Jdfjdf
>> I'm having problems with creating XML-documents, >> because I don't seem to write it to a document correctly. >Is that because you don't understand XML or because the >output is not what you expect? How is the data being generated? >Are you parsing an existing XML source or creating the XML