Re: [Zope3-Users] multi-field text widget

2007-05-02 Thread Christophe Combelles
Aaron Cripps a écrit : I need a custom widget that I can use to display/get an IP for a "Computer object" that I've written. I've tried looking at zope.schema.TextLine as a starting point to making a widget that can store each octet of the IP address separately, but to no avail. The #zope chann

[Zope3-Users] multi-field text widget

2007-05-02 Thread Aaron Cripps
I need a custom widget that I can use to display/get an IP for a "Computer object" that I've written. I've tried looking at zope.schema.TextLine as a starting point to making a widget that can store each octet of the IP address separately, but to no avail. The #zope channel on irc.freenode.net i

[Zope3-Users] Getting values of catalog index in a given "context" ?

2007-05-02 Thread Thierry Florac
Hi, I'm using Zope3 catalog (with it's "zc.catalog" extensions and indexes). What I'd like is to get a list of indexed values for a given index but in a given context ; for that, I have : - a SetIndex which indexes content's path elements - a ValueIndex which indexes the content property that

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-02 Thread Fred Drake
On 5/2/07, Hermann Himmelbauer <[EMAIL PROTECTED]> wrote: Moreover I wonder if it's possible to customize the attributes "size" and "maxlength" of HTML input fields via the zope schema. Schemas offer the attribute "max_length", however this does not affect the rendered HTML - size seems to be alw

Re: [Zope3-Users] "Wrong contained type" - why?

2007-05-02 Thread Rupert Redington
For me it was a problem with my vocabulary which works in this form... class ClipboardVocabFactory(object): implements(IVocabularyFactory) def __call__(self, context): terms = [(x.title, x) for x in \ Session().query(ArchiveObject).select()] voc = SimpleVocabulary.fromIte

[Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-02 Thread Hermann Himmelbauer
Hi, I'd like to know how to arrange (e.g. group) widgets in a form with formlib. One way would be to create a custom template file, where each widget is placed via HTML. However, this is quite some work. Another way would be to place the fields via CSS. How do you deal with form layout? More