anyone have an idea? this prevents me from developing further.
Thank you in advance.
On Apr 1, 1:33 pm, snf lukasz.cz...@gmail.com wrote:
Hi,
I'm trying to implement a soap interface that will allow me to pass
pure sqlalchemy objects as a reponse. I'm using the declarative based
table
your probably better off creating a parallel hierarchy for soap
serialization and then adapting the sqlalchemy types to/from it as needed.
if you want to do the metaclass thing, you'll probably need to overide call
in your synthentic metaclass and call both the base meta classes call
methods.
Hi all,
I'm using Oracle and PostgreSQL with SQLAlchemy and I have some troubles
to make the code compatible with both of them.
Numeric sa type returns a different type with oracle and pg.
For example, in the following table I'm using the Column 'importo' with
type Numeric as:
...python setup.py test probabyl would, but only for the test run.
Might be worth mentioning in README.unittests that you need to manually
install nose...
cheers,
Chris
--
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post to this group,
On Mon, Apr 5, 2010 at 5:55 PM, Michael Bayer mike...@zzzcomputing.comwrote:
I'm unclear on what usage you'd like to see.
What I'm trying to do would be roughly equivalent to this:
def query_foo(self):
logger = logging.getLogger(__name__ + '.' + self.__class__.__name__)
query =
jose soares wrote:
Hi all,
I'm using Oracle and PostgreSQL with SQLAlchemy and I have some troubles
to make the code compatible with both of them.
Numeric sa type returns a different type with oracle and pg.
For example, in the following table I'm using the Column 'importo' with
type
Chris Withers wrote:
...python setup.py test probabyl would, but only for the test run.
Might be worth mentioning in README.unittests that you need to manually
install nose...
this is not clear enough ?
As of 0.5.5, unit tests are run using nose. Documentation and
downloads for nose are
Michael Bayer wrote:
Chris Withers wrote:
...python setup.py test probabyl would, but only for the test run.
Might be worth mentioning in README.unittests that you need to manually
install nose...
this is not clear enough ?
As of 0.5.5, unit tests are run using nose. Documentation and
Jason Baker wrote:
On Mon, Apr 5, 2010 at 5:55 PM, Michael Bayer
mike...@zzzcomputing.comwrote:
I'm unclear on what usage you'd like to see.
What I'm trying to do would be roughly equivalent to this:
def query_foo(self):
logger = logging.getLogger(__name__ + '.' +
Chris Withers wrote:
Michael Bayer wrote:
Chris Withers wrote:
...python setup.py test probabyl would, but only for the test run.
Might be worth mentioning in README.unittests that you need to manually
install nose...
this is not clear enough ?
As of 0.5.5, unit tests are run using nose.
Okay, so, this is convoluted and painful.
We have a project where we use a single table inheritence setup to model
reports. Each report has email addresses to send it to, when to run it,
etc, but is mapped to an individual class for the implementation of what
goes into the report.
Now, to
Michael Bayer wrote:
jose soares wrote:
Hi all,
I'm using Oracle and PostgreSQL with SQLAlchemy and I have some troubles
to make the code compatible with both of them.
Numeric sa type returns a different type with oracle and pg.
For example, in the following table I'm using the Column
I'm getting the following error when I attempt to run session.query()
with a declarative base object
UnboundExecutionError: Parent instance Blah is not bound to a
Session; lazy load operation of attribute 'attribute' cannot proceed
But why? `session` is a brand new session I've just started,
I think I just found a regression in 0.6.
When evaluating the following SQL expression
sum(2*(func.length('bla'),))
with SQLAlchemy 0.6beta3 I get a
RuntimeError: maximum recursion depth exceeded
With SQLAlchemy 0.5 this used to work,
except that it was translated to
0 + length('bla')
Hello,
Just in case anyone can use this, I've created a sample envbuilder file that
will create a virtualenv with sqlalchemy installed from hg. The file is
here:
http://github.com/jasonbaker/envbuilder/blob/master/examples/sqlalchemy/.env
To use it:
1. Install the development version of
Oh, forgot to mention versions
SA @ 0.5.6
Python 2.5
On Apr 6, 11:08 am, mozillalives mozillali...@gmail.com wrote:
I'm getting the following error when I attempt to run session.query()
with a declarative base object
UnboundExecutionError: Parent instance Blah is not bound to a
Session;
jose soares wrote:
Michael Bayer wrote:
jose soares wrote:
Hi all,
I'm using Oracle and PostgreSQL with SQLAlchemy and I have some
troubles
to make the code compatible with both of them.
Numeric sa type returns a different type with oracle and pg.
For example, in the following table
Whoops, cancel that request - I found out where the error was
occurring. It was happening when I iterated over the query results.
Guess I need to pay more attention to the traceback next time :)
On Apr 6, 11:22 am, mozillalives mozillali...@gmail.com wrote:
Oh, forgot to mention versions
SA @
Christoph Zwerschke wrote:
I think I just found a regression in 0.6.
When evaluating the following SQL expression
sum(2*(func.length('bla'),))
with SQLAlchemy 0.6beta3 I get a
RuntimeError: maximum recursion depth exceeded
With SQLAlchemy 0.5 this used to work,
except that it was
Chris Withers wrote:
class ComputedMapperArgs:
@classproperty
def __mapper_args__(cls):
if cls.__name__=='Person':
return dict(polymorphic_on=cls.discriminator)
else:
return
Thanks for reply. I want to stick to the metaclass solution. Please
verify if I understood you correctly:
class MainMeta(meta1class, meta2class):
def classmaker_init(cls, name, bases, dct):
super(meta1class, cls).__init__(name, bases, dct)
super(meta2class, cls).__init__(name,
I'm attempting to use joined table polymorphism for various types of
activities. Activities all share a few common features, a location, a
reference number, time, etc. but some have some further attributes.
When I set up my map like so:
mapper(Activity, activities,
On Apr 6, 2010, at 3:56 PM, Josh Winslow jwins...@gmail.com wrote:
I'm attempting to use joined table polymorphism for various types of
activities. Activities all share a few common features, a location, a
reference number, time, etc. but some have some further attributes.
When I set up
On Apr 6, 4:27 pm, Michael Bayer mike...@zzzcomputing.com wrote:
On Apr 6, 2010, at 3:56 PM, Josh Winslow jwins...@gmail.com wrote:
I'm attempting to use joined table polymorphism for various types of
activities. Activities all share a few common features, a location, a
reference number,
Greetings,
I'm looking into using PostgreSQL's hstore type in a SQLAlchemy
project, and before I possibly reinvent the wheel I was wondering if
anyone has/knows of an implementation of an hstore custom type for SQLA?
I'm basically just interested in simply mapping a stand-alone attribute
25 matches
Mail list logo