Re: AJAX Widget Framework

2009-10-03 Thread Mathias Waack
Laszlo Nagy wrote: > I'm looking for an open source, AJAX based widget/windowing framework. > Here is what I need: > > - end user opens up a browser, points it to a URL, logs in > - on the server site, sits my application, creating a new session for > each user that is logged in > - on the server

Re: Compiling python extension on amd64 for 32 bit

2007-05-26 Thread Mathias Waack
Andrew MacIntyre wrote: > Mathias Waack wrote: >> After switching my development environment to 64 bit I've got a >> problem with a python extension for a 32 bit application. > > {...} > >> Ok, thats fine. So why is python complaining? Or even more >

Compiling python extension on amd64 for 32 bit

2007-05-25 Thread Mathias Waack
After switching my development environment to 64 bit I've got a problem with a python extension for a 32 bit application. Compiling the app under Linux results in the following error: g++ -m32 -Wall -g -O2 -I. -Idb -DPYTHON=25 -o mappy.o -c mappy.cpp In file included from /usr/include/python2.5/P

Re: optparse option prefix

2007-04-04 Thread Mathias Waack
Diez B. Roggisch wrote: >> (3) Create a filter module that reads sys.argv, replaces leading "+" >> signs with "-" signs, and then stuffs it back into sys.argv before >> optparse gets to see it. > > That's not even necessary, the optparser will work on a passed argument > list. No need to alter sys

optparse option prefix

2007-04-04 Thread Mathias Waack
We've integrated python into a legacy application. Everything works fine (of course because its python;). There's only one small problem: the application reads the commandline and consumes all arguments prefixed with a '-' sign. Thus its not possible to call a python module from the commandline wit

Re: How to get database metadata information (i.e. existing tables and columns in tables)

2006-08-22 Thread Mathias Waack
Chris Brat wrote: > Is it possible to retrieve details about the database, specifically a > list of the tables in the database; and then to retrieve the columns > and their types for the tables? Yes. > Is this dependant on the database? Yes. Real databases usually store meta-data (list of ta

Re: Illegal instruction or undefined symbol from import

2006-07-05 Thread Mathias Waack
Richard Brodie wrote: > "Mathias Waack" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> BTW, does anybody know why the c-lib offers both log and log1p? > > So you can get a sensible answer computing log(1 + 10 ^ -30). Ok, that make

Re: Illegal instruction or undefined symbol from import

2006-07-05 Thread Mathias Waack
Continuing my monologe;) Mathias Waack wrote: > I've embedded python into a legacy application. It works - most of the > time. In some special situations the app crashes executing the "import > random". There are two different situations: > > 1. the sources comp

Illegal instruction or undefined symbol from import

2006-07-04 Thread Mathias Waack
Hi, I've embedded python into a legacy application. It works - most of the time. In some special situations the app crashes executing the "import random". There are two different situations: 1. the sources compiled with gcc 4.1.2 crash with illegal instruction error: (running my application)

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Mathias Waack
[EMAIL PROTECTED] wrote: > I wrote a program that takes an XML file into memory using Minidom. I > found out that the XML document is 10gb. > > I clearly need SAX or something else? More memory;) Maybe you should have a look at pulldom, a combination of sax and dom: it reads your document in a s

SIGILL importing random

2006-05-19 Thread Mathias Waack
Hi all, I've embedded python into an older application and created some extensions to interact with the old data structures. Everythings works like a charm - beside a simple "import random". During import the whole process crashes with a SIGILL. I've found some older mails describing just the sam

Re: Web-Forms

2005-07-25 Thread Mathias Waack
Michele Simionato wrote: > Use twill:http://www.idyll.org/~t/www-tools/twill.html I'll do so. Twill is great, anyway thanks for all other responses too. Mathias -- http://mail.python.org/mailman/listinfo/python-list

Web-Forms

2005-07-21 Thread Mathias Waack
Hi, I need to access some information from a web site which are only accessible through a form. Thus for each bucket of data you have to fill out the form, submit it and wait for an answer. Very easy - if you don't have to check some hundred times. Of course this site requires cookies, it is not

Re: Connecting to Firebird database using Kinterbasdb+Python

2005-07-04 Thread Mathias Waack
Maurice LING wrote: > What I am trying to do is "port" a workable program from my own machine > (Mac OSX) to a larger machine (Linux). So, the DB and the program are > also on the same Linux machine. > > On the Linux machine, I cannot use localhost, so I set host parameter in > kinterbasdb.connec

Re: Connecting to Firebird database using Kinterbasdb+Python

2005-07-04 Thread Mathias Waack
Maurice LING wrote: > I've been using FB1.5 and access the database using Kinterbasdb + > Python. My connection is established using kinterbasdb.connect() method > and the parameters host, dns, database, user, password are all defaulted > to 'None'. > > On my own machine running Mac OSX 10.3, I c

Re: Start new process by function ?

2005-03-10 Thread Mathias Waack
George Sakkis wrote: > Is it possible to start a new process by specifying a function call > (in similar function to thread targets) instead of having to write > the function in a separate script and call it through os.system or > os.spawn* ? That is, something like > > def foo(): pass > os.spawn

Re: How to wrap a class's methods?

2005-02-17 Thread Mathias Waack
Grant Edwards wrote: > I want to subclass an IMAP connection so that most of the > methods raise an exception if the returned status isn't 'OK'. > This works, but there's got to be a way to do it that doesn't > involve so much duplication: > > class MyImap4_ssl(imaplib.IMAP4_SSL): > > def lo

Re: Multiple initialization methods?

2005-02-16 Thread Mathias Waack
alex wrote: > it is possible to define multiple initialization methods so that > the method is used that fits? > > I am thinking of something like this: > > def __init__(self, par1, par2): > self.init(par1, par2); > > def __init__(self, par1): > self.init(par1, None) > > def init

Re: StringIO objects sharing a buffer

2005-02-15 Thread Mathias Waack
Thomas Lotze wrote: > Is there a way for multiple StringIO objects to share a buffer of > data, or do I have to give up on subclassing StringIO for this > purpose? (An alternative would be a tokenizer class that has a > StringIO instead of being one and do the file pointer housekeeping > in there.

Re: 64 bit Python

2005-02-15 Thread Mathias Waack
Mike C. Fletcher wrote: > Mathias Waack wrote: > ... > >>My python script allocates a bunch of strings each of 1024 >>characters and writes it in a cStringIO. And it fails after writing >>512K of strings. Don't know how python restricts the heap size - >>but

Re: 64 bit Python

2005-02-14 Thread Mathias Waack
Ivan Voras wrote: > Mathias Waack wrote: >> amounts of data. I figured out that a 32 bit application on HP-UX >> cannot address more than 1 GB of memory. In fact (I think due to >> the overhead of memory management done by python) a python >> application cannot use muc

64 bit Python

2005-02-14 Thread Mathias Waack
Hi, one of my colleagues got some trouble with a program handling large amounts of data. I figured out that a 32 bit application on HP-UX cannot address more than 1 GB of memory. In fact (I think due to the overhead of memory management done by python) a python application cannot use much more th