[Persistence-sig] "Straw Baby" Persistence API

Kevin Jacobs jacobs@penguin.theopalgroup.com
Tue, 23 Jul 2002 11:08:36 -0400 (EDT)


On Tue, 23 Jul 2002, Jim Fulton wrote:
> Proxies can be a useful tool. We certainly use them a lot, although
> I sometimes feel dirty afterwards. ;)  There are a *lot* of gotchas.
> I would definately *not* recommend using them for persistence.  I
> would find a persistent mix-in to be far less intrusive than proxies.

Believe it or not, but we're on the same wavelength:

I'm thinking about proxy-methods a la aspect oriented programming, more than
whole proxy objects.  e.g. cooperative __{g,s}et{attr,item}__ methods that
implement observer semantics and can forward to base-class methods.  Whole
object proxies have the problem that object identity and type information is
obscured in ways that are contrary to standard Python idioms.

-Kevin

--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19         E-mail: jacobs@theopalgroup.com
Fax:   (216) 986-0714              WWW:    http://www.theopalgroup.com