John_Nowlan wrote: > Thanks for the help Alberto. > >> For the meantime, I've built those troublesome eggs without the C > speedups and uploaded them >> at toscawidgets.org. Can you try installing RuleDispatch before > installing twForms/ToscaWidgets >> like this: >> >> easy_install -f _http://toscawidgets.org/download/wo_speedups_ > RuleDispatch >> >> If it works please report back so I can mention it in the tutorial :) > > works!
Great! > > Note: easy_install twforms reports its installed, so did not reinstall. > > On with the tutorial > > paster serve... gives these deprecation warnings: > > (...) > > Should not be a problem for now, if I understand correctly. Not a problem, just me lazy :) I should update TW to DecoratorTools' new API... err, well, I'm actually planing to drop that dependecy so that will surely solve it. Nevermind those warnings for now. > > So I continue on. At > _http://wiki.pylonshq.com/display/toscawidgets/Using+twForms+with+Pylons.+Part+1#id13_ > I get this error: > > File > '../lib/python2.5/site-packages/Myghty-1.1-py2.5.egg/myghty/importer.py', > line 54 in import_module > return builtin_importer(name, globals, locals, fromlist) > File '../pylons/TWTutorial/twtutorial/controllers/tutorial.py', line 7 > in <module> > class TutorialController(BaseController): > File '../pylons/TWTutorial/twtutorial/controllers/tutorial.py', line 16 > in TutorialController > @validate(form=post_form, error_handler="index") > NameError: name 'post_form' is not defined > > Not sure if this line: @validate(form=post_form, error_handler="index") > should have post_form in quotes, > or if tutorial.py should have the line from: twtutorial.widgets import > post_form You should import post_form from twturial.widgets. Maybe I should reword that part so it is clearer... > > either works but then whenever I try and save I always get the 'You must > POST to this method, dummy!' msg. Hmmm, you did decorate the "save" method, didn't you? > :( > > Note that I'm running this behind a proxy, using 'proxy-prefix' in > development.ini. That shouldn't make a difference. I've deployed apps using TW and ProxyPrefix with no problems. > > Can't do it on my windows box until I get the sslerror problem figured out. I'm pretty sure that has something to do with Paste's http server. You could try narrowing down the problem by trying it with cherrypy's server, in development.ini change your server config so it looks like: [server:main] use = egg:PasteScript#cherrypy port = 5000 ... If this works then you know it has something to do with Paste's server and your system. Though it's weird since I'm pretty sure many people here must be using it in windows... Alberto --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
