I originally posted this in toscawidgets-discuss, but, in looking a
little further, the error occurs in core.py in Pylons, but, I am not
quite sure where to start poking.
>From http://toscawidgets.org/documentation/tw.forms/tutorials/index.html
and
http://toscawidgets.org/documentation/tw.forms
On Sun, Sep 27, 2009 at 11:32 AM, cd34 wrote:
>
> I originally posted this in toscawidgets-discuss, but, in looking a
> little further, the error occurs in core.py in Pylons, but, I am not
> quite sure where to start poking.
>
> import tw.forms as twf
> movie_form = twf.TableForm('movie_form', a
On Sep 27, 3:48 pm, Mike Orr wrote:
> > �...@validate(movie_form, error_handler=index)
modified to:
@validate(form=movie_form, error_handler=index)
as listed on the docs - I missed the form=, however, even with that,
it doesn't change it.
http://turbogears.org/2.0/docs/main/ToscaWidgets/fo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 27 Sep 2009, at 22:35, cd34 wrote:
> @validate(form=movie_form, error_handler=index)
Working example here:
http://bitbucket.org/gjhiggins/shabti/src/tip/shabti/templates/microsite/+package+/controllers/pages.py_tmpl
(based on Pylons==0.9.7, T
On Sun, Sep 27, 2009 at 8:12 PM, Graham Higgins
wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> On 27 Sep 2009, at 22:35, cd34 wrote:
>
>> @validate(form=movie_form, error_handler=index)
>
>
> Working example here:
>
> http://bitbucket.org/gjhiggins/shabti/src/tip/shabti/template
On Sep 27, 11:12 pm, Graham Higgins wrote:
> http://bitbucket.org/gjhiggins/shabti/src/tip/shabti/templates/micros...
>
> (based on Pylons==0.9.7, ToscaWidgets>=0.9.4,
> tw.forms>=0.9.3dev-20090122)
Downgraded toscawidgets to 0.9.4, tw.forms to 0.9.3, same issue with
your code and my code. Wh
On Sep 28, 2:29 pm, cd34 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
./Temp
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 wrote:
> > Going to install a new virtualenv -- though, this one was very
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 28 Sep 2009, at 20:11, cd34 wrote:
> $ cat ../lib/python2.5/site-packages/easy-install.pth
I dunno if this helps but there seem to be three required libraries
missing from that list. Check Pylons' setup.py for the list of
install_requires a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 28 Sep 2009, at 20:23, Krishnakant wrote:
> Just a quick curious question.
> Very sorry to take this off track a bit, but Can't we do validations
> using toscawidgets?
Yes we can.
That's what I assumed the OP to be using, based on the reference
On Sep 28, 7:49 pm, Graham Higgins wrote:
> >> With this, and the code taken from toscawidget's tutorial
>
> which has explicitly:
>
> """
> In myapp/controllers/movie.py, add the following line:
>
> from tw.mods.pylonshf import validate
which is in my installation -- the entire controller with
On Sep 28, 7:39 pm, Graham Higgins wrote:
> I dunno if this helps but there seem to be three required libraries
> missing from that list. Check Pylons' setup.py for the list of
> install_requires and you'll see it includes:
>
> "Routes>=1.10.3", "WebHelpers>=0.6.4", "Beaker>=1.3dev",
> "Paste
replacing:
@validate(form=movie_form, error_handler=index)
with:
@validate(form=movie_form, error_handler='index')
Allows validation to work as expected. Since error_handler as
specified in the decorator is a function, it is rather obvious why it
fails.
file tw/mods/pylonshf.py (0.9.8-py2.5)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 29 Sep 2009, at 07:04, cd34 wrote:
> In order for the code to work properly by passing a function name to
> error_handler in the decorator, I would need to change the above to:
>
>if error_handler:
>environ = pylons.re
On Sep 29, 2:47 am, Graham Higgins wrote:
> Yes I have the same, needs a string. The issue is not with pylonshf.py
> but with the tw doc you were working from:
>
> >http://toscawidgets.org/documentation/tw.forms/tutorials/validate_pyl...
>
> It's wrong.
>
> I was lucky, I picked up tw a while a
15 matches
Mail list logo