Re: How to remove SA mods.threadlocal and objectstore

2006-09-29 Thread Michael G. Noll
Joe wrote: > This appears to work and I'm able to edit a wiki page and it appears to > save it, but it doesn't really. The problem is that in page.py, the > __before__() and delete() methods use objecstore. Are you explicitly saving [1] newly created objects (such as your wiki page) to the SQLAl

Re: Updated QuickWiki

2006-09-29 Thread Michael G. Noll
James Gardner wrote: > How about I re-write the new QuickWiki to use explicit sessions and > write a QuickWiki Part II which goes on to discuss the following: > [snipp table of contents] > If enough people think it would be useful I'll make a start. This is a nice idea, James. Your proposed table

Issue with Unicode and webhelpers.rails.tags (possible fix included)

2006-10-09 Thread Michael G. Noll
It seems I discovered an issue with handling Unicode strings in the WebHelpers version 0.2.1 (Pylons 0.9.2) which causes problems with methods such as h.text_field(). When testing with Japanese and other "exotic" characters, I ended up with error messages similar to: > Error(UnicodeEncodeError):

Re: Issue with Unicode and webhelpers.rails.tags (possible fix included)

2006-10-11 Thread Michael G. Noll
Ben Bangert wrote: > This has been fixed in WebHelpers svn. Please feel free to add tickets > for these in the future since it can be tricky for me to watch the mail > list for bug fixes. Sure, Ben. Will do in the future. > Paste now has a trac back up: http://paste.groovie.org/pythonpaste/ > >

Re: Session / cookie timeout

2006-10-11 Thread Michael G. Noll
On Oct 11, 9:26 pm, "Jon Rosebaugh" <[EMAIL PROTECTED]> wrote: > If you put myghty['session_cookie_expires'] = False in your > environment.py, the cookie should have the maximum lifetime permitted > by the standard. Jon's advice on how to set cookie lifetime to the maximum value is correct, as

Re: Issue with Unicode and webhelpers.rails.tags (possible fix included)

2006-10-13 Thread Michael G. Noll
Ben Bangert wrote: > Paste now has a trac back up: http://paste.groovie.org/pythonpaste/ > > So feel free to report any bugs like this in Paste there so we can make > sure we get to them. Maybe it's just me, but in contrast to Pylons' Trac I simply cannot find a user registration link on Paste's

Re: Status Code Other than 200?

2006-10-21 Thread Michael G. Noll
Another variant for creating a non-200 response.# create a new Response with content-type header 'application/xml'response = Response(render("template.myt"), code=204)response.headers['Content-Type'] = 'application/xml' return responseMichael --~--~-~--~~~---~--~~ Y

Re: Pylons 0.9.3 Released!

2006-11-03 Thread Michael G. Noll
I'm about to upgrade to 0.9.3. Thanks for all the hard work, guys!Michael --~--~-~--~~~---~--~~  You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com

Re: pylonshq.com became slower again

2006-12-01 Thread Michael G. Noll
On Dec 1, 8:13 pm, Ben Bangert <[EMAIL PROTECTED]> wrote: > I've changed some settings for the Trac/Apache install regarding > conditional gzipping we had Apache2 doing on the output. For those > that were experiencing slowness, can you check to see if thats still > present? Works great here. W

JavaScript error when using Pylons, WebHelpers and Mako

2007-05-03 Thread Michael G. Noll
Hi all, I'm currently building a new Pylons project and started to use Mako instead of Myghty for templating. For the record, I'm running Pylons 0.9.5, Mako 0.1.5 and WebHelpers 0.3 on an Ubuntu Linux 7.04 box with Python 2.5. Background: In one of my Mako templates, I want to include some (sim

Re: JavaScript error when using Pylons, WebHelpers and Mako

2007-05-06 Thread Michael G. Noll
On May 5, 10:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I guess the OP's problem comes from not having called > h.javascript_include_tag('prototype') > before...http://pylonshq.com/WebHelpers/module-webhelpers.rails.asset_tag.html... Doh, that's true. When copy-pasting from one o

Re: Alternative paginator

2007-05-10 Thread Michael G. Noll
Hi Christoph, first of all, thanks for your work on an alternative paginator. I'm currently testing it, and I am pleased so far :-) However, I found one bug and a minor documentation error for the module available at http://workaround.org/pylons/paginator/paginate.py. Bug === The relevant

Re: Alternative paginator

2007-05-11 Thread Michael G. Noll
On May 11, 11:04 am, Christoph Haas <[EMAIL PROTECTED]> wrote: > If others are happy with the API as it is I'd be happy to see it > included as an alternative module in the webhelpers. I'm happy with it so far. ;-) Though I have not tested it yet with regard to scalability in practice, a big b

Re: Session persistence

2007-05-20 Thread Michael G. Noll
On 5/20/07, voltron <[EMAIL PROTECTED]> wrote: > > In a load-balanced situation, one would have to persist somehow. It's funny to read this after today's Dilbert strip ;-) http://www.dilbert.com/comics/dilbert/archive/dilbert-20070520.html Michael --~--~-~--~~~---

Re: abort(), detail and the error controller

2007-05-26 Thread Michael G. Noll
On 5/26/07, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > Yep, I've encountered this same difficulty. In your case, probably > the best thing to do is to do a render_response using an error > template. I've been doing the same thing: template + render_response/Response with "code" parameter

Re: Pylons Logo Design

2007-06-04 Thread Michael G. Noll
On 6/2/07, Mike Orr <[EMAIL PROTECTED]> wrote: > > > Why is it called Pylons anyway? I thought a pylon was a large metal > beam (girder), so as a building block it made sense. Maybe Ben is a Starcraft fan. ;-) More seriously, I actually wonder in which direction *Ben* sees Pylons heading on thi

Re: AuthKit Authorization Manager?

2007-06-13 Thread Michael G. Noll
On Jun 13, 9:28 pm, voltron <[EMAIL PROTECTED]> wrote: > Since both of you have AuthKit working, how does one set a session for > an authenticated user? How do you set the REMOTE_USER? I thought of > creating a session variable like "isauthenticated = True" but it has > to be set after REMOTE_US

Re: [RFC] Alternative paginator

2007-06-16 Thread Michael G. Noll
Thanks, Christoph! I'm using the paginator for a while now, and I really like it :-) -- Michael On 6/15/07, Christoph Haas <[EMAIL PROTECTED]> wrote: > > > On Fri, Jun 15, 2007 at 09:26:00PM +0200, Christoph Haas wrote: > > I have added support for jQuery, too. > > UPDATE: the jQuery enabled v

Re: going "off line"

2007-06-16 Thread Michael G. Noll
On 6/15/07, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > Wish me luck with my fourth child which is due in two weeks! > My best wishes and congratulations in advance. I guess you will enjoy the upcoming weeks! -- Michael --~--~-~--~~~---~--~~ You received thi

Re: Authkit - open_id - paste.auth_tkt.set_user

2007-08-02 Thread Michael G. Noll
On Jul 11, 3:38 am, michael <[EMAIL PROTECTED]> wrote: > I thought maybe I was passing it that way so tried tousername.decode("ascii") > before calling > request.environ['paste.auth_tkt.set_user'](username). did not work. > > I realize that not all usernames will be ascii, so I am raising the > i

Re: Authkit - open_id - paste.auth_tkt.set_user

2007-08-02 Thread Michael G. Noll
Any updates regarding this issue? I ran into the same problems after migrating projects from Pylons 0.9.5 to 0.9.6rc2-dev and from AuthKit 0.3 to 0.4. -- Michael On Jul 11, 7:42 am, Ben Bangert <[EMAIL PROTECTED]> wrote: > On Jul 10, 2007, at 6:38 PM, michael wrote: > > It did not take long to