Re: [Zope3-Users] DropdownWidget with SimpleVocabulary causes ConversionError.

2006-03-27 Thread wata
Hi, Michael. Your explanations make things very clear. It was my misuse of SimleVocabulary/SimpleTerm. I misunderstood the responsibility of token. I didn't notice that DroopdownWidget renders token only when no title is given. When reading the docstrings of

Re: [Zope3-Users] DropdownWidget with SimpleVocabulary causes ConversionError.

2006-03-27 Thread wata
I'd like to ask one more question. Why does SimpleVocabulary.fromValues/fromItems() not set 'title' ? Is there any good reason? Current implementation is unconvenient for non-ascii people. Regards, Katsutoshi -- Watanabe, Katsutoshi # I beg you to point out the error or rudeness of my english.

[Zope3-Users] Deprecate conditionally

2006-03-27 Thread Florian Lindner
Hello, I want show a deprecation warning only if a argument of a function is set to False. def foo(arg1, arg2, arg3 = False): if not arg3: arg3 = deprecation.deprecated(arg3, arg3=False is deprecated.) But that does not show anything. How do it correctly? Thanks, Florian