Hello everyone,
Trying to use hybrid_attribute to provide friendly names for integers
representing object states. Storage and retrieval works fine, but I
can't get filtering working. I want the translation to happen on the
Python side prior to filling in the query parameters, but
On Mon, 2011-08-01 at 17:22 -0400, Michael Bayer wrote:
You're looking to convert from int-string using a mapping in a SQL
expression, so I think you'd need to write @state.expression as a CASE
statement.
from sqlalchemy import case
@state.expression
def state(self):
as the forward reference. Hence why I went with
an association object.
But since the association object has a relation to both nodes, there
not an easy way to know that n1's peer is the OTHER entry in
n1.node. Hence why I added the property an synonym.
Ross
On Aug 18, 4:59 am, Ross Vandegrift r
,
properties={'partners': orm.relation(Person,
backref=marriage)})
Ross
--
Ross Vandegrift
r...@kallisti.us
If the fight gets hot, the songs get hotter. If the going gets tough,
the songs get tougher.
--Woody Guthrie
signature.asc
Description: Digital signature
]
--
Ross Vandegrift
r...@kallisti.us
If the fight gets hot, the songs get hotter. If the going gets tough,
the songs get tougher.
--Woody Guthrie
signature.asc
Description: Digital signature
I wonder this - which am I supposed to use?
Ross
--
Ross Vandegrift
r...@kallisti.us
If the fight gets hot, the songs get hotter. If the going gets tough,
the songs get tougher.
--Woody Guthrie
signature.asc
Description: Digital signature
18, 2010, at 6:27 PM, Ross Vandegrift wrote:
engine = create_engine('sqlite:///:memory:', echo=True)
metadata.create_all(engine)
binds = { device_table : engine,
switch_table : engine }
Currently its looking at the mapped table of each object's class,
which in this case
= parent2
child2 = JuniperSwitch()
child2.upstream1 = parent1
child2.upstream2 = parent2
session.add_all([r1, r2])
session.add_all([parent1, parent2, child1, child2])
session.commit()
--
Ross Vandegrift
r...@kallisti.us
If the fight gets hot, the songs get hotter. If the going gets tough
. Selectable is
the base class for things like select() in SA. This feature is
awesome! Rather than specifying your Table object to orm.mapper,
specify a Selectable that returns rows that are what you want to see.
--
Ross Vandegrift
r...@kallisti.us
If the fight gets hot, the songs get hotter
On Thu, Dec 11, 2008 at 02:59:39PM -0500, Michael Bayer wrote:
On Dec 11, 2008, at 2:04 PM, Ross Vandegrift wrote:
So if I do something like this:
p = meta.session.query(model.Pool)
pool = p.get(7)
meta.session.refresh(pool)
InvalidRequestError: Instance 'p...@0xa6aca8c
)
+
+def get_col_spec(self):
+if self.length is not None:
+return self._extend(MEDIUMINT(%(length)s) % {'length':
self.length})
+else:
+return self._extend(MEDIUMINT)
+
+
class MSTinyInteger(MSInteger):
MySQL TINYINT type.
--
Ross Vandegrift
[EMAIL
gives the incorrect
approach.
--
Ross Vandegrift
[EMAIL PROTECTED]
The good Christian should beware of mathematicians, and all those who
make empty prophecies. The danger already exists that the mathematicians
have made a covenant with the devil to darken the spirit and to confine
man
On Mon, Aug 18, 2008 at 10:14:44AM -0400, Michael Bayer wrote:
On Aug 18, 2008, at 10:07 AM, Ross Vandegrift wrote:
Hello everyone,
According to the Pylons wiki docs on multiple engines with SQLALchemy
0.4, I should be able to do:
def init_model(default_engine, alternate_engine
a pretty major performance problem with Mozilla and X11 where
render operations on pages with transparent divs are excruciatingly
slow on many video cards. The problem is compounded by multiple
layers of transparency.
In other words - make sure the slowness isn't the client :)
--
Ross Vandegrift
14 matches
Mail list logo