[Zope] Nested PersistentMappings and security

Pascal Peregrina Pperegrina at Lastminute.com
Mon Mar 7 08:31:54 EST 2005


I am missing something... (sorry) :
to create :
tree={'a':{'b':1,'c':2},'d':4}

How would I do using OOBTrees ?
Is this right ?
tree2=OOBTree()
tree2.update({'b':1,'c':2})
tree=OOBTree()
tree.update({'a':tree2,'d':4})

The problem is that when in a ZPT I access tree (being an attribute of some
of my objects), I get Security problems to access tree2.

Pascal

-----Message d'origine-----
De : zope-bounces at zope.org [mailto:zope-bounces at zope.org]De la part de
Jens Vagelpohl
Envoyé : lundi 7 mars 2005 13:40
À : 'zope at zope.org' List Mailing
Objet : Re: [Zope] Nested PersistentMappings and security



On Mar 7, 2005, at 13:31, Pascal Peregrina wrote:

> I just realized it as I was typing :)
>
> It's just that I have never used BTrees, while I have been using
> PersisentMapping for a while.

No fear, they act mostly like mappings themselves ;)

Take a look at <zope>/lib/python/BTrees/Interfaces.py to see what you 
can and cannot do.

jens

_______________________________________________
Zope maillist  -  Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



More information about the Zope mailing list