Re: [sqlalchemy] PyMySQL dialect final patch

2010-12-27 Thread Michael Bayer
The tests don't pass due to some issues in PyMySQL which I've added as bugs at http://code.google.com/p/pymysql/issues/ . I've also added this address as a CC on ticket #1991: http://www.sqlalchemy.org/trac/ticket/1991 On Dec 6, 2010, at 3:44 PM, Evax Software wrote: Hi, The following

[sqlalchemy] On model load event?

2010-12-27 Thread lycovian
A models __init__ method works great to setup attributes on the model that don't exist in the underlying table when creating a model. Unfortunately, if you are retrieving the model though the __init__ method isn't triggered. Is there something like an event that can be hooked such that code can

Re: [sqlalchemy] On model load event?

2010-12-27 Thread Michael Bayer
On Dec 27, 2010, at 5:30 PM, lycovian wrote: A models __init__ method works great to setup attributes on the model that don't exist in the underlying table when creating a model. Unfortunately, if you are retrieving the model though the __init__ method isn't triggered. Is there something

Re: [sqlalchemy] Getting a list of parameters from a select object Options (cont'd)

2010-12-27 Thread Will Weaver
Does the lack of a response mean that it can't be done or just that no one knows how to do it? Or did I not ask the question good enough? On Tue, Dec 21, 2010 at 12:02 PM, Will willman...@gmail.com wrote: In continuation of the following post

Re: [sqlalchemy] SQLAlchemy-Future

2010-12-27 Thread Hong Minhee
Could you tell me how it is going on? -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more

Re: [sqlalchemy] Getting a list of parameters from a select object Options (cont'd)

2010-12-27 Thread Michael Bayer
When you have a clause you'd need to descend through the structure in the appropriate way to link bind parameters with associated column elements.An expression like x = :param would require looking at the left and right elements of a _BinaryClause, but bind parameters can occur in other

Re: [sqlalchemy] SQLAlchemy-Future

2010-12-27 Thread Michael Bayer
I would like confirmation as to the appropriate method to add namespace packages. As I mentioned earlier, the three sources of information are: http://www.python.org/dev/peps/pep-0382/ http://stackoverflow.com/questions/1675734/how-do-i-create-a-namespace-package-in-python

Re: [sqlalchemy] SQLAlchemy-Future

2010-12-27 Thread Hong Minhee
I don’t know why setuptools provides pkg_resources, implements another incompatible way to declare namespace packages, additionally in spite of existence of pkgutil.extend_path, the standard way to do it. IMO sqlalchemy.contrib namespace have to be declared by using pkgutil.extend_path,

Re: [sqlalchemy] SQLAlchemy-Future

2010-12-27 Thread Wichert Akkerman
On 2010-12-28 08:18, Hong Minhee wrote: I don’t know why setuptools provides pkg_resources, implements another incompatible way to declare namespace packages, additionally in spite of existence of pkgutil.extend_path, the standard way to do it. IMO sqlalchemy.contrib namespace have to be