On Jul 16, 2007, at 2:40 PM, Jose Galvez wrote:
Sure, First I was testing with pylons-0.9.6rc2dev_r2256-py2.5.eggThe project was created with pylons 0.9.4.1 and then converted after installing rc2 using overwrite the test project was not installed using easy_install simply created and run from the created egg
Ah, when converting projects I highly recommend using the diff option with paster, then backing up the old file and merging changes. This way you don't miss important things, which happened in your case.
my controller is:
from rc.lib.base import *
class MainController(BaseController):
def index(self):
res = Response()
res.write('hello world')
return res
def template(self):
return render_response('/main.html')
Check your lib.base file, I'm guessing you let it override it, and new projects do not import the Response or render_response, which is the cause of your other errors. These objects however are still present in pylons, and adding them to the big from pylons import.... block should have you rolling again.
Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
