[Zope-dev] zope.proxy

Christian Theune ct at gocept.com
Fri Jun 26 10:34:09 EDT 2009


Hi there,

On Fri, 2009-06-26 at 18:30 +0800, Martin Aspeli wrote:
> Hi,
> 
> Is there any documentation on zope.proxy other than the test? I don't 
> speak C anymore. :)
> 
> Basically, I'm curious if it would be possible to implement "translation 
> proxies" that would allow getting and setting translated values for 
> certain fields.

I have done something like this a while ago and always wanted to release
it. 

*digs into svn*

Ah. We didn't use zope.proxy at all. We differentiate between a "real"
object and the object that carries the schema's translated fields.

Have a look at the attached file, it contains the code that I extracted
from a project in a hurry, but if the approach sounds reasonable to you,
I'd be happy to put that into SVN.

Christian

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gocept.schematranslation.tar.gz
Type: application/x-compressed-tar
Size: 2450 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090626/c2a3a4b8/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090626/c2a3a4b8/attachment-0001.bin 


More information about the Zope-Dev mailing list