[Zope3-Users] Re: Refreshing possible yet?

2006-11-06 Thread George Lee
Philipp von Weitershausen <[EMAIL PROTECTED]> writes: > > To answer the question right away: No. Didn't Dieter Mauer have a nice product that enabled refreshing as long as the correct dependencies were specified? How could I get a hold of this? Peace, George __

[Zope3-Users] Re: File structure: interface and interfaces

2006-09-26 Thread George Lee
Philipp von Weitershausen <[EMAIL PROTECTED]> writes: > > George Lee wrote: > > What is the best practice for where to put interface definitions? Inside an > > interfaces.py, a browser/interfaces.py? > > We prefer to put public interfaces into package.interfa

[Zope3-Users] Writing tests for views

2006-09-23 Thread George Lee
I am trying to write a test for a view, and making sure that an object I've created is associated with the correct view. But either of these lines fails with a ComponentLookupError "Couldn't find view": view = getView(self.event1, 'daterange_display', self.request) view = getViewProviding(self.eve

[Zope3-Users] Re: Using dotted package names

2006-09-23 Thread George Lee
> That entirely depends on how independent you want to keep philikon.a > from philikon.b. But that question also arises when having just a and b. Is it possible/typical/advised to have a base set of functionality in philikon, and then be developing separate packages philikon.a and philikon.b down

[Zope3-Users] File structure: interface and interfaces

2006-09-23 Thread George Lee
What is the best practice for where to put interface definitions? Inside an interfaces.py, a browser/interfaces.py? In Zope2 often I had used an "interfaces" (with an s) directory. Should a directory be called "interface" instead, as it is in zope.app? What is the logic of the choice of using int

[Zope3-Users] Re: Using dotted package names

2006-09-23 Thread George Lee
> > What is the purpose of using the dotted name? > > Short answer: package namespaces. > > Long answer: Say you're creating a widget library. You could call your > package simply "widget". But then if I create a widget library and > called it "widget", too, we'd have a conflict and couldn't us

[Zope3-Users] Using dotted package names

2006-09-23 Thread George Lee
Hi, I am trying to be a good programmer and create pure Zope packages instead of Plone products when possible. How do dotted package names (like plone.portlets or dotted.name) work? In \zopeinstance\lib\python, is the package actually in \zopeinstance\lib\python\dotted.name, or is it in \zopeinst

[Zope3-Users] Local override on a view

2006-09-17 Thread George Lee
If view V adapts interface I1 to interface I2, how do I allow a local site inside my Zope instance to use view W to adapt I1 to I2 instead? Register a local view? Use overrides.zcml? I cannot find documentation on these options, just scattered references to them. Peace, George __

[Zope3-Users] Adapter lookup given object with multiple candidate interfaces

2006-09-17 Thread George Lee
If an object X implements both interfaces I1 and I2, how does an adapter Y which can either map from I1->I3 or I2->I3 determine Y(X)? Peace, George ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users