[Zope] Using "Class-Hierarchies" in Zope

Dieter Maurer dieter@handshake.de
Fri, 6 Jun 2003 20:49:25 +0200


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
  traceback.

  Beside the traceback, we need "Error type" and "Error value" to
  make up our mind.

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.

  Find the DTMLFile, find the "getProperty" and decide why it is
  called in the wrong way.


Dieter