Re: authauth middleware details

2008-12-11 Thread Dalius Dobravolskas
Maybe I have better solution, without session. Add to login form hidden fieled input type=hidden name=if_error_back_to value=/panel/login / That will not work on @authorize decorator. The problem is that we have more than one path how /process is reached. I'm adding loginurl function. --

Re: authauth middleware details

2008-12-11 Thread Tomasz Narloch
Tomasz Narloch pisze: Dalius Dobravolskas pisze: def loginurl_by_context(environ): if environ['beaker.session'].startswith('/panel'): Error in my code: if environ['beaker.session']['referer'].startswith('/panel'): return '/panel/login' else:

Re: nosetests self.app.post == self.app.get?

2008-12-11 Thread crown.hg
comment @validate ,nosetests succeed. [EMAIL PROTECTED](form=create_form, error_handler=new) How WebTest and @validate(or formencode) at the same time so that work? On Dec 11, 1:51 am, crown.hg [EMAIL PROTECTED] wrote:     def test_create(self):         response = self.app.post(            

Re: authauth middleware details

2008-12-11 Thread Tomasz Narloch
Dalius Dobravolskas pisze: Maybe I have better solution, without session. Add to login form hidden fieled input type=hidden name=if_error_back_to value=/panel/login / That will not work on @authorize decorator. The problem is that we have more than one path how /process is reached. I'm

Re: authauth middleware details

2008-12-11 Thread Dalius Dobravolskas
Hello, Tomasz, I have updated code now: http://hg.sandbox.lt/authform-middleware/rev/50e261dbd126 Okey, I don't know authorize as good as you. Authentication ;-) But how can you check referer for prefix: referer: /order/index2 = translate to /order/login referer: /admin/ =

Deploying Pylons project

2008-12-11 Thread Pavel Skvazh
I've faced deploying of my project. And some issues came up. I'm developing on the windows mashine and editing the hosts file allowed me make server visible on the www.localhost.com so all Routes subdomains features work just fine. When I try to deploy on the debian mashine, I've got my server

Re: authauth middleware details

2008-12-11 Thread Tomasz Narloch
Dalius Dobravolskas pisze: Hello, Tomasz, I have updated code now: http://hg.sandbox.lt/authform-middleware/rev/50e261dbd126 Okey, I don't know authorize as good as you. Authentication ;-) But how can you check referer for prefix: referer: /order/index2 = translate to

Re: Deploying Pylons project

2008-12-11 Thread Wichert Akkerman
Previously Pavel Skvazh wrote: Can you please point me in the direction the real world pylons apps are deployed? I tried mod_wsgi but couldn't get it running. Was a while ago. Probably there's a nice tutorial availible. Personally I use mod_wsgi and deploy the application in a zc.buildout

Re: Deploying Pylons project

2008-12-11 Thread Chris Miles
On 11/12/2008, at 7:52 PM, Pavel Skvazh wrote: Can you please point me in the direction the real world pylons apps are deployed? I tried mod_wsgi but couldn't get it running. Was a while ago. Probably there's a nice tutorial availible. This chapter might be useful if you haven't found it

Re: authauth middleware details

2008-12-11 Thread Dalius Dobravolskas
When you publish new version, today or tomorrow or ...? Since I don't use setuptools yet you just download: http://hg.sandbox.lt/authform-middleware/archive/tip.tar.gz It always point to newest version. -- Dalius http://blog.sandbox.lt --~--~-~--~~~---~--~~

Re: nosetests self.app.post == self.app.get?

2008-12-11 Thread crown.hg
A self-ask, the answer here, Inline Form Validation (try this if @validate isn't working for you) url:http://wiki.pylonshq.com/display/pylonscookbook/The+other +FormEncode+manual+(UNFINISHED) On Dec 11, 8:19 am, crown.hg [EMAIL PROTECTED] wrote: comment @validate ,nosetests succeed. [EMAIL

AW: Re: Two problems with AuthKit 0.4.1 and Pylons 0.9.7rc2

2008-12-11 Thread Andre Kolell
Hello Dalius (and everyone else), thanks a lot for your reply. I think that I will stay at AuthKit because it works fine for everything else I'm doing. There are only the two problems I described earlier. You told me about a callback for doing some operations (inserting something into the

Re: Re: Two problems with AuthKit 0.4.1 and Pylons 0.9.7rc2

2008-12-11 Thread Dalius Dobravolskas
Hello, I think that I will stay at AuthKit because it works fine for everything else I'm doing. There are only the two problems I described earlier. James is reading this group now. Maybe he will answer ;-) You told me about a callback for doing some operations (inserting something into

Re: Deploying Pylons project

2008-12-11 Thread Wyatt Baldwin
On Dec 11, 1:23 am, Chris Miles miles.ch...@gmail.com wrote: On 11/12/2008, at 7:52 PM, Pavel Skvazh wrote: Can you please point me in the direction the real world pylons apps are deployed? I tried mod_wsgi but couldn't get it running. Was a while ago. Probably there's a nice tutorial

Webhelpers and ugly html_escape of non-ascii attributes

2008-12-11 Thread mickolka
Hi all We have a site in russian language and all alts in images and titles in hrefs that are russian on our site get encoded with the html_escape function from webhelpers.utils. Source of the html becomes unreadable and consumes more traffic. I've looked through the code and found the reason of

Re: Webhelpers and ugly html_escape of non-ascii attributes

2008-12-11 Thread Mike Orr
On Thu, Dec 11, 2008 at 10:05 AM, mickolka mpaliye...@gmail.com wrote: Hi all We have a site in russian language and all alts in images and titles in hrefs that are russian on our site get encoded with the html_escape function from webhelpers.utils. Source of the html becomes unreadable

Re: Webhelpers and ugly html_escape of non-ascii attributes

2008-12-11 Thread mickolka
Thanks for a clue Mike my import looks like from webhelpers import * We are using webhelpers from http://pylonshq.com/WebHelpers/module-index.html Also we still using pylons 0.9.6.1, should we switch to 0.9.6.2 to get that new webhelpers? utf-8 will be great for us, personally I do not