user login session for stand alone PyQt

2011-12-27 Thread Panupat Chongstitwattana
For my current project I'm making PyQt GUI to be used inside Maya. One of my requirement is that users need to first login with username and password. After authenticating the account, I'm not sure how I can store the session. I tried Cookie.Simplecookie but I guess it doesn't wok because the GUI

Re: newbie question about PYTHONPATH

2011-02-15 Thread Panupat Chongstitwattana
I think the command line should look something along this line export PYTHONPATH=$HOME/foo/prog/learning_python/: with a colon at the end. On Wed, Feb 16, 2011 at 12:49 AM, Tim Hanson wrote: > I am to the point in _Learning_Python_  where functions are introduced. > > I decided to experiment by

Adding Asian text error with IIS

2011-02-01 Thread Panupat Chongstitwattana
I created a very simple script, testing it out with web browser. # -*- coding: utf-8 -*- import sys sys.getdefaultencoding() f = '?' print "Content-Type: text/plain;charset=utf-8" print f The moment I have an Asian text in my file (without doing anything to it at all) I always get a 502 error -