[Zope3-Users] how to use invariant/validator? (z3c.form=1.6 and z3c.formui=1.3)

Kai Krackler Mail_fuer_Kai at gmx.de
Fri Sep 21 11:16:04 EDT 2007


> Hi, can you please include a complete traceback to see where the  
> exception occurres?
> 
> -- 
> Yours sincerely,
> Michael Howitz
> 
> gocept gmbh & co. kg · forsterstrasse 29 · 06112 halle/saale
> www.gocept.com · fon: +49 345 12298898 · fax: +49 345 12298891
> 

Hi Michael,

thank you for your efforts!
I've just listed the last lines of traceback, because it's very long. If there is not enough information, I'll send the other part too of course.


traceback:
...
File "/home/kikr/buildout-eggs/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret
    handlers[opcode](self, args)
  File "/home/kikr/buildout-eggs/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py", line 623, in do_insertText_tal
    text = self.engine.evaluateText(stuff[0])
  File "/home/kikr/buildout-eggs/zope.tales-3.4.0a1-py2.4.egg/zope/tales/tales.py", line 704, in evaluateText
    text = self.evaluate(expr)
  File "/home/kikr/buildout-eggs/zope.tales-3.4.0a1-py2.4.egg/zope/tales/tales.py", line 696, in evaluate
    return expression(self)
   - /home/kikr/buildout-eggs/z3c.formui-1.3.0-py2.4.egg/z3c/formui/div-form.pt
   - Line 38, Column 12
   - Expression: <PathExpr standard:u'error/widget/label'>
   - Names:
      {'args': (),
       'context': <hapo.addressSearch.addressSearch.AddressSearch object at 0x2aaaaab2bc90>,
       'default': <object object at 0x2b2d6afae240>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': {},
       'request': <zc.resourcelibrary.publication.Request instance URL=http://localhost:8080/++skin++Z3CFormHapo/search.html>,
       'template': <zope.app.pagetemplate.viewpagetemplatefile.ViewPageTemplateFile object at 0x2b2d70dec9d0>,
       'view': <hapo.addressSearch.browser.views.AddressSearchEditForm object at 0x2aaaaab2bbd0>,
       'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x2aaaaab52dd0>}
  File "/home/kikr/buildout-eggs/zope.tales-3.4.0a1-py2.4.egg/zope/tales/expressions.py", line 217, in __call__
    return self._eval(econtext)
  File "/home/kikr/buildout-eggs/zope.tales-3.4.0a1-py2.4.egg/zope/tales/expressions.py", line 194, in _eval
    ob = self._subexprs[-1](econtext)
  File "/home/kikr/buildout-eggs/zope.tales-3.4.0a1-py2.4.egg/zope/tales/expressions.py", line 124, in _eval
    ob = self._traverser(ob, element, econtext)
  File "/home/kikr/buildout-eggs/zope.app.pagetemplate-3.4.0b1dev_r75616-py2.4.egg/zope/app/pagetemplate/engine.py", line 68, in __call__
    request=request)
  File "/home/kikr/buildout-eggs/tmpmMrIdt/zope.traversing-3.5.0a1.dev_r78730-py2.4.egg/zope/traversing/adapters.py", line 164, in traversePathElement
   - __traceback_info__: (<zope.interface.exceptions.Invalid instance at 0x2b2d6e6af440>, 'widget')
  File "/home/kikr/buildout-eggs/tmpmMrIdt/zope.traversing-3.5.0a1.dev_r78730-py2.4.egg/zope/traversing/adapters.py", line 49, in traverse
   - __traceback_info__: (<zope.interface.exceptions.Invalid instance at 0x2b2d6e6af440>, 'widget', ['label'])
TypeError: tuple indices must be integers


Kai


-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


More information about the Zope3-users mailing list