[PonyORM-list] Example with disconnect()

Goldberg, Arthur P arthur.p.goldberg at mssm.edu
Fri Dec 12 15:19:19 UTC 2014

and because I wrote a silly bug in my code.


On Dec 12, 2014, at 9:58 AM, Alexander Kozlovsky <alexander.kozlovsky at gmail.com<mailto:alexander.kozlovsky at gmail.com>>

Oops, it is because the entity actually called `MyEntity1`, not `Entity1`

Try to unzip and test the attached example, it should work


On Fri, Dec 12, 2014 at 5:31 PM, Goldberg, Arthur P <arthur.p.goldberg at mssm.edu<mailto:arthur.p.goldberg at mssm.edu>> wrote:
Hi Alexander

Excellent idea, thanks!
But I don't find that the Entity definitions are available in db. E.g., your last line would error with

AttributeError: 'Database' object has no attribute 'Entity1'

And I looked inside all of db's attributes, and didn't find it.
ponyorm-list mailing list
ponyorm-list at ponyorm.com<mailto:ponyorm-list at ponyorm.com>


Arthur Goldberg
Associate Professor of Psychiatry
Seaver Autism Center and Icahn Institute for Genomics & Multiscale Biology
Icahn School of Medicine at Mount Sinai
Seaver Center, Room ABE-33
Arthur.Goldberg at mssm.edu<mailto:Arthur.Goldberg at mssm.edu>
Follow us on Twitter @IcahnInstitute<https://twitter.com/IcahnInstitute>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20141212/13a22b33/attachment.html>

More information about the ponyorm-list mailing list