[Grok-dev] ListSequenceWidget - How to change the sequence

Sascha Boch sascha.boch at gmx.de
Thu Jul 22 05:15:55 EDT 2010


That looks promising. However (again...), I run into the next issue. It 
seems there is a problem with hurry.resource:

URL: /srv/foo/src/foo/custom_edit_form.pt
File 
'/root/.buildout/eggs/Paste-1.7.2-py2.6.egg/paste/evalexception/middleware.py', 
line 306 in respond
  app_iter = self.application(environ, detect_start_response)
File 
'/root/.buildout/eggs/zope.app.wsgi-3.6.1-py2.6.egg/zope/app/wsgi/__init__.py', 
line 59 in __call__
  request = publish(request, handle_errors=handle_errors)
File 
'/root/.buildout/eggs/zope.publisher-3.12.3-py2.6.egg/zope/publisher/publish.py', 
line 134 in publish
  result = publication.callObject(request, obj)
File '/root/.buildout/eggs/grok-1.1.1-py2.6.egg/grok/publication.py', line 
89 in callObject
  return super(ZopePublicationSansProxy, self).callObject(request, ob)
File 
'/root/.buildout/eggs/zope.app.publication-3.10.2-py2.6.egg/zope/app/publication/zopepublication.py', 
line 205 in callObject
  return mapply(ob, request.getPositionalArguments(), request)
<Foo.app.FooEditForm object at 0x2783610>
File 
'/root/.buildout/eggs/zope.publisher-3.12.3-py2.6.egg/zope/publisher/publish.py', 
line 109 in mapply
  return debug_call(obj, args)
File 
'/root/.buildout/eggs/zope.publisher-3.12.3-py2.6.egg/zope/publisher/publish.py', 
line 115 in debug_call
  return obj(*args)
File 
'/root/.buildout/eggs/grokcore.formlib-1.5-py2.6.egg/grokcore/formlib/components.py', 
line 91 in __call__
  return self.render()
File 
'/root/.buildout/eggs/grokcore.formlib-1.5-py2.6.egg/grokcore/formlib/components.py', 
line 74 in render
  self.form_result = self._render_template()
File 
'/root/.buildout/eggs/grokcore.view-1.13.2-py2.6.egg/grokcore/view/components.py', 
line 104 in _render_template
  return self.template.render(self)
File 
'/root/.buildout/eggs/grokcore.view-1.13.2-py2.6.egg/grokcore/view/components.py', 
line 245 in render
  return template.pt_render(namespace)
File 
'/root/.buildout/eggs/zope.pagetemplate-3.5.0-py2.6.egg/zope/pagetemplate/pagetemplate.py', 
line 115 in pt_render
  strictinsert=0, sourceAnnotations=sourceAnnotations)()
File 
'/root/.buildout/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py', 
line 271 in __call__
  self.interpret(self.program)
File 
'/root/.buildout/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py', 
line 343 in interpret
  handlers[opcode](self, args)
File 
'/root/.buildout/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py', 
line 821 in do_loop_tal
  self.interpret(block)
File 
'/root/.buildout/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py', 
line 343 in interpret
  handlers[opcode](self, args)
File 
'/root/.buildout/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py', 
line 533 in do_optTag_tal
  self.do_optTag(stuff)
File 
'/root/.buildout/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py', 
line 518 in do_optTag
  return self.no_tag(start, program)
File 
'/root/.buildout/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py', 
line 513 in no_tag
  self.interpret(program)
File 
'/root/.buildout/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py', 
line 343 in interpret
  handlers[opcode](self, args)
File 
'/root/.buildout/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py', 
line 742 in do_insertStructure_tal
  structure = self.engine.evaluateStructure(expr)
Line 52, Column 16
In expression: <PathExpr standard:u'widget'>
   - Names:
      {'args': (),
       'context': <foo.app.foo object at 0x29efaa0>,
       'default': <object object at 0x7f4a2fe79ac0>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': {},
       'request': <zope.publisher.browser.BrowserRequest instance 
URL=http://localhost:8020/Foo/admin>,
       'static': <grokcore.view.components.DirectoryResource object 
at 0x2783850>,
       'template': <grokcore.view.components.TrustedFilePageTemplate 
object at 0x3514150>,
       'view': <foo.app.FooEditForm object at 0x2783610>}
File '/root/.buildout/eggs/zope.tales-3.5.0-py2.6.egg/zope/tales/tales.py', 
line 696 in evaluate
  return expression(self)
File 
'/root/.buildout/eggs/zope.tales-3.5.0-py2.6.egg/zope/tales/expressions.py', 
line 217 in __call__
  return self._eval(econtext)
File 
'/root/.buildout/eggs/zope.tales-3.5.0-py2.6.egg/zope/tales/expressions.py', 
line 211 in _eval
  return ob()
File 
'/usr/local/lib/python2.6/site-packages/z3c.listjs-1.0b1-py2.6.egg/z3c/listjs/widget.py', 
line 25 in __call__
  listjs_js.need()
File 
'/usr/local/lib/python2.6/site-packages/hurry.resource-0.9-py2.6.egg/hurry/resource/core.py', 
line 113 in need
  interfaces.ICurrentNeededInclusions)()
File 
'/root/.buildout/eggs/zope.component-3.9.1-py2.6.egg/zope/component/_api.py', 
line 171 in getUtility
  raise ComponentLookupError(interface, name)
ComponentLookupError: (<InterfaceClass 
hurry.resource.interfaces.ICurrentNeededInclusions>, '')

Is it related to my installation? I had to install z3c.listjs with 
easy_install. Buildout would not do it if I included it in the requirements 
section of setup.py. Therefore, I have some eggs in /usr/local/lib/... vs. 
the .buildout directory.
        
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20100722/cbd25bc6/attachment.html 


More information about the Grok-dev mailing list