Re: Using Django Forms with Pylons (and a successor to @validate?)

2009-10-02 Thread Mike Orr
On Fri, Oct 2, 2009 at 4:05 PM, Dan wrote: > > WTForms does this already: http://wtforms.simplecodes.com/ > > It uses the same pattern as Django forms, and might be a bit further > developed. That looks pretty elegant. It would obviate FormEncode, htmlfill, and the form helpers, it looks like.

Re: paster/beamer hangs forever

2009-10-02 Thread cd34
is lockd/statd running or an alternative dlm? NFS v4? On Oct 2, 7:21 am, Alvaro wrote: > when doing the setup for an aplication with paster (i.e: paster setup- > app test.ini) on a directory mounted over NFS the process is stuck > forever, hanging. > I believe there is a syscall for locking fil

Re: View Template Error

2009-10-02 Thread cd34
On Oct 2, 7:32 pm, Dan06 wrote: > rendering the template it was trying to create the 'data' directory. mako keeps a compiled version of the template in data/templates. If you use filebased sessions, they are written in data/sessions. --~--~-~--~~~---~--~~ You rec

Re: View Template Error

2009-10-02 Thread Dan06
On Oct 2, 5:40 pm, Philip Jenvey wrote: > Pylons sets mako and Beaker to write out its data to the data/   > directory in the root directory of your Pylons project. Obviously you   > don't have permissions to write to it for whatever reason. Fix the   > permissions problem or change the directory

Re: Using Django Forms with Pylons (and a successor to @validate?)

2009-10-02 Thread Marcus Cavanaugh
On Oct 2, 6:05 pm, Dan wrote: > WTForms does this already:http://wtforms.simplecodes.com/ > > It uses the same pattern as Django forms, and might be a bit further > developed. Cool, I had not heard of WTForms before. If it's well-maintained, then that's a win-win. --~--~-~--~~---

Re: Using Django Forms with Pylons (and a successor to @validate?)

2009-10-02 Thread Dan
WTForms does this already: http://wtforms.simplecodes.com/ It uses the same pattern as Django forms, and might be a bit further developed. On Oct 2, 10:17 pm, Mike Orr wrote: > On Fri, Oct 2, 2009 at 1:28 PM, Matt Feifarek wrote: > > On Fri, Oct 2, 2009 at 11:32 AM, Marcus Cavanaugh > > wrote

Re: View Template Error

2009-10-02 Thread Philip Jenvey
On Oct 2, 2009, at 1:17 PM, Dan06 wrote: > > I started pylons today and I'm following along with the pylons book. > I'm trying to render a simple template but continue to get: OSError: > [Errno 13] Permission denied: '/var/pylons_projects/bin/HelloWorld/ > data' Pylons sets mako and Beaker to w

View Template Error

2009-10-02 Thread Dan06
I started pylons today and I'm following along with the pylons book. I'm trying to render a simple template but continue to get: OSError: [Errno 13] Permission denied: '/var/pylons_projects/bin/HelloWorld/ data' Anyone know what's wrong? The url is: http:xxx.xxx.xxx.xxx:5000/hello/index The ind

paster/beamer hangs forever

2009-10-02 Thread Alvaro
Hi there, when doing the setup for an aplication with paster (i.e: paster setup- app test.ini) on a directory mounted over NFS the process is stuck forever, hanging. I believe there is a syscall for locking files that is not working due to the networked file system implementation. doing a strace

Re: Using Django Forms with Pylons (and a successor to @validate?)

2009-10-02 Thread Mike Orr
On Fri, Oct 2, 2009 at 1:28 PM, Matt Feifarek wrote: > On Fri, Oct 2, 2009 at 11:32 AM, Marcus Cavanaugh > wrote: >> >> I've switched to using django.forms with Pylons, and I really like the >> change so far. I've posted a writeup, and a drop-in module, on using >> django.forms with Pylons here:

Re: Using Django Forms with Pylons (and a successor to @validate?)

2009-10-02 Thread Matt Feifarek
On Fri, Oct 2, 2009 at 11:32 AM, Marcus Cavanaugh wrote: > > I've switched to using django.forms with Pylons, and I really like the > change so far. I've posted a writeup, and a drop-in module, on using > django.forms with Pylons here: > This looks great, Marcus. Every now and then a little fla

Re: Beaker error (Beaker 1.4.2 released)

2009-10-02 Thread Ben Bangert
On Oct 2, 2009, at 6:05 AM, Damian wrote: > Module beaker.cache:115 in get > << def get(self, key, **kw): > """Retrieve a cached value from the container""" > return self._get_value(key, **kw).get_value() > get_value = get > >>> return self._get_value(ke

Using Django Forms with Pylons (and a successor to @validate?)

2009-10-02 Thread Marcus Cavanaugh
I've switched to using django.forms with Pylons, and I really like the change so far. I've posted a writeup, and a drop-in module, on using django.forms with Pylons here: http://marcuscavanaugh.com/posts/pylons-django-forms/ Also, if django.forms isn't your thing but you still want to use FormEn

Pg West in two weeks (Seattle)

2009-10-02 Thread Joshua D. Drake
PostgreSQL Conference West is set to hit in two weeks! Running from October 16th-18th a Central Seattle Community College, this West is set to be the largest West Coast PostgreSQL conference to date. There is a fair amount of Python being discussed as well as a half day tutorial using Pylons an

Re: render is UNDEFINED in Pylons 0.9.7, was ok in 0.9.6

2009-10-02 Thread Moshe C.
That doesn't seem to work. I had to resort to this: <%namespace name="templating" module="pylons.templating"/> ${templating.render('mako', '/source/header.mako')} I also tested this issue on a newly paster created 0.9.7 helloworld instance. On Oct 1, 5:39 pm, Mike Orr wrote:

Re: Beaker error (Beaker 1.4.2 released)

2009-10-02 Thread Damian
Hi Ben, I've recently upgraded one of my busiest sites to use beaker 1.4.2 and I am getting an intermittent error: Module beaker.cache:115 in get << def get(self, key, **kw): """Retrieve a cached value from the container""" return self._get_value(key, **kw).get