Re: Managing database tables through web-forms (automatically)

2006-09-02 Thread Antal Rutz
Sybren Stuvel wrote: > Check out Django, it has a great database API and on the fly > auto-generated admin. Just gone over the tutorial, really amazing, exactly what I need. Big thanks for the hint! -- --arutz -- http://mail.python.org/mailman/listinfo/python-list

Django website

2006-09-01 Thread Antal Rutz
hi, is there something wrong with django's website (djangoproject.com) or I have problems? It looks ugly, the css files can't be found, I even cannot download the source from there. Do you know anything about them? Any mirror I can get the tarball from? Thanks -- --arutz -- http://mail.pytho

Managing database tables through web-forms (automatically)

2006-08-30 Thread Antal Rutz
Hi, I want to manage database(sql) tables through the web: actions like insert/edit/list/delete. An application often needs just a database table to be easily managable through the web by the users. Now I realized that everytime I write a new app I need to rewrite the whole thing according to th

Collecting snmp data - threads, processes, twisted?

2006-02-02 Thread Antal Rutz
Hi all, I'd like to collect snmp data from varoius network devices parallel. First I tried with my own threadpool class then I gave a try to Christopher Arndt's threadpool.py (http://chrisarndt.de/en/software/python/threadpool.html). I got the same result: with one thread it finished about 2 min

Collecting snmp data - threads, processes, twisted?

2006-02-02 Thread Antal Rutz
Hi all, I'd like to collect snmp data from varoius network devices parallel. First I tried with my own threadpool class then I gave a try to Christopher Arndt's threadpool.py (http://chrisarndt.de/en/software/python/threadpool.html). I got the same result: with one thread it finished about 2 mi

Multithreaded class with queues

2005-07-22 Thread Antal Rutz
Hi! I wrote a little class to make multihreading easier. It's based on one of aahz's threading example scripts. What it does: It spawns up number of CollectorThreads and one ProcessThread. The CollectorThreads listen on one queue (inputqueue), read, process the data (with colfunc), put the result

Re: tail -f sys.stdin

2005-06-09 Thread Antal Rutz
OK, it was really a newbie thing: import sys while True: line = sys.stdin.readline() process(line) sorry. -- --arutz -- http://mail.python.org/mailman/listinfo/python-list

Re: tail -f sys.stdin

2005-06-09 Thread Antal Rutz
Maybe I've found a poorman's one: import sys while True: try: line = sys.stdin.readline() except: sys.stdin.seek(0) else: process(line) Antal Rutz wrote: > Hi! > > Maybe a very newbie question but: > I'd like to write a prog which

tail -f sys.stdin

2005-06-09 Thread Antal Rutz
Hi! Maybe a very newbie question but: I'd like to write a prog which reads one line at a time on its sys.stdin and immediately processes it. If there are'nt any new lines wait (block on input). I couldn't find a solution for it. Several methods that doesn't fit here: - reading the entire file-lik

Re: Threading questions

2005-05-30 Thread Antal Rutz
Magnus Lycka wrote: > Antal Rutz wrote: > >>Hi, All! >> >>I'm new to threading. I have some design questions: >>Task: I collect data and store them in an RDBMS (mysql or pgsql) >> >>The question is how to do that with threading? >>The data-

Threading questions

2005-05-28 Thread Antal Rutz
Hi, All! I'm new to threading. I have some design questions: Task: I collect data and store them in an RDBMS (mysql or pgsql) The question is how to do that with threading? The data-collecting piece of the code runs in a thread. 1. Open the db, and each thread writes the result immediately. (