Re: error with minimal template
Tonu Mikk <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <CABDFm8g+yySJykbY=xEAMDfF-ncxWXs1UjdHPLt2idtq1ccBNQ@mail.gmail.com> |
Thanks Ralf and John,
I went ahead and removed references to the keyword in page.html. I removed
the lines where the "keyword" appeared and also removed the entire menu
block for keywords. After doing this I accessed the trackers web interface
again and received this error. Running of the tracker based on the minimal
template is not a high priority for me. I am doing it for demonstration
and learning purposes. Thanks!
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/roundup/cgi/client.py", line 1181,
in renderContext
result = pt.render(self, None, None, **args)
File "/usr/lib/python2.7/site-packages/roundup/cgi/engine_zopetal.py",
line 92, in render
getEngine().getContext(c), output, tal=1, strictinsert=0)()
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 192, in __call__
self.interpret(self.program)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 666, in do_useMacro
self.interpret(macro)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 411, in do_optTag_tal
self.do_optTag(stuff)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 396, in do_optTag
return self.no_tag(start, program)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 391, in no_tag
self.interpret(program)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 632, in do_condition
self.interpret(block)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.7/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 606, in do_loop_tal
iterator = self.engine.setRepeat(name, expr)
File "/usr/lib/python2.7/site-packages/roundup/cgi/PageTemplates/TALES.py",
line 210, in setRepeat
expr = self.evaluate(expr)
File "/usr/lib/python2.7/site-packages/roundup/cgi/PageTemplates/TALES.py",
line 225, in evaluate
return expression(self)
File "/usr/lib/python2.7/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 193, in __call__
return self._eval(econtext)
File "/usr/lib/python2.7/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 181, in _eval
ob = self._subexprs[-1](econtext)
File "/usr/lib/python2.7/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 137, in _eval
ob = restrictedTraverse(ob, path, getSecurityManager())
File "/usr/lib/python2.7/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 323, in restrictedTraverse
o = object[name]
File "/usr/lib/python2.7/site-packages/roundup/cgi/templating.py", line
808, in __getitem__
prop = self._props[items[0]]
KeyError: 'queries'
On Sun, Sep 9, 2018 at 3:32 AM, Ralf Schlatterbeck <[email protected]> wrote:
> On Sat, Sep 08, 2018 at 10:03:02AM -0400, John P. Rouillard wrote:
> > At the top of page.html I see:
> >
> > kw_edit python:request.user.hasPermission('Edit', 'keyword');
> >
> > If 'keyword' doesn't exist, will calling hasPermission throw an error?
> > (Arguably it should return no permission and not throw an exception,
> > but the exception makes sure that typoing a field name doesn't cause a
> > silent failure.)
>
> If I remember correctly, this wasn't the case but maybe there is
> a check now that makes it fail. I think my recent patch to the
> history computation was also triggered by a permission check to
> an unknown entity (the given nodeid didn't have a corresponding item
> in the DB). So some permission checks definitely require the checked
> item and/or class to exist.
>
> > Going forward for the release I think we should remove the keyword
> > references in the template since the minimal template is not supposed
> > to support keywords out of the box.
> Yes.
>
> Given the recent bug-fixes to 1.6 and the fact that we already have a
> release brach we may want to do a maintenance release before the
> next major relase...
>
> Ralf
> --
> Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
> Open Source Consulting www: http://www.runtux.com
> Reichergasse 131, A-3411 Weidling email: [email protected]
>
>
> _______________________________________________
> Roundup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/roundup-users
>
--
Tonu Mikk
Adaptive Technologist | Disability Resource Center |
diversity.umn.edu/disability
University of Minnesota | umn.edu
[email protected] | 612-625-3307
_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users