[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.

thanks

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

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

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

Regards,
Alexander


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.
<multiple_db.zip>_______________________________________________
ponyorm-list mailing list
ponyorm-list at ponyorm.com<mailto:ponyorm-list at ponyorm.com>
https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman-2Dmail5.webfaction.com_listinfo_ponyorm-2Dlist&d=AwIGaQ&c=4R1YgkJNMyVWjMjneTwN5tJRn8m8VqTSNCjYLg1wNX4&r=TntoeYH7lekXzpBRjXwLTkqiWTbWAvp3pHKo_kZp5qI&m=3L0bpLfMI7kHb4S5v4yYPIumfAAekPh84LcimZBTeyI&s=gmYE6P2B92FRGPXUns_B06hOsIWVjvm3xeb3rSokVZc&e=

---

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
212-241-4229
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