Re: [Zope3-Users] Zope Product Recommendations

2008-07-15 Thread Chris Withers
Jon Hadley wrote: Hi all, The list of products at Zope.org is fairly daunting for a n00b like me. None of the product there will likely work with Zope 3 anyway ;-) Does anyone have any recommendations in terms of usefulness / wow factor / day to day utility apps? That's a bit like asking

[Zope3-Users] Help: I cannot login after installing z3c.formjs

2008-07-15 Thread kevin gill
Hi, I am integrating z3c.formjs to a new site. After installing z3c.formjs I can no longer login. If I remove it, I can login again. It causes a problem with the SessionCredentials mechanism that I am using. The SessionCredentials annotations now contains event handlers of type

Re: [Zope3-Users] Help: I cannot login after installing z3c.formjs

2008-07-15 Thread Paul Carduner
Hmm, I've never gotten an error like that. It probably wouldn't be too difficult to patch jsclientevent.py by making sure caught events have security proxies removed before they are stored. But I wonder why any request related data is being stored in the database. My understanding is that

[Zope3-Users] Interface confusion (still)

2008-07-15 Thread Tim Cook
If interface B inherits from interface A and class B implements interface B; do I need to explicitly state that class B provides interface A? Concrete example: class IElement(Interface): value = Object( schema=IDataValue, title=_(uvalue), description=_(uData value of

Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Shailesh Kumar
Hi, I believe not. In any case, implements, provides and such things are more like indications of what is being supported by a class and they are not enforced by runtime strictly. I just tried following: # from zope.component

Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Markus Kemmerling
Am 15.07.2008 um 20:53 schrieb Tim Cook: If interface B inherits from interface A and class B implements interface B; do I need to explicitly state that class B provides interface A? An instance of a class provides not only the interface the class declares to implement, but also all base

[Zope3-Users] z3c.form - content add and edit forms

2008-07-15 Thread Martin Aspeli
Hi, It's very common to have a content type that has both an add- and an edit form. If you have custom widget setup code and other logic, you often have to replicate this across both forms to make them consistent. Is there a standard/recommended z3c.form pattern to reduce duplication in this

[Zope3-Users] Checking for existence of an adapter

2008-07-15 Thread Martin Aspeli
Hi, Is there some way to check whether an adapter exists without having something to adapt? Specifically, I want to know if a particular view is registered for a particular type of context and request/layer, with a particular name. However, I don't have an instance of the object of that

Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Tim Cook
The purpose of this question is related to an earlier question I had about using the best/correct schema field choice. It was pointed out that I should use 'Object' and set the schema to the interface of the class(es) that I wanted that attribute to accept. Since I did not point out that all of

Re: [Zope3-Users] Checking for existence of an adapter

2008-07-15 Thread Stephan Richter
On Tuesday 15 July 2008, Martin Aspeli wrote: Specifically, I want to know if a particular view is registered for a particular type of context and request/layer, with a particular name. However, I don't have an instance of the object of that type, nor the request, at the time when I need to do

Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Benji York
On Tue, Jul 15, 2008 at 6:31 PM, Tim Cook [EMAIL PROTECTED] wrote: Note: classes *implement* interfaces, their instances *provide* them. ... and I am still confused about a use case for classProvides. When one says that a class *provides* an interface they're saying that instances of that

Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Tim Cook
On Tue, 2008-07-15 at 18:56 -0400, Benji York wrote: On Tue, Jul 15, 2008 at 6:31 PM, Tim Cook [EMAIL PROTECTED] wrote: Note: classes *implement* interfaces, their instances *provide* them. ... and I am still confused about a use case for classProvides. When one says that a class

Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Fred Drake
On Tue, Jul 15, 2008 at 6:56 PM, Benji York [EMAIL PROTECTED] wrote: When one says that a class *provides* an interface they're saying that instances of that class *implements* the interface. Sorry, you got that backwards. Instances provide the interfaces their class implements. On the other

Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Tim Cook
On Tue, 2008-07-15 at 19:27 -0400, Fred Drake wrote: On Tue, Jul 15, 2008 at 6:56 PM, Benji York [EMAIL PROTECTED] wrote: When one says that a class *provides* an interface they're saying that instances of that class *implements* the interface. Sorry, you got that backwards. Instances

Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Benji York
On Tue, Jul 15, 2008 at 7:27 PM, Fred Drake [EMAIL PROTECTED] wrote: On Tue, Jul 15, 2008 at 6:56 PM, Benji York [EMAIL PROTECTED] wrote: When one says that a class *provides* an interface they're saying that instances of that class *implements* the interface. Sorry, you got that backwards.

Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Fred Drake
On Tue, Jul 15, 2008 at 7:36 PM, Tim Cook [EMAIL PROTECTED] wrote: And in my Maildir example it implements what is defined in IMaildir but how does it 'provide' what is in IMaildirFactory? Specifically the __call__ method. The __call__ of a class is the default constructor (the standard