Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
template problem with Jython
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jlist9  
View profile  
 More options Aug 31 2012, 5:55 am
From: jlist9 <jli...@gmail.com>
Date: Fri, 31 Aug 2012 02:55:50 -0700
Local: Fri, Aug 31 2012 5:55 am
Subject: template problem with Jython

Hi all,

I'm trying to use web.py with Jython running on tomcat via modjy. A simple
URL handler works but I've been having some issues with using templates.

In the sample code I have a render.hello("world") call in the URL handler
but the template.py fails to find the template file. I traced into
template.py
and found out that the __getattr__ method of Render actually got called
twice. The first time with the correct "hello" value for the name argument
but the second time with "__repr__" string for name. My guess was it
had something to do with class or template reloading. When I tried
setting web.config.debug=False I started to get internal server errors
from Tomcat. The part that really confuses me is that the first __getattr__
call continues to the end of the method but when __getattr__ gets called
the second time it didn't reach the rest of the code (I have warnings.warn()
calls that never get called in the second __getattr__ invocation.)

Any idea why this is happening?

Thanks,
Jack


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »