Re: [Zope3-dev] Custom widgets for zc.table's EditColumn

2006-12-07 Thread Christian Theune


Gary Poster wrote:
> On Dec 7, 2006, at 8:29 AM, Christian Theune wrote:
> 
>> Hi,
>>
>> formlib provides the ability to declare a custom widget class on a
>> per-form basis.
>>
>> zc.table's EditColumn doesn't do that, but I'd like it to.
>>
>> If nobody objects, I'll add a new argument 'custom_widget' to the
>> constructor of this column and change the widget lookup to pay  
>> attention
>> to this. This is pretty much in sync with what formlib does.
> 
> FWIW, FieldColumn is supposed to supersede EditColumn.  Since it can  
> take a zope.formlib field, it can use that field's custom_widget.   
> (see fieldcolumn.FieldColumn.getInputWidget)

Oh. I didn't see that. I'll have a look at that. Thanks for the hint.

-- 
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development




signature.asc
Description: OpenPGP digital signature
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Custom widgets for zc.table's EditColumn

2006-12-07 Thread Gary Poster


On Dec 7, 2006, at 8:29 AM, Christian Theune wrote:


Hi,

formlib provides the ability to declare a custom widget class on a
per-form basis.

zc.table's EditColumn doesn't do that, but I'd like it to.

If nobody objects, I'll add a new argument 'custom_widget' to the
constructor of this column and change the widget lookup to pay  
attention

to this. This is pretty much in sync with what formlib does.


FWIW, FieldColumn is supposed to supersede EditColumn.  Since it can  
take a zope.formlib field, it can use that field's custom_widget.   
(see fieldcolumn.FieldColumn.getInputWidget)


Gary

___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Custom widgets for zc.table's EditColumn

2006-12-07 Thread Benji York

Christian Theune wrote:

formlib provides the ability to declare a custom widget class on a
per-form basis.

zc.table's EditColumn doesn't do that, but I'd like it to.

If nobody objects, I'll add a new argument 'custom_widget' to the
constructor of this column and change the widget lookup to pay attention
to this. This is pretty much in sync with what formlib does.


Sounds good to me.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Custom widgets for zc.table's EditColumn

2006-12-07 Thread Christian Theune
Hi,

formlib provides the ability to declare a custom widget class on a
per-form basis.

zc.table's EditColumn doesn't do that, but I'd like it to.

If nobody objects, I'll add a new argument 'custom_widget' to the
constructor of this column and change the widget lookup to pay attention
to this. This is pretty much in sync with what formlib does.

Christian

-- 
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development




signature.asc
Description: OpenPGP digital signature
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com