AttributeError: 'module' object has no attribute 'setdefaulttimeout'

2005-03-31 Thread adrian
I get those errors when I run: /usr/local/bin/SquidClamAV_Redirector.py -c /etc/squid/SquidClamAV_Redirector.conf ## Traceback (most recent call last): File "/usr/local/bin/SquidClamAV_Redirector.py", line 573, in ? redirector = SquidClamAV_Redirector(config) File "/usr/lo

Command line and GUI tools : need a single threading solution

2005-01-10 Thread Adrian Casey
g it may be possible to modify the command line tools to use qt threads instead of native python threads. Is this the way to go? Are there other options? Adrian. -- http://mail.python.org/mailman/listinfo/python-list

Re: Command line and GUI tools : need a single threading solution

2005-01-11 Thread Adrian Casey
Diez B. Roggisch wrote: >> I'm thinking it may be possible to modify the command line tools to use >> qt >> threads instead of native python threads. Is this the way to go? Are >> there other options? > > Why don't you use python threads in qt - I do so and so far it didn't make > any troubles

Re: Command line and GUI tools : need a single threading solution

2005-01-11 Thread Adrian Casey
eue. I have a customEvent method in my application which grabs the data from the customEvent and processes it accrodingly (writing output to a QTable). The gui locks up after an arbitrary number of rows have been inserted in the QTable. It is not consistent. Sometimes it does not lock at all. I have a non-threaded set of the command line tools which run perfectly with the gui. Adrian. -- http://mail.python.org/mailman/listinfo/python-list

Re: Command line and GUI tools : need a single threading solution

2005-01-12 Thread Adrian Casey
Adrian Casey wrote: > Diez B. Roggisch wrote: > >>> I'm thinking it may be possible to modify the command line tools to use >>> qt >>> threads instead of native python threads. Is this the way to go? Are >>> there other options? >> >&

Re: short programming projects for kids

2005-01-24 Thread Adrian Casey
n anyway). After times tables, I plan to work on a simple number guessing game where the computer picks a random number between 1 and 100 and asks the user to take a guess. This will help demonstrate many basic programming concepts. Not sure how to introduce graphics though as so much is relatively abstract. Adrian. -- http://mail.python.org/mailman/listinfo/python-list

Re: Kill GIL

2005-02-15 Thread Adrian Casey
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Frans Englich <[EMAIL PROTECTED]> wrote: >> >>Personally I need a solution which touches this discussion. I need to run >>multiple processes, which I communicate with via stdin/out, >>simultaneously, and my plan was to do this with threads. Any favo

Python 2.4 & PostgreSQL 8 segfault

2005-03-03 Thread Adrian Immler
hello, i have compiled and installed postgres8 --with-prefix=/usr/local/postgres8 (& several other options) and have no other version of postgres on my system. python is compiled and make'd --with-prefix=/usr. i have added the libpath of postgres to /etc/ld.so.conf and a ldconfig -v also told me

ANN: Greasemonkey compiler

2005-04-26 Thread Adrian Holovaty
letitblog.com/code/python/greasemonkey.py.txt Web interface: http://www.letitblog.com/greasemonkey-compiler/ Feel free to e-mail comments, bug fixes, etc. Adrian Holovaty [EMAIL PROTECTED] http://www.holovaty.com/ -- http://mail.python.org/mailman/listinfo/python-list

pexpect: TIMEOUT exception never raised

2005-05-12 Thread Adrian Casey
e, the child.expect statement will hang forever. I thought about using signal.signal to set an alarm that fires a few seconds after timeout and explicitly closes the session. However, my application is multi-threaded (i.e. each thread respresents a connection to a remote host) and signals can not be u

ANN: Internationalization in Django

2005-11-06 Thread Adrian Holovaty
* pt-br (Brazilian) * ru (Russian) * sr (Serbian) * zh-cn (Simplified Chinese) * sk (Slovak) See the full documentation here: http://www.djangoproject.com/documentation/i18n/ Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org -- http://mail.python.o

ANN: Django 0.90

2005-11-16 Thread Adrian Holovaty
http://www.djangoproject.com/ http://www.djangoproject.com/download/ Enjoy! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org -- http://mail.python.org/mailman/listinfo/python-list

ANN: Django 0.90

2005-11-16 Thread Adrian Holovaty
http://www.djangoproject.com/ http://www.djangoproject.com/download/ Enjoy! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Ruby on Rails Job Site -- Is there a Python equivalent?

2005-12-01 Thread Adrian Holovaty
itely advertise this page more, as it's a bit hidden at the moment on the Django wiki. There are three Django jobs on that page now, and I know of at least two others. See http://www.djangoproject.com/weblog/2005/nov/27/weekinreview/ . Hope this helps! Adrian -- Adrian Holova

Re: RoR like (was : SPE 0.8.1.b Python IDE...)

2005-12-15 Thread Adrian Holovaty
can use Ajax with Django, just as you can use it with *any* Web framework. That's because Ajax is a browser-side technology (JavaScript), not a server-side technology (Python). Django is just as capable of producing JavaScript as it is of producing (X)HTML or whatever else. Hope that clears t

Re: RoR like (was : SPE 0.8.1.b Python IDE...)

2005-12-16 Thread Adrian Holovaty
bruno at modulix wrote: > Adrian, what you describe here is *exactly* what I call "no Ajax > support": you have to handle the whole thing manually, the framework > doesn't provide anything by itself. Would you say the CGI module offers > support for templating, data p

Re: python certification

2005-07-20 Thread Adrian Flanagan
[EMAIL PROTECTED] wrote: > i want to get a small certificate or diploma in python. I can recommend brainbench.com (http://www.brainbench.com, of course) for certifications that are both respected and reasonably priced. Only drawback: their Python certification is for version 1.5! They have got

ANN: Django 0.91 released

2006-01-11 Thread Adrian Holovaty
dmin interface -- for free. * Full internationalization (i18n) support. * A super-cool community! * An RSS/Atom-producing framework. * Tons of other niceties, such as generic views (which abstract common Web-development patterns), based on several years' worth of solving Real Problems in the Real Wo

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Adrian Holovaty
go 1.0. I would never use TurboGears or Ruby on Rails over Django for any performance-intensive Web app. In my opinion, both frameworks make some poor design decisions regarding the importance of performance. Adrian -- Adrian Holovaty holovaty.com | chicagocrime.org | djangoproject.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me in this please--is Python the answer?

2006-01-13 Thread Adrian Holovaty
eas TurboGears is a collection of unrelated parts glued together. For more on this topic, see here: http://www.oreillynet.com/pub/wlg/8986 Adrian -- http://mail.python.org/mailman/listinfo/python-list

Re: Being unjust

2006-01-18 Thread Adrian Holovaty
dd some WSGI code to the standard library -- for instance, code that runs a development server for a WSGI-compliant framework, etc. Perhaps wsgiref: http://svn.eby-sarna.com/wsgiref/ Just my two cents, Adrian -- Adrian Holovaty holovaty.com | chicagocrime.org | djangoproject.com -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-22 Thread Adrian Holovaty
be quite happy to set that up. Just let me know! Adrian -- Adrian Holovaty holovaty.com | chicagocrime.org | djangoproject.com -- http://mail.python.org/mailman/listinfo/python-list

ANN: Python interface to Microsoft Outlook Web Access

2006-02-10 Thread Adrian Holovaty
at yesterday's Chicago Python Users Group meeting and was surprised to see that, even in a group of only 30 people, 5 or 6 people used Outlook Web Access through their company. I hope somebody finds this useful. http://www.holovaty.com/code/weboutlook/ Please send comments and improvements

How to start a DTS Package on MS-SQL-Server?

2005-08-25 Thread Adrian Pettitt
I found this subject line in a post to this list on Jan 30, 2004.  Does anybody know if this is possible?   Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Islam, the Religion of Ease

2007-03-30 Thread adrian . villanustre
www.prophetmuhammed.orghttp://www.islamtoday.net/english/http://www.islamunveiled.orghttp://www.islamic-knowledge.com > > We willingly recive any inquries at the e-mail : > > [EMAIL PROTECTED] Respectofully: 1.- Use the right place for your propaganda. 2.- Stop with religions, and milit

python cgi problem with textarea

2007-04-21 Thread Adrian Smith
This may be more a cgi thing than a Python one, but I'm trying to get this page: http://adrian10.phpwebhosting.com/trial.html consisting basically of this: ...to print out the contents of the textarea with this cgi script: #!/usr/bin/python import cgi print "Content-type: text/html\n" form

Re: python cgi problem with textarea

2007-04-22 Thread Adrian Smith
On Apr 22, 11:40 pm, Jim <[EMAIL PROTECTED]> wrote: > On Apr 22, 2:08 am, Adrian Smith <[EMAIL PROTECTED]> wrote:> ...and I > > get an internal server error if I have any spaces in the textarea, > > And what error appears in the server error log? I've just asked

Re: python cgi problem with textarea

2007-04-22 Thread Adrian Smith
On Apr 22, 10:09 pm, placid <[EMAIL PROTECTED]> wrote: > i just tried it and its working. here it is > > http://yallara.cs.rmit.edu.au/~bevcimen/form.html > > maybe the internal server error is because mod_python isn't installed > assuming your using Apache as your web server Yeah, but it wouldn'

Re: python cgi problem with textarea

2007-04-24 Thread Adrian Smith
On Apr 24, 8:00 pm, placid <[EMAIL PROTECTED]> wrote: > oops...i did read the problem description, but i when i tried the code > it worked for me and when i put spaces into the TextArea it wasn't > reflected correctly back. So i thought this was the problem. > >

Using signal.alarm to terminate a thread

2006-11-13 Thread Adrian Casey
y .bashrc and loops forever? Just one thread locking up like this holds up all the others. Any ideas or suggestions on how to handle such situations in a multi-threaded way would be appreciated. Cheers. Adrian Casey. Alice Springs Linux User Goup. http://www.aslug.org.au -- http://mail.python.org/mailman/listinfo/python-list

Re: Using signal.alarm to terminate a thread

2006-11-14 Thread Adrian Casey
Nick Craig-Wood wrote: > Adrian Casey <[EMAIL PROTECTED]> wrote: >> I have a multi-threaded python application which uses pexpect to connect >> to >> multiple systems concurrently. Each thread within my application is a >> connection to a remote system. The

Re: Using signal.alarm to terminate a thread

2006-11-15 Thread Adrian Casey
Nick Craig-Wood wrote: > Adrian Casey <[EMAIL PROTECTED]> wrote: >> > Adrian Casey <[EMAIL PROTECTED]> wrote: >> > import os, pexpect, threading >> > >> > def runyes(): >> > print "Running yes command..." >> &g

How to measure memory footprint of Python objects?

2006-09-20 Thread Neagu, Adrian
mption. But, if that is too tricky, I would be happy to just get the maximum. Any suggestion welcome, Adrian. -- http://mail.python.org/mailman/listinfo/python-list

CGI python use "under a curse"

2007-05-06 Thread Adrian Smith
While waiting for my paid-for web-hosting company to get back to me about my difficulties running python scripts on their servers... http://groups.google.com/group/comp.lang.python/browse_frm/thread/39b52bcf0dffec4c/4ff805bf283acc15?lnk=gst&q=adrian+smith&rnum=1&hl=en#4ff805bf283acc

Re: CGI python use "under a curse"

2007-05-06 Thread Adrian Smith
On May 7, 2:30 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 06 May 2007 21:30:16 -0700, Adrian Smith wrote: > It is NOT the same error. There are NO syntax errors in the script, there > is a runtime error. The so-called administrator is wrong: you can't use &g

infinite loop

2005-09-06 Thread LOPEZ GARCIA DE LOMANA, ADRIAN
Hi all, I have a question with some code I'm writting: def main(): if option == 1: function_a() elif option == 2: function_b() else: raise 'option has to be either 1 or 2' if iteration == True: main() def function_a(): print 'hello