[Zope] Using "Class-Hierarchies" in Zope
Fri, 06 Jun 2003 22:14:13 +0200
On 06.Jun 2003 - 20:49:25, Dieter Maurer wrote:
> Andreas Pakulat wrote at 2003-6-6 01:27 +0200:
> > ....
> > Got another problem with these both classes.
> > ...
> > Now I have a View Prop, which connects to A/propertysheets/Attributes,
> > but if I click on the Prop tab of my new instance I get the following
> > error:
> > exceptions.TypeError
> > 'in ' requires character as left operandTraceback (innermost last):
> > Module ZPublisher.Publish, line 150, in publish_module Module
> > ZPublisher.Publish, line 114, in publish Module ZPublisher.Publish, line
> > 98, in publish Module ZPublisher.mapply, line 88, in mapply Module
> > ZPublisher.Publish, line 39, in call_object Module
> > Shared.DC.Scripts.Bindings, line 252, in __call__ Module
> > Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module
> > App.special_dtml, line 174, in _exec Module DocumentTemplate.DT_In, line
> > 705, in renderwob Module DocumentTemplate.DT_In, line 705, in renderwob
> > Module DocumentTemplate.DT_Util, line 201, in eval - __traceback_info__:
> > getProperty Module , line 0, in ? TypeError: (see above)
> > Which is not very useful to me :(
> It's the same for us:
> Can you please tell your mail writer *not* to reflow the
No I cannot :( but the whole text is displayed on 1 line in zope!
> Beside the traceback, we need "Error type" and "Error value" to
> make up our mind.
It's both there: Excetion.TypeError and the value is "in requires
character as left operand"
> That said:
> Your request calls a "DTMLFile" object (the traceback unfortunately
> does not tell which one). It executes a "dtml-in" which
> contains a '... expr="...getProperty..."'.
> This "getProperty" is called with wrong parameters.
That I already knew.
> Find the DTMLFile, find the "getProperty" and decide why it is
> called in the wrong way.
And there's the problem. As said in the original Mail its a "Property"
Tab of a ZClass, which I created in the "View" Tab of the ZClass using
the ZClass/propertysheets/myproperties/manage. And I also said that it
only comes up if I have the multiple selection property in the
Propertysheet. So I told you everything I know and could find out
without help. I don't know much about all the Python-Classes in the
lib/python directory and I'm not able to find out which Method brings up
Beware of low-flying butterflies.