On Wed, Apr 16, 2008 at 7:43 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> Mike-
>
> Any comments on this:
>
> http://pylonshq.com/pasties/775
It's just the kind of thing I was thinking about doing myself, so I'm
glad you did it first. :)
> the main thing i don't like about my refactorin
Mike-
Any comments on this:
http://pylonshq.com/pasties/775
sorry i killed the docstrings on that ;)
now you can call
validate_form( self, @validate args )
which returns true/false on form validation
the main thing i don't like about my refactoring: it's using some
caching to preserve inf
John, thanks for writing and sharing your Zero-to-Sixty. I read the
whole thing, and it makes Authkit look much easier to integrate and
get working than what the rumors seem to indicate I look forward to
reading part 3.
My one suggestion: your blog-format code windows are narrow and they
don't
> That solves another problem we have: how to trigger a form error in
> the action after the validator has passed.
exactly. that's been my motivation.
> Normally you don't want to decorators in non-decorator situations, so
> you'd need another function for this.
yeah... i might take a stab at
On Wed, Apr 16, 2008 at 3:52 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>
> I'm a little unclear on your goals, so the answer is yes and not
> really. ;)
>
> This refactoring will let the form validate as a decorator, and then
> allow you to cause an error within your pylons function
>
>
I'm a little unclear on your goals, so the answer is yes and not
really. ;)
This refactoring will let the form validate as a decorator, and then
allow you to cause an error within your pylons function
@validate( blah )
def stuff( self ):
# yay, form is valid
if not record_in_database('foo'):
One problem with @validate is the 'state' argument is useless unless
you're passing data that's the same for every request -- in which case
the data could be put in the validator itself and 'state' isn't
needed. But some interesting validators depend on the current
database record, or whether an
I took a stab today at splitting @validate in two
the code is pretty darn awful, but I'm hoping some people who are more
familiar with pylons can help whip this up:
a drop-in replacement for @validate is below , as is a new function
validation_error
the functionality is this:
@validate
has
Hi,
something strange appened... when using the keyword host in a Page
object:
c.page = h.Page(hosts, count=hosts.count(), page_nr=page_nr,
items_per_page=25, host=host)
I got an error in the link generation function:
${ c.page.pager('$link_first ~5~ $link_last') }
it tried to replace the beg
On Wed, Apr 16, 2008 at 11:46 AM, Florent Aide <[EMAIL PROTECTED]> wrote:
>
> On Wed, Apr 16, 2008 at 6:05 PM, Marcin Kasperski
> <[EMAIL PROTECTED]> wrote:
> >
> > Alagu Madhu <[EMAIL PROTECTED]> writes:
> >
> > > Please download simplejson-1.8.1-py2.5-win32.egg from
> > > http://turbog
On Wed, Apr 16, 2008 at 6:05 PM, Marcin Kasperski
<[EMAIL PROTECTED]> wrote:
>
> Alagu Madhu <[EMAIL PROTECTED]> writes:
>
> > Please download simplejson-1.8.1-py2.5-win32.egg from
> > http://turbogears.org/download/filelist.html
> >
>
> Yeah, I know. But couldn't somebody copy the same link
Alagu Madhu <[EMAIL PROTECTED]> writes:
> Please download simplejson-1.8.1-py2.5-win32.egg from
> http://turbogears.org/download/filelist.html
>
Yeah, I know. But couldn't somebody copy the same link
(or maybe even the files) to pylonshq.com download pages?
--~--~-~--~~
I just finished setting up Pylons 0.9.6 with AuthKit and SQLAlchemy
0.4.4. I decided to write a tutorial that will hopefully serve to
help others and avoid the same hair pulling that I went through. =)
Hopefully it makes sense, as most of the files are the FULL file, not
snippets. Let me know w
Please download simplejson-1.8.1-py2.5-win32.egg from
http://turbogears.org/download/filelist.html
On Apr 16, 5:12 pm, Marcin Kasperski <[EMAIL PROTECTED]>
wrote:
> Attempt to easy_install pylons 1.9.7beta on windows ends during
> simplejson 1.8.1 install with:
>
> C:\Program Files\Microsoft Vi
Attempt to easy_install pylons 1.9.7beta on windows ends during
simplejson 1.8.1 install with:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox
/MD /W3 /GX /DNDEBUG -Ic:\python25\include
-IC:\users\path-to-my-virtual-env\PC /Tcsimplejson/_speedups.c
/Fobuild\t
On Sun, Apr 6, 2008 at 11:51 PM, Damjan <[EMAIL PROTECTED]> wrote:
>
> > Previously, Routes used a ';' mark for an action in map.resource, like:
> > /comments/4;preview
> >
> > With 1.8, its now:
> > /comments/4/preview
>
> What exactly is the reason for this?
> I'm asking since ";" seemed
On Sun, Apr 13, 2008 at 6:33 PM, Ian Bicking <[EMAIL PROTECTED]> wrote:
>
> Hi all. I've been working on a project to provide some of the
> functionality that is missing from the App Engine environment:
>
>http://code.google.com/p/appengine-monkey/
>
> Currently this fairly modest set of f
17 matches
Mail list logo