Re: weird problem with os.chmod

2005-11-12 Thread Mardy
ever, when I do this, instead of the rw-- permissions 0600 is the octal representation of 384. "man chmod" should help you. Just use perm = int(string, 8) instead of perm = int(string) when converting to int the string you read from the file. -- Saluti, Mardy http://inte

Advice on distutils and distribution policies

2005-11-21 Thread Mardy
m from inside python? If, on the other hand, this layout is OK for site-packages, how do I instruct distutils to put the .html and .css files under the eligante/web directory? Sorry for the long post, and thanks in advance for any help or suggestion. -- Saluti, Mardy http://interlingua.alte

Re: Advice on distutils and distribution policies

2005-11-21 Thread Mardy
om the command line when invoking the setup script). I guess this involves subclassing some Distutils class, does anyone have a starter for this? Thanks again for your help, Alberto -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list

Re: the name of a module in which an instance is created?

2005-11-21 Thread Mardy
help", "copyright", "credits" or "license" for more information. >>> import test >>> a = test.myclass() >>> a.name 'test' This works, as we define "name" to be a class attribute. Is this useful to you? -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list

Getting standard config directory

2005-11-22 Thread Mardy
etup.py is root, I suppose it's doing a global installation). But I don't know how this will work in Windows. Is there some way to obtain the standard path for config files (maybe from inside distutils)? -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.

Help me to catch this exception :-)

2005-11-23 Thread Mardy
ng in the caller? -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me to catch this exception :-)

2005-11-24 Thread Mardy
d add an empty except clause which prints the exception: except: cgitb.handler() There's still something not working perfectly, but I think this is close to the solution. -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list

Distutils postinstall script: useless?

2005-11-30 Thread Mardy
as started. -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Distutils postinstall script: useless?

2005-11-30 Thread Mardy
Le die Wed, 30 Nov 2005 15:46:43 +, Mardy ha scribite: > the bdist_wininst command of distutils allows me to specify a script to > be executed at the end of the installation. That's great, but how can I > know the installation path from inside the script? Answering to myse

Need help on designing a project

2005-12-01 Thread Mardy
some existing framework? which one?). What I care most, is the ease of installation and use of my program (and portability). That's why I'm not contented with apache. -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list

Re: CGI module does not parse data

2005-12-02 Thread Mardy
f the CGI. Did you try connecting to the webserver by telnet? -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list

Re: CGI and long running job

2005-12-03 Thread Mardy
webserver via telnet? Do you get any output? you could try to call sys.stdout.flush() in the CGI, but I never had the need to do that. Maybe it's just a browser's problem? -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help on designing a project

2005-12-04 Thread Mardy
as of great help! Thanks! -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list

Re: CGI module does not parse data

2005-12-04 Thread Mardy
id, you have tu use "form['test'].value", because "print form['test']" will make pythoun output something like this: and your browser won't show it, mistaking it as an HTML tag. -- Saluti, Mardy http://interlingua.altervista.org -- http://mail.python.org/mailman/listinfo/python-list