[Zope3-Users] Sum of Decimals

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Feb 5 05:54:04 EST 2006


On Saturday 04 February 2006 01:46, 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 am pretty sure that the Decimal type is not declared a rock in the security 
package and is thus proxied. Bring it up in the zope3-dev mailing list and it 
will be addressed quickly. For now you can just declare it as a rock. See 
zope.security.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list