[Zope] adding properties trough pythonscript

Dieter Maurer dieter at handshake.de
Thu Oct 21 13:44:26 EDT 2004


Sean Hastings wrote at 2004-10-21 11:18 -0400:
> ...
>> >def fooEdit(self,REQUEST):
>> >	"foo is a string - foo2 is an int"
>> >	self.foo = REQUEST.get('foo','')
>> >	try:
>> >		self.foo2 = int(REQUEST.get('foo2',0)
>> >	except ValueError, e:
>> >		self.foo2 = 0
>> >
>
>Then could I say that this would be an example in which catching SOME
>exception CAN NOT result in inconsistent data?

You can :-)

-- 
Dieter


More information about the Zope mailing list