python sqlite THREADSAFE?

2007-09-08 Thread EuGeNe Van den Bulke
Hi, Is the sqlite distributed with Python 2.5 compiled with the -DTHREADSAFE=1 flag? My gutt feeling is Windows (yes) MacOS/Linux (no) but ... If it is not on MacOS/Linux, how do I go about replacing the sqlite so file with a threadsafe sqlite? Thanks, EuGeNe -- http://www.3kwa.com -- http:

Re: ActiveRecord for Python/MySQL

2007-08-26 Thread EuGeNe Van den Bulke
Devraj wrote: > My application uses MySQL as a backend and am using the MySQL/Python > bindings. Are there any libraries that provide a database abstraction > layer like Activerecords for Python?' SQLObject SQLAclhemy DejaVu Storm Google for Python ORM you may find more! EuGeNe -- http://www.3kw

Re: ORM layer

2007-06-29 Thread EuGeNe Van den Bulke
David wrote: > I am looking for an ORM for Python that fulfills a few simple needs. * SQLObject * SQLAlchemy (+Elixir) * DejaVu There are probably others but these are the most commonly used AFAIK. EuGeNe -- http://www.3kwa.com -- http://mail.python.org/mailman/listinfo/python-list

Re: poplib.retr doens't flag message as read

2007-06-20 Thread EuGeNe Van den Bulke
Gabriel Genellina wrote: > The POP protocol has no concept of "read" or "unread" messages; the LIST > command simply shows all existing messages. My mistake, I guess I was confused by the documentation retr( which) Retrieve whole message number which, and set its seen flag. Result is in form (

poplib.retr doens't flag message as read

2007-06-19 Thread EuGeNe Van den Bulke
Hi there, I am trying to use the poplib library to get emails using the retr method. The small program bellow works but the message aren't flagged as read which puzzles me. I believe the pop server is qmail 1.0.6 / vpopmail 5.2.1 and I am running the following script on Windows using Pyhton 2.

Re: file / module / package - import problem

2007-05-31 Thread EuGeNe Van den Bulke
aspineux wrote: > import os.path > > file=open(os.path.join(os.path.dirname(__file__), 'hauteur.yaml')) Thanks that worked ;) -- http://mail.python.org/mailman/listinfo/python-list

file / module / package - import problem

2007-05-30 Thread EuGeNe Van den Bulke
Hi there, I have a "problem" which could be a bad design on my behalf but I am not sure so ... I have a package WMI which contains a module hauteur.py which, when imported, load data from a file located in WMI/data/. In hauteur.py I call open('data/hauteur.yaml'). test.py WMI/ hauteur.py

Re: preferred windows text editor?

2007-05-09 Thread EuGeNe Van den Bulke
T. Crane wrote: > Right now I'm using Notepad++. What are other people using? > > trevis > > VIM here as well ... here we go again :P EuGeNe -- http://www.3kwa.com -- http://mail.python.org/mailman/listinfo/python-list

Re: base64 and unicode

2007-05-04 Thread EuGeNe Van den Bulke
Duncan Booth wrote: > However, the decoded text looks as though it is utf16 encoded so it should be > written as binary. i.e. > the output mode should be "wb". Thanks for the "wb" tip that works (see bellow). I guess it is experience based but how could you tell that it was utf16 encoded? > S

base64 and unicode

2007-05-04 Thread EuGeNe Van den Bulke
Hi, I am trying to convert the file hebrew.b64 attached into hebrew.lang (text file usable by Inline Search for localization purposes. >>> import base64 >>> base64.decode(file("hebrew.b64","r"),file("hebrew.lang","w")) It runs but the result is not corre

Re: EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
Michele Simionato wrote: > I don't see the problem. In my view EuroPython is the big event in > Europe. If you can > go to only one conference and you have the possibility to travel to > Vilnius, then go to EuroPython. > The national conferences are of interest primarily for people of that > nati

Re: EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
Alex Martelli wrote: > I like the kudos, thanks!, but I'm not quite sure what you're saying > about my travel plans... just to clarify, once again I'll have to miss > EuroPython _and_ PythonUK, two events I attended most assiduously when I > was living in Europe (but then, for two years running I'v

Re: EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
Fuzzyman wrote: > I assume you have the same problem with the Italian one? Not so much because the official language of Pycon Uno Italy is Italian so I don't feel too concerned (unfortunately my Italian is not quite good enough). > Seriously though, it is *great* to see the UK Python scene flou

Re: EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
Steve Holden wrote: > So by this reasoning there should have been no "Python UK" conference > for the last four years (in case you didn't know it ran as a track of > the C/C++ conference, but ths track has now broadened to include all > scripting languages). And what about the people who can't

EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
I do realize that the UK is not really part of Europe (no polemic :P) but I am nevertheless curious about the logic behind creating another major Python event in Europe. Wasn't EuroPython enough? Like many I am sure, I probably won't be able to attend both (and I really enjoyed the Geneva exper

Re: Access to file dropped on .exe/.app icon

2007-04-22 Thread EuGeNe Van den Bulke
Martin wrote: > If i create an app using py2exe/py2app is there then a way on windows/ > mac to get access to a file dragged and dropped on to the .exe/.app > icon? > > Martin > I did something like that for a small program I wrote to learn more about Python Programming on Windows ... check it