# In lib/base.py
from breve.plugin.pylons_adapter import render
# in my reviews/index call í get the error:
NameError: global name 'render' is not defined
# if i put the import my controller i get
ImportError: No module named pylons.adapter
I can understand that the pylons application is not importing the
render function. but what i dont have a clue about is why?
Zen
unread,
Sep 22, 2009, 3:13:39 PM9/22/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to brevé template engine
Hi, i got it solved with help from the #pylons people
I had used the paster controler <new controller> before i had imported
render in my base.py controller.
by adding from yourapp import BaseController, render
solved my issue.
cwells
unread,
Oct 21, 2009, 11:36:04 PM10/21/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to brevé template engine
Sorry I missed your question, I just discovered that for some reason
google groups decided to stop sending me mail :P