[Zope3-dev] adapter registration question

2006-11-10 Thread Chris Withers
This is a toy example, but I need to do something similar and can't seem to get the registration right... How can I register the str builtin as an adapter from python int objects to python str objects? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

[Zope3-dev] Re: browser widgets: items widgets and label tags

2006-11-10 Thread yuppie
Hi! I found a simpler solution: yuppie wrote: Pointing the label to a specific input field would not be very useful. AFAICS the widget's label tag should have no 'for' attribute at all. Instead, each value text should be a label. Something like this:: labelWIDGET_LABEL/label div

[Zope3-dev] Re: adapter registration question

2006-11-10 Thread Rocky Burt
On Fri, 2006-10-11 at 08:00 +, Chris Withers wrote: This is a toy example, but I need to do something similar and can't seem to get the registration right... How can I register the str builtin as an adapter from python int objects to python str objects? I've personally found when I

Re: [Zope3-dev] Re: browser widgets: items widgets and label tags

2006-11-10 Thread Fred Drake
On 11/10/06, yuppie [EMAIL PROTECTED] wrote: While pointing the label to the div element that contains the input fields is not very useful, this seems to be valid HTML:: Sorry for not replying earlier, but I wanted to have time to think before responding. ;) There's valid according to the