plonewars.com

April 27th, 2007

Hiding the Members links — plone.org

Hiding the Members links — plone.org

Originally from del.icio.us/tag/plone by gonzalo.vera


from Yoda http://plonewars.com/2007/04/27/hiding-the-members-links-a%c2%80%c2%94-ploneorg-3/







April 27th, 2007

Plone

Wikipédia

Plone

Originally from del.icio.us/tag/plone by zero.salinas


from Yoda http://plonewars.com/2007/04/27/plone-22/







April 27th, 2007

AT Photo Album — plone.org

AT Photo Album — plone.org

Originally from del.icio.us/tag/plone by zenich


from Yoda http://plonewars.com/2007/04/27/at-photo-album-a%c2%80%c2%94-ploneorg/







April 27th, 2007

ATPhoto — plone.org

ATPhoto — plone.org

Originally from del.icio.us/tag/plone by zenich


from Yoda http://plonewars.com/2007/04/27/atphoto-a%c2%80%c2%94-ploneorg-2/







April 27th, 2007

Plone Photo Shuffle — NGI644’s atelier

Plone Photo Shuffle — NGI644’s atelier

Originally from del.icio.us/tag/plone by zenich


from Yoda http://plonewars.com/2007/04/27/plone-photo-shuffle-a%c2%80%c2%94-ngi644s-atelier/







April 27th, 2007

FriendlyAlbum — plone.org

FriendlyAlbum — plone.org

Originally from del.icio.us/tag/plone by zenich


from Yoda http://plonewars.com/2007/04/27/friendlyalbum-a%c2%80%c2%94-ploneorg/







April 27th, 2007

Andreas Jung: And the winner is….

SQLAlchemy

SQLAlchemy would deserve the first price for the best Python package ever if there would be such a price.

SQLAlchemy is cool! Why is it cool? Because it solves all my problems!

Lets look at a real world example. I maintain a legacy system which is a hybrid solution storing binary content within the ZODB while keeping the metadata within a Postgres database. Internally we have to deal with hierarchies which are represented within the databases as self-referential table. A self-referential table allows you to store tree-like structure by having a back-references to the parent node. You can imagine that serializing and de-serializing a tree-like structure into a flat table structure within a RDBMS is big pain in the a**. The old legacy code for doing this consists of about 800 lines of Python code and SQL statements. Writing and maintaining such code is boring and really without fun. Well, such a self-referential is complicated enough but these tree structure also have internal references to other trees within the same table and reference to some other tables. So the complete tables is big forest of connected trees.

Lately I started looking at SQLAlchemy in the hope to get somehow out of the SQL hell. In SQLAlchemy every row of a particular table is represented as an instance of a mapper class. Fortunately SQLAlchemy provides support self-referential tables out-of-the-box. You configure your mapper class as a self-referential mapper, you perform a SELECT on the top node and then you’re done. SQLAlchemy knows  how to deal with the parent-child relationship (by configuration) and make sthe children nodes of the tree available a Python property of the current node. Children node are loaded on request. That nodes are only loaded from the database if needed.

More advantages of SQLAlchemy: you can modify nodes within the subtree by traversing to them and changing their properties. To save a complete
tree you just have to save the root node only.  SQLAlchemy knows how update the rows for the modified nodes of the subtree. SQLAlchemy is doing that automatically for you. You don’t have to keep track of changes,  you don’t have to write a single SQL statement

What are the disadvantages of SQLAlchemy? I don’t know any. SQLAlchemy has a very good documentation and a very responsive mailing list.

However:

  • SQLAlchemy is a big framework. The basics are easy however you must dig into SQLAlchemy when you face more complex scenarios like integrating SQLAlchemy with (unclean) legacy systems

See:

http://www.sqlalchemy.org
http://cheeseshop.python.org/pypi/z3c.sqlalchemy/

Andreas Jung: And the winner is….

Originally from Planet Plone by ajung <info@zopyx.com>


from Yoda http://plonewars.com/2007/04/27/andreas-jung-and-the-winner-is/







April 27th, 2007

MAMS – "Shibbolizing" Zope

MAMS – &quot;Shibbolizing&quot; Zope

Originally from del.icio.us/tag/plone by zahno


from Yoda http://plonewars.com/2007/04/27/mams-shibbolizing-zope-4/







April 27th, 2007

Working with Varnish and Plone — Headnet Xtranet

Getting started with the Squid killer Varnish is a brand new HTTP proxy that can sit in front of Zope and cache pages. Why consider it?: * Performs better than Squid – vg.no replaced 12 squid servers with 1 Varnish * Easy to setup: just start it with two

Working with Varnish and Plone — Headnet Xtranet

Originally from del.icio.us/tag/plone by liquid_


from Yoda http://plonewars.com/2007/04/27/working-with-varnish-and-plone-a%c2%80%c2%94-headnet-xtranet/







April 27th, 2007

How to hack your Zope 2 instance so that you can install Python packages using easy_install — plone.org

How to hack your Zope 2 instance so that you can install Python packages using easy_install — plone.org

Originally from del.icio.us/tag/plone by davconvent


from Yoda http://plonewars.com/2007/04/27/how-to-hack-your-zope-2-instance-so-that-you-can-install-python-packages-using-easy_install-a%c2%80%c2%94-ploneorg-5/