Re: [Zope3-dev] zope.schema: defaults for non-immutables... questions

2006-02-09 Thread Stephan Richter
On Tuesday 07 February 2006 13:11, Shaun Cutts wrote: By delegation support I mean support for being a proxy for an interface, and delegating its fulfillment to a subobject. Okay, the explanation helped a lot, though I do not like it. But people on the zope.interface list might feel different.

Re: [Zope3-dev] zope.schema: defaults for non-immutables... questions

2006-02-07 Thread Stephan Richter
On Monday 06 February 2006 11:53, Shaun Cutts wrote: I've thought of several things I'd like to see in it The biggest would obviously be (optional) type checking of method calls, together with a more robust Method definition. Yes, there has been suggestions in this direction before.

RE: [Zope3-dev] zope.schema: defaults for non-immutables... questions

2006-02-07 Thread Shaun Cutts
elsewhere easier. -Original Message- From: Stephan Richter [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 5:15 AM To: zope3-dev@zope.org Cc: Shaun Cutts Subject: Re: [Zope3-dev] zope.schema: defaults for non-immutables... questions On Monday 06 February 2006 11:53, Shaun Cutts wrote

RE: [Zope3-dev] zope.schema: defaults for non-immutables... questions

2006-02-06 Thread Shaun Cutts
-Original Message- From: Stephan Richter [mailto:[EMAIL PROTECTED] Sent: Sunday, February 05, 2006 4:40 PM To: zope3-dev@zope.org Cc: Gary Poster; Shaun Cutts Subject: Re: [Zope3-dev] zope.schema: defaults for non-immutables... questions On Sunday 05 February 2006 14:42, Gary Poster wrote

Re: [Zope3-dev] zope.schema: defaults for non-immutables... questions

2006-02-05 Thread Stephan Richter
On Tuesday 24 January 2006 12:26, Shaun Cutts wrote: It would seem that the current default mechanism is poorly suited to providing default values for non-immutables. For example:   class IBar( Interface ):       a = Object( schema = IFoo, default = Foo() ) Yes, this is even more apparent

Re: [Zope3-dev] zope.schema: defaults for non-immutables... questions

2006-02-05 Thread Gary Poster
On Feb 5, 2006, at 12:20 PM, Stephan Richter wrote: On Tuesday 24 January 2006 12:26, Shaun Cutts wrote: It would seem that the current default mechanism is poorly suited to providing default values for non-immutables. For example: class IBar( Interface ): a = Object( schema = IFoo,

Re: [Zope3-dev] zope.schema: defaults for non-immutables... questions

2006-01-24 Thread Shane Hathaway
Shaun Cutts wrote: It would seem that the current default mechanism is poorly suited to providing default values for non-immutables. For example: Mutable is a better way to say non-immutable. :-) class IBar( Interface ): a = Object( schema = IFoo, default = Foo() ) But if a “Foo” is

RE: [Zope3-dev] zope.schema: defaults for non-immutables... questions

2006-01-24 Thread Shaun Cutts
ones? Seems like this is generally useful for introspection of metadata. -Original Message- From: Shane Hathaway [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 12:39 PM To: Shaun Cutts Cc: zope3-dev@zope.org Subject: Re: [Zope3-dev] zope.schema: defaults for non-immutables