Re: [Zope3-Users] Re: Interface tests: NotImplemented or NotImplementedError

2005-10-20 Thread Chris Withers
Fred Drake wrote: A rich-comparison method should return NotImplemented to indicate that it doesn't implement the specific comparison; the response should be for Python to allow the other operand a chance to handle the comparison (inverted, of course). Oh :-( What an unfortunate name, I'd

[Zope3-Users] Fields for file and images

2005-10-20 Thread Johan Carlsson
Hi all, I'm trying to figure out the easiest way to get fields holding Files or Images in my content type class. I've tried the following: I've tried using the Object field specifying the zope.app.file.interfaces.IFile as the schema and then implement a CustomWidgetFactory with

Re: [Zope3-Users] Fields for file and images

2005-10-20 Thread Johan Carlsson
Johan Carlsson wrote: Hi all, I'm trying to figure out the easiest way to get fields holding Files or Images in my content type class. I've tried the following: I've tried using the Object field specifying the zope.app.file.interfaces.IFile as the schema and then implement a

Re: [Zope3-Users] Fields for file and images

2005-10-20 Thread Johan Carlsson
Johan Carlsson wrote: For anyone that might be interested in the update to my code (still only parsely working): Here is my code (which uses the Poll as base, that stuff has been removed though): interfaces.py: from zope.interface import Interface from zope.schema import Object from

Re: [Zope3-Users] How to pass an added object to redirected page

2005-10-20 Thread TAHARA Yusei
Hello. On Thu, 20 Oct 2005 20:20:17 -0700 Naotoshi Seo [EMAIL PROTECTED] wrote: So, this is just redirecting to different page after users add object. I have no idea to access to the data of the added object at 'nexturl.html'. If possible, I can show what users inputted. You can use add

[Zope3-Users] How to allow one user to access only his object

2005-10-20 Thread Naotoshi Seo
Hi. I have one more question. Imagine there are a MessageBoard and many Message objects. I would like to allow users to modify only his message as common message board if user type a password for the message. I made a view to show forms to be typed password, and I processed POSTed values, and I