Michael- FYI, memoized_property isn't documented. it looks to be in the
active source, and there is a recipe for a roll-your-own memoized orm
properties.
On Monday, May 25, 2015 at 11:43:58 AM UTC-4, c.b...@posteo.jp wrote:
>
> I am quite new to Python and not familiar with the decorator conce
On 5/25/15 11:43 AM, c.bu...@posteo.jp wrote:
On 2015-05-25 11:12 Mike Bayer wrote:
CreateSession and sessionmaker do the same thing. I'd lose one or
the other.
Yes, I will do so.
For the memoized thing, I'd use a decorator like Pyramid @reify or
SQLAlchemy's @memoized_property, wouldn't
On 2015-05-25 11:12 Mike Bayer wrote:
> CreateSession and sessionmaker do the same thing. I'd lose one or
> the other.
Yes, I will do so.
> For the memoized thing, I'd use a decorator like Pyramid @reify or
> SQLAlchemy's @memoized_property, wouldn't bother with all those
> conditionals and s
On 5/25/15 6:08 AM, c.bu...@posteo.jp wrote:
What do you think about that (simplified) code?
An instance of this class would be added to any gui-class (e.g. a
dialog) which handle data over SQLAlchemy.
The session would be destroyed/closed correct when the Controller
instance is destroyed, too