Skip Menu |

This queue is for tickets about the Tenjin CPAN distribution.

Report information
The Basics
Id: 107514
Status: rejected
Priority: 0/
Queue: Tenjin

People
Owner: IDOPEREL [...] cpan.org
Requestors: mnl [...] mnl.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: include and keywords
Date: Fri, 2 Oct 2015 23:02:03 +0200
To: bug-Tenjin [...] rt.cpan.org
From: Michael Lipp <mnl [...] mnl.de>
Hi, I think I have found a problem. I have a template with an argument "portal". I want to include another template and pass that argument on. This results in: <?py include("sub.pyhtml", portal=portal) ?> This results in an error: ERROR: (<type 'exceptions.KeyError'>) 'portal' File "/home/mnl/ownCloud/devel/CircuitsMinimalPortal/circuits_minpor/utils/misc.py", line 68, in serve_tenjin response.body = engine.render(path, context, globals = globs) File "/usr/lib/python2.7/site-packages/Tenjin-1.1.1-py2.7.egg/tenjin.py", line 1972, in render content = template.render(context, globals) File "/usr/lib/python2.7/site-packages/Tenjin-1.1.1-py2.7.egg/tenjin.py", line 991, in render exec(self.bytecode, globals, locals) File "/home/mnl/ownCloud/devel/CircuitsMinimalPortal/circuits_minpor/portal/../templates/portal.pyhtml", line 103, in <module> tab=selected, portlets=portal.portlets, locales=locales) ?> File "/usr/lib/python2.7/site-packages/Tenjin-1.1.1-py2.7.egg/tenjin.py", line 1944, in include del context[k] Regards, Michael
Subject: Fwd: [rt.cpan.org #107514] AutoReply: include and keywords
Date: Fri, 2 Oct 2015 23:39:09 +0200
To: bug-Tenjin [...] rt.cpan.org
From: Michael Lipp <mnl [...] mnl.de>
Sorry, close this ("INVALID"). It's something different. Some problem with the included template that I don't understand yet. Show quoted text
-------- Weitergeleitete Nachricht -------- Betreff: [rt.cpan.org #107514] AutoReply: include and keywords Datum: Fri, 2 Oct 2015 17:02:20 -0400 Von: Bugs in Tenjin via RT <bug-Tenjin@rt.cpan.org> Antwort an: bug-Tenjin@rt.cpan.org An: mnl@mnl.de Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "include and keywords", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #107514]. Your ticket is accessible on the web at: https://rt.cpan.org/Ticket/Display.html?id=107514 Please include the string: [rt.cpan.org #107514] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-Tenjin@rt.cpan.org ------------------------------------------------------------------------- Hi, I think I have found a problem. I have a template with an argument "portal". I want to include another template and pass that argument on. This results in: <?py include("sub.pyhtml", portal=portal) ?> This results in an error: ERROR: (<type 'exceptions.KeyError'>) 'portal' File "/home/mnl/ownCloud/devel/CircuitsMinimalPortal/circuits_minpor/utils/misc.py", line 68, in serve_tenjin response.body = engine.render(path, context, globals = globs) File "/usr/lib/python2.7/site-packages/Tenjin-1.1.1-py2.7.egg/tenjin.py", line 1972, in render content = template.render(context, globals) File "/usr/lib/python2.7/site-packages/Tenjin-1.1.1-py2.7.egg/tenjin.py", line 991, in render exec(self.bytecode, globals, locals) File "/home/mnl/ownCloud/devel/CircuitsMinimalPortal/circuits_minpor/portal/../templates/portal.pyhtml", line 103, in <module> tab=selected, portlets=portal.portlets, locales=locales) ?> File "/usr/lib/python2.7/site-packages/Tenjin-1.1.1-py2.7.egg/tenjin.py", line 1944, in include del context[k] Regards, Michael
Subject: Fwd: [rt.cpan.org #107514] AutoReply: include and keywords
Date: Sat, 3 Oct 2015 00:00:11 +0200
To: bug-Tenjin [...] rt.cpan.org
From: Michael Lipp <mnl [...] mnl.de>
Sorry again, but there is a problem after all. The misleading point is that the problem is reported for the top level template. In my scenario, I forward the argument over three level. t1.pyhtml (top) includes t2.pyhtml and t2.pyhtml includes t3.pyhtml. All templates have portal as argument and each include statement has portal=portal. If I change the name of the argument of t3.pyhtml (e.g. to "portale") and adapt the include in t2.pyhtml accordingly the problem disappears. Regards, Michael Show quoted text
-------- Weitergeleitete Nachricht -------- Betreff: [rt.cpan.org #107514] AutoReply: include and keywords Datum: Fri, 2 Oct 2015 17:02:20 -0400 Von: Bugs in Tenjin via RT <bug-Tenjin@rt.cpan.org> Antwort an: bug-Tenjin@rt.cpan.org An: mnl@mnl.de Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "include and keywords", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #107514]. Your ticket is accessible on the web at: https://rt.cpan.org/Ticket/Display.html?id=107514 Please include the string: [rt.cpan.org #107514] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-Tenjin@rt.cpan.org ------------------------------------------------------------------------- Hi, I think I have found a problem. I have a template with an argument "portal". I want to include another template and pass that argument on. This results in: <?py include("sub.pyhtml", portal=portal) ?> This results in an error: ERROR: (<type 'exceptions.KeyError'>) 'portal' File "/home/mnl/ownCloud/devel/CircuitsMinimalPortal/circuits_minpor/utils/misc.py", line 68, in serve_tenjin response.body = engine.render(path, context, globals = globs) File "/usr/lib/python2.7/site-packages/Tenjin-1.1.1-py2.7.egg/tenjin.py", line 1972, in render content = template.render(context, globals) File "/usr/lib/python2.7/site-packages/Tenjin-1.1.1-py2.7.egg/tenjin.py", line 991, in render exec(self.bytecode, globals, locals) File "/home/mnl/ownCloud/devel/CircuitsMinimalPortal/circuits_minpor/portal/../templates/portal.pyhtml", line 103, in <module> tab=selected, portlets=portal.portlets, locales=locales) ?> File "/usr/lib/python2.7/site-packages/Tenjin-1.1.1-py2.7.egg/tenjin.py", line 1944, in include del context[k] Regards, Michael
Sorry for the extremely long reply. Your bug is about the Python version of Tenjin, but you reported it to the Tenjin version, which is unrelated.