Make alternative like NAnt, rake, ... written in python?

2006-10-26 Thread Achim Domma
Hi, I'm looking for a tool to automate build tasks like copying files, zipping them up, change config files NAnt works fine, because it's quite easy to extend in C#, but it would even easier to write tasks in Python. SCons is the only Python tool of this kind which I know. But SCons is m

400 Bad Request calling urllib2.urlopen()

2007-09-03 Thread Achim Domma
Hi, I have an url which redirects the client to another url. If I paste the url into a browser, it works fine. If I open it via urllib2.urlopen() I get the following error: Traceback (most recent call last): File "...\crawlRawDocuments.py", line 16, in body = urlopen(url).read() File "C:

Python GUI + OpenGL

2007-03-02 Thread Achim Domma
Hi, I'm developing a GUI app in Python/C++ to visualize numerical results. Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there are no windows binaries for Python 2.5 for quite some time now. I need a OpenGL context without restrictions and some settings dialogs. Is wx + PyOpe

SimpleXMLRPCServer and Threading

2007-03-28 Thread Achim Domma
Hi, is SimpleXMLRPCServer multithreaded or how does it handle multiple clients? I want to implement a simple server which will be queried by multiple processes for work to be done. The server will simply hold a queue with files to process. The clients will ask for the next file. Do I have to s

Overloading assignment operator

2007-01-23 Thread Achim Domma
Hi, I want to use Python to script some formulas in my application. The user should be able to write something like A = B * C where A,B,C are instances of some wrapper classes. Overloading * is no problem but I cannot overload the assignment of A. I understand that this is due to the nature o

Re: Overloading assignment operator

2007-01-23 Thread Achim Domma
Paul McGuire wrote: > Simple option: how do you feel about using '<<=' instead of '=' (by > defining __ilshift__)? This gives you: > > A <<= B * C > > (looks sort of like "injecting" the result of B times C into A) Thanks! That is exactly the kind of solution I was looking for! :-) Achim --

GUI development with 3D view

2007-12-10 Thread Achim Domma
Hi, I'm looking for quite some time now for a gui library for python, which allows me to display 3D graphics. Main OS is windows, Mac OS X and Linux would be nice to have. I want to use python 2.5. My first try was wx + pyOpenGL but there are no working binaries for python 2.5. I simply have to di

Re: GUI development with 3D view

2007-12-10 Thread Achim Domma
On 10 Dez., 15:24, "Méta-MCI \(MVP\)" <[EMAIL PROTECTED]> wrote: > Hi! > > > no idea how it works with windows. > > On XP: fine. > On Vista: very difficult... > > @+ > > MCI Also with Python 2.5? If PyOpenGL would work with Python 2.5, I could use wx too. But I could not get it to work with 2.5 o

ctypes based bindings for ImageMagick

2007-12-25 Thread Achim Domma
I have uploaded a very early alpha version of python bindings for ImageMagick to our blog. ImageMagick is a library to do all kind of image processing. MagickWand is a reduced API to common manipulation tasks like resizing and composing of images. My bindings are a ctypes based wrapper around this

Details about pythons set implementation

2008-01-04 Thread Achim Domma
Hi, I'm interested in details about how sets are implemented in python. They seem to be quite fast and I found some remarks who state, that the implementation is highly optimized. I need to implemented sets in C/C++ and need a starting point on how to do it right. Could somebody give me a starting

PythonMagick Update

2005-01-16 Thread Achim Domma (Procoders)
Hi, I'm working on a new version of PythonMagick, a wrapper for GraphicsMagick. A first version is available at: http://public.procoders.net/cgi-bin/trac.cgi/wiki/PythonMagick Any feedback is very appreciated. regards, Achim -- http://mail.python.org/mailman/listinfo/python-list

access problem with DCOM server written in python

2005-02-05 Thread Achim Domma (Procoders)
Hi, I have a problem with a DCOM server written in python. Here is my minimal test object: class TestObject: _reg_clsid_ = "{ECDBB3BC-F0BF-4eef-87C0-D179A928DAB5}" _reg_progid_ = "DComTest.Object" _reg_desc_ = "DComTest.Object" _public_methods_ = ['testit'] def __init__(self):

Testing web applications

2005-02-11 Thread Achim Domma (Procoders)
Hi, I'm looking for frameworks to make testing web applications - i.e. parsing and filling out forms - easier. I found Puffin, which looks good but not very usable in the current state. I know that I once read about other nice frameworks, but could not find one via google. Any hints? regards, A

Re: Testing web applications

2005-02-11 Thread Achim Domma (Procoders)
news.sydney.pipenetworks.com wrote: I've used Jython and a java package called httpunit to great effect. It even supports javascript on your pages. Thanks, that is the option I'm currentyl testing. Works great so far! regards, Achim -- http://mail.python.org/mailman/listinfo/python-list

Re: Socket Error

2005-04-14 Thread Achim Domma (Procoders)
[EMAIL PROTECTED] wrote: NameError: name 'socket' is not defined You forgot to import the socket module: import socket regards, Achim -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com and ADO

2005-05-11 Thread Achim Domma (Procoders)
Chris Curvey wrote: > result = conn.execute("select * from foo") > > while not result.EOF: > doSomething() > result.MoveNext() > > 'tuple' object has no attribute EOF The recordset you are looking for is a element of the tuple. Out of my head I would say it's element 1, so you have to

MySQLdb and Unicode

2005-05-20 Thread Achim Domma (Procoders)
Hi, I try to write unicode strings to a MySQL database via MySQLdb. According to the documentation I should pass 'utf-8' as keyword parameter to the connect method. But then I get the following error: Traceback (most recent call last): File "C:\develop\SyynX\unicode_test.py", line 7, in ?

read input for cmd.Cmd from file

2005-06-03 Thread Achim Domma (Procoders)
Hi, I'm writing a simple shell using cmd.Cmd. It would be very usefull if I could read the commands as batchjob from a file. I've tried the following: class MyShell(cmd.Cmd): def __init__(self,stdin): cmd.Cmd.__init__(self,stdin=stdin) ... ... if __name__=='__main__'

calling .Net Webservice using SOAPpy

2005-09-14 Thread Achim Domma (SyynX Solutions GmbH)
Hi, I'm using SOAPpy to call a .Net Webservice. Using WSDL.Proxy(service_url) works fine but has to get the WSDL each time from the server. If I try SOAPpy.SOAPProxy(service_url) the call fails with low level SOAP errors. Was somebody able to call a .Net service without using WSDL.Proxy and

Re: testing a website from python

2005-09-21 Thread Achim Domma (SyynX Solutions GmbH)
Benji York wrote: > If there is any interest I'll try to package up a stand-alone version in > the next few days. I think that would be a very usefull tool. Currently I'm using httpunit with Jython but a python only tool would be much nicer. regards, Achim -- http://mail.python.org/mailman/li