Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Tim Cook
On Mon, 2008-07-07 at 00:46 +0200, Philipp von Weitershausen wrote: description=Object( schema=IFoo, ... ) So the zope.schema.Object field is really about specifying objects that provide a certain schema. It's not for *arbitrary* objects (use

Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Philipp von Weitershausen
El 7 Jul 2008, a las 09:20 , Tim Cook escribió: On Mon, 2008-07-07 at 00:46 +0200, Philipp von Weitershausen wrote: description=Object( schema=IFoo, ... ) So the zope.schema.Object field is really about specifying objects that provide a certain schema. It's not for

[Zope3-Users] Zope Product Recommendations

2008-07-07 Thread Jon Hadley
Hi all, The list of products at Zope.org is fairly daunting for a n00b like me. Does anyone have any recommendations in terms of usefulness / wow factor / day to day utility apps? Cheers, Jon Hadley http://jon-hadley.com ___ Zope3-users mailing list

Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Tim Cook
On Mon, 2008-07-07 at 09:56 +0200, Philipp von Weitershausen wrote: Now I want to allow description to be any descendant of ItemStructure. So I had hoped that: description=Object( schema=IItemStructure, title=_(uDescription), description=_(uDescription of

Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Philipp von Weitershausen
El 7 Jul 2008, a las 12:06 , Tim Cook escribió: Am I correct in thinking that the above definition of Activity.description will constrain the possible types to the classes implementing IItemStructure or a subclass of it? Yes, it constraints the value of the 'description' attribute to any

[Zope3-Users] Cannot install Zope 3.3.0 as a Windows Service

2008-07-07 Thread Joe Bigler
I am installing this on Windows XP, Service Pack 2 Hello, I am looking for some help installing Zope 3.3.0 as a Windows service. When I run the C:\Zope\Instance\3.3.0python bin\zopeservice.py --startup auto install I get a message I placed in the paste http://paste.lisp.org/display/63370. I

Re: [Zope3-Users] Cannot install Zope 3.3.0 as a Windows Service

2008-07-07 Thread Shailesh Kumar
Hi Joe, Plone is based on zope2 (though it uses nowadays a lot of zope3 packages also). On Windows I usually avoid having both Plone/Zope2 and Zope 3. Most probably zope 3 and zope 2 are conflicting in this case due to which you are not able to see from zope.app.winservice.service import

Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Tim Cook
Answering my own questions: On Mon, 2008-07-07 at 10:20 -0300, Tim Cook wrote: All of my source files have the unicode declaration: # -*- coding: utf-8 -*- as the first line. Do those strings inside the list have to be marked as unicode? for example: [([u'include',

[Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Philipp von Weitershausen
Tim Cook wrote: On Mon, 2008-07-07 at 07:07 -0300, Tim Cook wrote: So once I remove all those characters I can get back to the task at hand. H, well those characters were a problem. However, I still get the File

Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Tim Cook
On Mon, 2008-07-07 at 16:55 +0200, Philipp von Weitershausen wrote: What does ItemTree.items field have to do with Activity.description field? I thought we're talking about the Object(schema=IItemTree) field inside IActivity here? An ItemTree instance is what is being assigned to

SOLVED! Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Tim Cook
... and I've learned a lot thanks to you patience. On Mon, 2008-07-07 at 12:41 -0300, Tim Cook wrote: I've been Googling for a script I can run against all of my source to test characters for unicode just in case there are more of those that I copied into title or description fields. If you

Not Really SOLVED! Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Tim Cook
On Mon, 2008-07-07 at 13:58 -0300, Tim Cook wrote: ... and I've learned a lot thanks to you patience. On Mon, 2008-07-07 at 12:41 -0300, Tim Cook wrote: I've been Googling for a script I can run against all of my source to test characters for unicode just in case there are more of those

Re: Not Really SOLVED! Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Tim Cook
Okay, the problem is defined but it really isn't a solution for me. It seems that Zope has defined 'description' as a keyword not allowed in schema definitions. The WrongType error occurs in validation because Zope thinks it is the 'description' of the attribute and not the attribute itself.

Re: Not Really SOLVED! Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Benji York
On Mon, Jul 7, 2008 at 1:28 PM, Tim Cook [EMAIL PROTECTED] wrote: Okay, the problem is defined but it really isn't a solution for me. It seems that Zope has defined 'description' as a keyword not allowed in schema definitions. That's rather odd. Can you construct a small example (say, a

Re: Not Really SOLVED! Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Tim Cook
On Mon, 2008-07-07 at 13:34 -0400, Benji York wrote: On Mon, Jul 7, 2008 at 1:28 PM, Tim Cook [EMAIL PROTECTED] wrote: Okay, the problem is defined but it really isn't a solution for me. It seems that Zope has defined 'description' as a keyword not allowed in schema definitions.

Re: Not Really SOLVED! Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Fred Drake
On Mon, Jul 7, 2008 at 2:25 PM, Tim Cook [EMAIL PROTECTED] wrote: Okay. But before I do that. Is my approach to initializing an instance correct or is the problem the way I handled the keywords? ... for n,v in kw.items(): setattr(self,n,v) There are people who like this

Re: Not Really SOLVED! Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Tim Cook
On Mon, 2008-07-07 at 13:34 -0400, Benji York wrote: On Mon, Jul 7, 2008 at 1:28 PM, Tim Cook [EMAIL PROTECTED] wrote: Okay, the problem is defined but it really isn't a solution for me. It seems that Zope has defined 'description' as a keyword not allowed in schema definitions.

[Zope3-Users] Re: A slew of z3c.form questions

2008-07-07 Thread Martin Aspeli
Stephan Richter wrote: On Sunday 06 July 2008, Martin Aspeli wrote: I'm guessing z3c.form groups do that, of course, but it's not clear to me whether it's appropriate to use them for this kind of thing, especially since the logical groupings and field ordering will only be calculable at