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
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
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
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
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.
ng in the caller?
--
Saluti,
Mardy
http://interlingua.altervista.org
--
http://mail.python.org/mailman/listinfo/python-list
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
as started.
--
Saluti,
Mardy
http://interlingua.altervista.org
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
as of great help! Thanks!
--
Saluti,
Mardy
http://interlingua.altervista.org
--
http://mail.python.org/mailman/listinfo/python-list
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
14 matches
Mail list logo