Re: [Zope3-dev] Sum of Decimals

2006-02-08 Thread Stephan Richter
On Wednesday 08 February 2006 13:43, Garanin Michael wrote:
 My content object A has attributes 'cost'  'tax' - Decimal (from
 decimal). I try: A.cost + A.tax --- security error '+' method for
 Decimal-class. I solve problem by 'zope.proxy.removeAllProxies' , but i
 think it's bad. What other ways are exist?

 i get Zope3 from trunk and not find 'decimal'-package in
 'zope/app/globalmodules.zcml'. Why?

Decimal is a new type and we have not yet declared it to be a rock. This can 
be done in your custom code and also add an issue, because we need to do that 
for the next release.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Sum of Decimals

2006-02-08 Thread Paul Winkler
On Wed, Feb 08, 2006 at 11:08:57AM -0500, Stephan Richter wrote:
 Decimal is a new type and we have not yet declared it to be a rock.

What is a rock?

-- 

Paul Winkler
http://www.slinkp.com
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Sum of Decimals

2006-02-08 Thread Shane Hathaway

Paul Winkler wrote:

On Wed, Feb 08, 2006 at 11:08:57AM -0500, Stephan Richter wrote:


Decimal is a new type and we have not yet declared it to be a rock.



What is a rock?


A rock is an immutable object with no insecure methods.  Trusted code 
can pass a bare rock to untrusted code with no fear that the object will 
be modified or used for breaking out of the security model.  Numbers and 
strings are rocks.


Shane
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com