[Zope-dev] RFC: page contracts

Shane Hathaway shane@digicool.com
Wed, 30 Aug 2000 14:23:24 -0400


Erik Enge wrote:
> 
> [Petru Paler]
> 
> | - how this should be aproached
> 
> Couldn't this be implemented by adding more properties to you objects?
> One thing that would be great, though, variable checking :)

Easily done in through-the-web Python Methods.  Just use the cast
methods such as int(), float(), str(), list(), tuple(), etc. 
Advantages:

- If it can't convert, an exception is thrown.
- Fast.
- Standard.
- Minimal typing. :-)

Shane