Re: appengine-monkey, Pylons, library support

2008-04-16 Thread Jorge Vargas
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 functions

Re: Routes 1.8 Release

2008-04-16 Thread Jorge Vargas
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 like a nice

simplejson 1.8.1 windows easy_install (compilation) failure

2008-04-16 Thread Marcin Kasperski
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

Re: simplejson 1.8.1 windows easy_install (compilation) failure

2008-04-16 Thread Alagu Madhu
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 Visual

Re: Auth and Auth

2008-04-16 Thread johnnyice
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

Re: simplejson 1.8.1 windows easy_install (compilation) failure

2008-04-16 Thread Florent Aide
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 (or maybe

Re: simplejson 1.8.1 windows easy_install (compilation) failure

2008-04-16 Thread Bob Ippolito
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

Re: Paginate module

2008-04-16 Thread blaf
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

Re: @validate split - code!

2008-04-16 Thread Jonathan Vanasco
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

Re: @validate split - code!

2008-04-16 Thread Mike Orr
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

Re: @validate split - code!

2008-04-16 Thread Jonathan Vanasco
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

Re: Auth and Auth

2008-04-16 Thread Eric Ongerth
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

Re: @validate split - code!

2008-04-16 Thread Jonathan Vanasco
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

Re: @validate split - code!

2008-04-16 Thread Mike Orr
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 refactoring: it's