Mailing List Archive

Peewee and Zope
I'm interested in marrying my Zope app with Peewee[1]. It's a very
simple ORM based on Django's "ORM patterns". All I need is a
non-persistent connection object in my app.
To avoid reinventing any wheels, I thought I could maybe look at the
SQLAlchemy or ZPsycopgDA packages for inspiration.
Even better way to avoid re-inventing the wheel would be if there
already was a package or some code I could try. Has anybody built
anything like this they're willing to share? (nothing found by
googling)

[1] https://github.com/coleifer/peewee

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby donecal.com
_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )
Re: Peewee and Zope [ In reply to ]
Am 30.12.2010 16:19, schrieb Peter Bengtsson:
> I'm interested in marrying my Zope app with Peewee[1]. It's a very
> simple ORM based on Django's "ORM patterns". All I need is a
> non-persistent connection object in my app.
> To avoid reinventing any wheels, I thought I could maybe look at the
> SQLAlchemy or ZPsycopgDA packages for inspiration.
> Even better way to avoid re-inventing the wheel would be if there
> already was a package or some code I could try. Has anybody built
> anything like this they're willing to share? (nothing found by
> googling)
>
> [1]https://github.com/coleifer/peewee
>
>
you can use a zope3 global utility for all methods.
Your connection can be in /a volatile/ attribute.
http://www.zodb.org/documentation/articles/ZODB2.html#not-all-objects-are-persistent

regards Maik

--
========================================================================

Derstappen I T Consulting Tel: +49 ( 341 ) 600 13 0 31
Zope/E-Mail/Backup/Monitoring Mobil: +49 ( 178 ) 861 2 833
M a i k D e r s t a p p e n Fax: +49 ( 180 ) 5 021 121 90 56
H e r l o ß s o h n s t r 12 Email:maik.derstappen@derstappen-it.de
0 4 1 5 5 L e i p z i g Internet:http://www.derstappen-it.de

========================================================================
Re: Peewee and Zope [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Using SQLAlchemy through some integration layer like zope.sqlalchemy
or z3c.sqlalchemy is fairly easy, well understood and supported.
I strongly recommend using such a mainstream solution instead of baking
your own integration layer for yet-another-ORM unless you are skilled
enough and having all the necessary Zope background (e.g. integration
of third-party backend systems with the Zope transaction system).

- -aj


Peter Bengtsson wrote:
> I'm interested in marrying my Zope app with Peewee[1]. It's a very
> simple ORM based on Django's "ORM patterns". All I need is a
> non-persistent connection object in my app.
> To avoid reinventing any wheels, I thought I could maybe look at the
> SQLAlchemy or ZPsycopgDA packages for inspiration.
> Even better way to avoid re-inventing the wheel would be if there
> already was a package or some code I could try. Has anybody built
> anything like this they're willing to share? (nothing found by
> googling)
>
> [1] https://github.com/coleifer/peewee
>


- --
ZOPYX Limited | zopyx group
Charlottenstr. 37/1 | The full-service network for Zope & Plone
D-72070 Tübingen | Produce & Publish
www.zopyx.com | www.produce-and-publish.com
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJNHKWGAAoJEADcfz7u4AZj0MgLvRz/paYzuFCgcprpG9KwE9HK
tGt3o3vPy+6t+7UHW3uupXn4cN1juH9E5SJ63LdVgTAzQo+XhVSleYa3ZUdLlPC9
1+gV/6VgCACy1LzdrpLJlmZtz+xMf8Z1Q16H0mAupPPAwWLOZ4Lp1w2F+rXWqOmV
7fD9v502LECJSA5RKPNne0cnwTSOoMmwHIA3jGWFhcrXrg5lGK77I56IrAqK73Ym
pUs+hfKnuh+agjJ1n02XGz67pM6tqbAoZmM/YcCj4WR4/zviOs1HeHB7S7UsMrnr
/klqCh+NYPzIAAYU2lDHapcGSrXQNIsW/m5I5rOHgjLvX0jF9snzRHRF+BXQ5n+o
urT9HL8bAlBd1kQBqlxNkwJMFD2YHmgaxI5mKcX4nsqkD/yS76JjngG3MgTESWea
Jc/dQRMvI1CbusR2akTnMLKvJth1Pj3HfbZniNaQuydsZUSzbI8fZEgR3hryt4EL
BAUUc9Q0r7i81vA1t8SKi7eVcdPlYQw=
=2IYm
-----END PGP SIGNATURE-----