[Zope3-dev] Granting permissions to roles in yesterdays CVS release
Adam Summers
adam@4js.com.au
Thu, 5 Jun 2003 15:18:51 +0800
Hi all,
Yesterday I got the CVS image of Zope3 and tried to add a product which
I was using previously (from a CVS image from abotu 1 month ago).
>From the Management Screens, went to Grant->"Grant Permissions to Roles"
and got the following error (below). Have I missed something?
Thanks and Regards,
Adam
Traceback (innermost last):
Module zope.publisher.publish, line 138, in publish
result = publication.callObject(request, object)
Module zope.app.publication.zopepublication, line 159, in callObject
return mapply(ob, request.getPositionalArguments(), request)
Module zope.publisher.publish, line 114, in mapply
return debug_call(object, args)
- __traceback_info__: <BoundPageTemplateFile of
<zope.app.publisher.browser.viewmeta.RolePermissionView object at
0x8e053b4>>
Module zope.publisher.publish, line 120, in debug_call
return object(*args)
Module zope.app.pagetemplate.viewpagetemplatefile, line 73, in
__call__
return self.im_func(self.im_self, template_usage, **kw)
Module zope.app.pagetemplate.viewpagetemplatefile, line 53, in
__call__
return self.pt_render(namespace)
Module zope.pagetemplate.pagetemplate, line 118, in pt_render
context, output, tal=not source, strictinsert=0)()
Module zope.tal.talinterpreter, line 171, in __call__
self.interpret(self.program)
Module zope.tal.talinterpreter, line 214, in interpret
handlers[opcode](self, args)
Module zope.tal.talinterpreter, line 664, in do_useMacro
self.interpret(macro)
Module zope.tal.talinterpreter, line 214, in interpret
handlers[opcode](self, args)
Module zope.tal.talinterpreter, line 384, in do_optTag_tal
self.do_optTag(stuff)
Module zope.tal.talinterpreter, line 369, in do_optTag
return self.no_tag(start, program)
Module zope.tal.talinterpreter, line 364, in no_tag
self.interpret(program)
Module zope.tal.talinterpreter, line 214, in interpret
handlers[opcode](self, args)
Module zope.tal.talinterpreter, line 687, in do_defineSlot
self.interpret(slot)
Module zope.tal.talinterpreter, line 214, in interpret
handlers[opcode](self, args)
Module zope.tal.talinterpreter, line 606, in do_loop_tal
self.interpret(block)
Module zope.tal.talinterpreter, line 214, in interpret
handlers[opcode](self, args)
Module zope.tal.talinterpreter, line 271, in do_startTag
ok, name, s = attrAction(self, item)
Module zope.tal.talinterpreter, line 338, in attrAction_tal
evalue = self.engine.evaluateText(item[3])
Module zope.tales.tales, line 642, in evaluateText
text = self.evaluate(expr)
Module zope.tales.tales, line 634, in evaluate
return expression(self)
-
/home/adam/Zope3/src/zope/app/browser/security/grants/manage_access.pt
- Line 41, Column 6
- Expression: <StringExpr 'r${repeat/role/index}'>
- Names:
{'args': (),
'context': <zope.app.content.folder.RootFolder object at
0x8ccbac4>,
'default': <object object at 0x84f2368>,
'loop': {},
'nothing': None,
'options': {'template_usage': u''},
'repeat': {},
'request': <<class 'zope.publisher.browser.BrowserRequest'>
instance at 0x8e049f4, URL=<zope.publisher.http.URLGetter instance at
0x8e5e01c>>,
'template':
<zope.app.pagetemplate.viewpagetemplatefile.ViewPageTemplateFile object
at 0x8bd27cc>,
'usage': <zope.pagetemplate.pagetemplate.TemplateUsage object at
0x877bb24>,
'view': <zope.app.publisher.browser.viewmeta.RolePermissionView
object at 0x8e053b4>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper
object at 0x8e07ebc>}
Module zope.tales.expressions, line 244, in __call__
v = var(econtext)
Module zope.tales.expressions, line 202, in __call__
return self._eval(econtext)
Module zope.tales.expressions, line 189, in _eval
ob = self._subexprs[-1](econtext)
Module zope.tales.expressions, line 124, in _eval
ob = self._traverser(ob, element, econtext)
Module zope.app.pagetemplate.engine, line 43, in zopeTraverser
request=getattr(econtext, 'request', None))
Module zope.app.traversing.adapters, line 176, in traverse
curr = traversePathElement(curr, name, path, request=request)
Module zope.app.traversing.adapters, line 231, in traversePathElement
next_item = traversable.traverse(nm, parms, name, further_path)
Module zope.app.traversing.adapters, line 57, in traverse
raise NotFoundError(subject, name)
NotFoundError: (<zope.tales.tales.Iterator object at 0x8e3229c>,
'index')
Adam Summers
Technical Consultant
FourJs Asia Pacific
adam@4js.com.au