Re: IDEs and Pylons applications

2007-02-01 Thread [EMAIL PROTECTED]
On 31 jan, 22:21, Christoph Haas [EMAIL PROTECTED] wrote: Hi, $ALL... I'm currently trying to rewrite the webhelpers.pagination module and sometimes find it hard to understand what each variable is set to and even what type it is. Sure, I can raise exceptions all the time as a poor man's

Re: What's the best way to provide a patch ?

2007-02-01 Thread James Gardner
Ben Bangert wrote: A diff attached to the Trac ticket as a file upload ending in .diff is ideal, along with a test case when appropriate. I'll try and remember to get this doc'd on the front page of the Wiki as well. I've followed up Alberto's suggestion of basing our doc on the TG

Re: AuthKit: support for encrypted passwords

2007-02-01 Thread James Gardner
Hi Josh, Josh Heitzman wrote: I dug around a bit. What Unix systems used to was called crypt. Some are currently a salt + MD5, but apparently the better algorithm is considered to be bcrypt, which includes a 128-bit salt and uses are variable cycle encryption algorithm. A python

Re: Authentication and Authorization Systems

2007-02-01 Thread James Gardner
Hi Uwe, Here is a complete Pylons auth system using SQLAlchemy and OpenID to get you started: http://authkit.org/trac/browser/AuthKit/trunk/examples/pylons/AuthDemo I've looked at the above example and I was wondering why there appears to be 3 separate persistence tools namely DBUtils,

Re: More on unicode

2007-02-01 Thread James Gardner
Hi Uwe, The translation should occur at run time so this shouldn't be a problem. How are you doing the translation? If you are using the Pylons _() function in the template everything should be fine surely? Cheers, James Uwe Feldtmann wrote: I've cross posted this on the Mako list as

Error with pylons app on newest Paste

2007-02-01 Thread Sean Davis
Hi, all. I just upgraded to paste 1.2 and started getting these errors. The same code works on paste 1.1.1. I can try posting to a paste list, if nothing obvious comes up here, as I think this is probably a Paste issue. Any thoughts? Thanks, sean Module pylons.error:*226* in respond

Re: Error with pylons app on newest Paste

2007-02-01 Thread Ian Bicking
Sean Davis wrote: Hi, all. I just upgraded to paste 1.2 and started getting these errors. The same code works on paste 1.1.1. I can try posting to a paste list, if nothing obvious comes up here, as I think this is probably a Paste issue. Any thoughts? Thanks, sean Module

Re: Error with pylons app on newest Paste

2007-02-01 Thread Ian Bicking
Ian Bicking wrote: *type 'exceptions.TypeError': readline() takes exactly 1 argument (2 given)* Dammit, I read the WSGI spec when changing paste.httpserver but forgot that there's an outstanding bug in it. Well, several bugs in it now. I'll make a 1.2.1 release shortly. I've put out a

Re: IDEs and Pylons applications

2007-02-01 Thread Shannon -jj Behrens
On 1/31/07, Christoph Haas [EMAIL PROTECTED] wrote: Hi, $ALL... I'm currently trying to rewrite the webhelpers.pagination module and sometimes find it hard to understand what each variable is set to and even what type it is. Sure, I can raise exceptions all the time as a poor man's way to

Re: More on unicode

2007-02-01 Thread Shannon -jj Behrens
On 1/31/07, Uwe Feldtmann [EMAIL PROTECTED] wrote: I've cross posted this on the Mako list as well. Now I'm not sure if this is a question for this list or the Mako list. The scenario:- A template contains translatable strings and is rendered by the Pylons controller via Mako. The

Re: ANN: Paste 1.2

2007-02-01 Thread Shannon -jj Behrens
Did any of my code make it in? Can I get a shout out from my homies in Paste land? ;) -jj On 1/31/07, Ian Bicking [EMAIL PROTECTED] wrote: Paste 1.2 - I'm happy to release Paste 1.2. This release contains a mix of small features and bug fixes. This is only a release of core

Re: Patch for webhelpers/pagination/orm.py to raise proper exception

2007-02-01 Thread Shannon -jj Behrens
On 1/31/07, Christoph Haas [EMAIL PROTECTED] wrote: On Wednesday 31 January 2007 09:12, Daniel NĂ©ri wrote: Note that raising of strings as exceptions is deprecated in Python 2.5[*] and triggers a warning. Thanks for the pointer. I already wondered why some people already use '''raise

Re: setting a cookie whether a redirect happens or not

2007-02-01 Thread Shannon -jj Behrens
On 1/29/07, Max Ischenko [EMAIL PROTECTED] wrote: Hello Shannon, Some time ago you wrote: I like to have a facility called action_results. It's a place where I can put amessagethat will show up on the next page. It should work whether aredirecthappens or not. In my old days, I use

Re: pylons controller's self vs. c global

2007-02-01 Thread Shannon -jj Behrens
On 1/29/07, Max Ischenko [EMAIL PROTECTED] wrote: From reading the docs at http://pylonshq.com/docs/0.9.4.1/module- pylons.controllers.html I assume that new controller instance is created to handle each incoming request and discarded after it is processed. This means I can safely set and

Re: Myghty - Mako?

2007-02-01 Thread Shannon -jj Behrens
On 1/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Aside from changing .myt to .mak do I need to do anything else? Is there a Mako replacement for myghty.exception? Max I should configure Mako as a supported template engine. Oh, yeah, been there, done that, checked out

Re: AuthKit: support for encrypted passwords

2007-02-01 Thread Josh Heitzman
On Feb 1, 7:09 am, James Gardner [EMAIL PROTECTED] wrote: This already exists actually. You just need to specify a custom valid_password() function (or digest_password() if you are using HTTP digest). It is documented here:http://authkit.org/docs/manual.html#basic-http-1-0-authentication

Re: More on unicode

2007-02-01 Thread Uwe Feldtmann
Hi James. James Gardner wrote: The translation should occur at run time so this shouldn't be a problem. How are you doing the translation? On closer inspection it doesn't seem to be a problem. I was thinking that the pre-compiled templates were what was being sent to the browser. My

Re: More on unicode

2007-02-01 Thread Uwe Feldtmann
Shannon -jj Behrens wrote: I don't think that the user's desired language affects how the page gets compiled. You are right. I wasn't thinking straight on this one. Too many late nights. --~--~-~--~~~---~--~~ You received this message because you are

Re: IDEs and Pylons applications

2007-02-01 Thread Jose Galvez
Has anyone ever used winpdb to debug pylons? anyone know how I might use it to debug my controllers? Jose Christoph Haas wrote: Hi, $ALL... I'm currently trying to rewrite the webhelpers.pagination module and sometimes find it hard to understand what each variable is set to and even what