Re: [Zope3-dev] Applying schema data on an object

2006-12-19 Thread Stephan Richter
On Wednesday 13 December 2006 11:19, Christian Theune wrote: > I propose to include the given function in zope.schema or > zope.interface. Eventually this could also be spelled as a method on a > schema (symmetrical to field.set): schema.set(object, data) I do not care much about it either way, bu

Re: [Zope3-dev] Applying schema data on an object

2006-12-13 Thread Jeff Shell
On 12/13/06, Christian Theune <[EMAIL PROTECTED]> wrote: Hi, I've been trying to DRY some code and found that the following pattern keeps popping up: class SomeObject(object): def __init__(self, many_keyword_arguments): self.y = y self.x = x

[Zope3-dev] Applying schema data on an object

2006-12-13 Thread Christian Theune
Hi, I've been trying to DRY some code and found that the following pattern keeps popping up: class SomeObject(object): def __init__(self, many_keyword_arguments): self.y = y self.x = x self.z = z From the outside this then is called from a