Just a quick curious question. Very sorry to take this off track a bit, but Can't we do validations using toscawidgets? Happy hacking. Krishnakant.
On Mon, 2009-09-28 at 12:11 -0700, cd34 wrote: > On Sep 28, 2:29 pm, cd34 <[email protected]> wrote: > > Going to install a new virtualenv -- though, this one was very > > minimally changed, so, I'm not too hopeful. > > $ cat ../lib/python2.5/site-packages/easy-install.pth > import sys; sys.__plen = len(sys.path) > ./setuptools-0.6c9-py2.5.egg > ./Pylons-0.9.7-py2.5.egg > ./Tempita-0.2-py2.5.egg > ./WebTest-1.1-py2.5.egg > ./WebError-0.10.1-py2.5.egg > ./Mako-0.2.4-py2.5.egg > ./nose-0.10.4-py2.5.egg > ./decorator-3.0.0-py2.5.egg > ./PasteScript-1.7.3-py2.5.egg > ./PasteDeploy-1.3.3-py2.5.egg > ./Paste-1.7.2-py2.5.egg > ./Beaker-1.4.1-py2.5.egg > ./WebHelpers-0.6.4-py2.5.egg > ./Routes-1.10.3-py2.5.egg > ./Pygments-1.0-py2.5.egg > ./tw.forms-0.9.8-py2.5.egg > ./ToscaWidgets-0.9.8-py2.5.egg > import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; > p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p > +len(new) > > > With this, and the code taken from toscawidget's tutorial, the code > above, and Graham's code still result in AttributeError: 'function' > object has no attribute 'replace' when the validation must call the > index page to redisplay. > > Even with only toscawidgets installed, and sqlalchemy set to False > when I created the instance: > > URL: http://pch1.mia:8080/test/save > File '/var/www/twtest/lib/python2.5/site-packages/WebError-0.10.1- > py2.5.egg/weberror/evalexception.py', line 431 in respond > app_iter = self.application(environ, detect_start_response) > File '/var/www/twtest/lib/python2.5/site-packages/ToscaWidgets-0.9.8- > py2.5.egg/tw/core/middleware.py', line 43 in __call__ > return self.wsgi_app(environ, start_response) > File '/var/www/twtest/lib/python2.5/site-packages/ToscaWidgets-0.9.8- > py2.5.egg/tw/core/middleware.py', line 68 in wsgi_app > resp = req.get_response(self.application) > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1325 in > get_response > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1293 in > call_application > File '/var/www/twtest/lib/python2.5/site-packages/ToscaWidgets-0.9.8- > py2.5.egg/tw/core/resource_injector.py', line 68 in _injector > resp = req.get_response(app) > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1325 in > get_response > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1293 in > call_application > File '/var/www/twtest/lib/python2.5/site-packages/Beaker-1.4.1- > py2.5.egg/beaker/middleware.py', line 73 in __call__ > return self.app(environ, start_response) > File '/var/www/twtest/lib/python2.5/site-packages/Beaker-1.4.1- > py2.5.egg/beaker/middleware.py', line 152 in __call__ > return self.wrap_app(environ, session_start_response) > File '/var/www/twtest/lib/python2.5/site-packages/Routes-1.10.3- > py2.5.egg/routes/middleware.py', line 130 in __call__ > response = self.app(environ, start_response) > File '/var/www/twtest/lib/python2.5/site-packages/Pylons-0.9.7- > py2.5.egg/pylons/wsgiapp.py', line 125 in __call__ > response = self.dispatch(controller, environ, start_response) > File '/var/www/twtest/lib/python2.5/site-packages/Pylons-0.9.7- > py2.5.egg/pylons/wsgiapp.py', line 324 in dispatch > return controller(environ, start_response) > File '/var/www/twtest/twt/twt/lib/base.py', line 15 in __call__ > return WSGIController.__call__(self, environ, start_response) > File '/var/www/twtest/lib/python2.5/site-packages/Pylons-0.9.7- > py2.5.egg/pylons/controllers/core.py', line 221 in __call__ > response = self._dispatch_call() > File '/var/www/twtest/lib/python2.5/site-packages/Pylons-0.9.7- > py2.5.egg/pylons/controllers/core.py', line 172 in _dispatch_call > response = self._inspect_call(func) > File '/var/www/twtest/lib/python2.5/site-packages/Pylons-0.9.7- > py2.5.egg/pylons/controllers/core.py', line 107 in _inspect_call > result = self._perform_call(func, args) > File '/var/www/twtest/lib/python2.5/site-packages/Pylons-0.9.7- > py2.5.egg/pylons/controllers/core.py', line 60 in _perform_call > return func(**args) > File '<string>', line 2 in save > File '/var/www/twtest/lib/python2.5/site-packages/ToscaWidgets-0.9.8- > py2.5.egg/tw/mods/pylonshf.py', line 66 in wrapper > return self._dispatch_call() > File '/var/www/twtest/lib/python2.5/site-packages/Pylons-0.9.7- > py2.5.egg/pylons/controllers/core.py', line 160 in _dispatch_call > action_method = action.replace('-', '_') > AttributeError: 'function' object has no attribute 'replace' > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
