[sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-05 Thread seth
Hi Mike, Thanks for your email. You are right. And actually, I read that article two months ago and keeps coming back to me like haunting. Does not matter how many python books I have, it is just so easy to say but so hard to migrate my mind to python. Anyway, I'll keep trying. I still want to say

[sqlalchemy] Insert sqlalchemy into a plugin

2010-01-05 Thread mando
Hello everyone, I'm making a plugin for the software Qgis. I want to distribute the plugin with sqlalchemy already included. Under Mac OS, once compiled under 10.5, I noticed that it also works for 10.6. This happens even under Windows? I have to compile it under windows first and then put the

[sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-05 Thread seth
Hey, I fixed problem #1. Since I am not the first java - spring - hibernate developer migrating to the python wold, nor the last..., here goes what I learned from this: Object properties cannot be private (cannot start with _ or __ ) for SQLAlchemy to find them. I do not know the exceptions to

Re: [sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-05 Thread Michael Bayer
On Jan 5, 2010, at 9:57 AM, seth wrote: Hey, I fixed problem #1. Since I am not the first java - spring - hibernate developer migrating to the python wold, nor the last..., here goes what I learned from this: Object properties cannot be private (cannot start with _ or __ ) for

Re: [sqlalchemy] Sqlalchemy and python 3

2010-01-05 Thread Michael Bayer
its likely a line which needs a PY3K/PY2K directive. On Jan 5, 2010, at 10:16 AM, batok wrote: Hi, I have python 3.1.1 installed in my mac book pro. I also have installed sqlalchemy from svn repository and run the sa2to3.py script to do the refactoring. I can import and use sql

[sqlalchemy] sqlalchemy 0.6 and mock strategy produces different SQL for postgres

2010-01-05 Thread Diez B. Roggisch
Hi, we have a utility-script schemautil that allows us to re-create our DB based on the metadata of SA, or simply dump the generated SQL for manual inspection - the latter is used when one writes migration scripts. Now we noticed a strange behavior: the generated SQL isn't working for

Re: [sqlalchemy] Sqlalchemy and python 3

2010-01-05 Thread Antoine Pitrou
Le mardi 05 janvier 2010 à 11:32 -0500, Michael Bayer a écrit : its likely a line which needs a PY3K/PY2K directive. Or simply replace it with `NoneType = type(None)`. -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send

[sqlalchemy] Recursive eagerloading

2010-01-05 Thread boothead
Hi All, I've got a fairly complicated object structure for which I'm building a tree type object. The first level of the tree is a polymorphic relation with three subclasses. Two of those subclasses are fairly straightforward, but the 3rd points to another class with subclasses. I would like to

[sqlalchemy] Re: Sqlalchemy and python 3

2010-01-05 Thread batok
Replace what line? In properties.py ? On Jan 5, 10:42 am, Antoine Pitrou solip...@pitrou.net wrote: Le mardi 05 janvier 2010 à 11:32 -0500, Michael Bayer a écrit : its likely a line which needs a PY3K/PY2K directive. Or simply replace it with `NoneType = type(None)`. -- You received this

Re: [sqlalchemy] Re: Sqlalchemy and python 3

2010-01-05 Thread Antoine Pitrou
The line that tries to import NoneType from the types module. I can't tell you which one exactly, I have never read the code, but it should be trivial :-) Le mardi 05 janvier 2010 à 10:07 -0800, batok a écrit : Replace what line? In properties.py ? On Jan 5, 10:42 am, Antoine Pitrou

Re: [sqlalchemy] sqlalchemy 0.6 and mock strategy produces different SQL for postgres

2010-01-05 Thread Michael Bayer
On Jan 5, 2010, at 11:35 AM, Diez B. Roggisch wrote: Hi, we have a utility-script schemautil that allows us to re-create our DB based on the metadata of SA, or simply dump the generated SQL for manual inspection - the latter is used when one writes migration scripts. Now we noticed

Re: [sqlalchemy] Recursive eagerloading

2010-01-05 Thread Michael Bayer
On Jan 5, 2010, at 12:06 PM, boothead wrote: Hi All, I've got a fairly complicated object structure for which I'm building a tree type object. The first level of the tree is a polymorphic relation with three subclasses. Two of those subclasses are fairly straightforward, but the 3rd

[sqlalchemy] Re: Sqlalchemy and python 3

2010-01-05 Thread batok
I replace the line and reinstall and works fine. Tks. On Jan 5, 12:18 pm, Antoine Pitrou solip...@pitrou.net wrote: The line that tries to import NoneType from the types module. I can't tell you which one exactly, I have never read the code, but it should be trivial :-) Le mardi 05 janvier