routes 1.10.3 behavior is wrong

2009-04-22 Thread mickolka
After upgrading to 0.9.7 I cannot make my routes config work right, most of the issues were fixed by changing order of rules but there are also issues that I really do not understand what the problem is I have two rules map.connect('company_site_local', 'cs:(id)-:(company_name)/v:

Re: FormEncode and i18n

2009-01-17 Thread mickolka
, 7:21 pm, mickolka mpaliye...@gmail.com wrote: Hi, I have a different problem with pylons andformencodei18n when I run the following code in console importformencode ne =formencode.validators.NotEmpty()formencode.api.set_stdtranslation(languages=[de]) try:     ne.to_python

Re: FormEncode and i18n

2009-01-13 Thread mickolka
Hi, I have a different problem with pylons and formencode i18n when I run the following code in console import formencode ne = formencode.validators.NotEmpty() formencode.api.set_stdtranslation(languages=[de]) try: ne.to_python() except formencode.api.Invalid, e: print str(e) I get

Re: Webhelpers and ugly html_escape of non-ascii attributes

2008-12-14 Thread mickolka
Thanks Mike, Now all works fine with 0.6 Webhelpers (after 2 hours of refactoring:) ) On Dec 12, 9:40 pm, Mike Orr sluggos...@gmail.com wrote: On Fri, Dec 12, 2008 at 7:45 AM, mickolka mpaliye...@gmail.com wrote: I've installed latest Webhelpers-0.6.4 and they still have wrong html_escape

Re: Webhelpers and ugly html_escape of non-ascii attributes

2008-12-12 Thread mickolka
wrote: On Dec 11, 9:35 pm, mickolka mpaliye...@gmail.com wrote: Thanks for a clue Mike my import looks like from webhelpers import * We are using webhelpers fromhttp://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 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 mickolka
not understand why some sites still use other encodings. On Dec 11, 10:17 pm, Mike Orr sluggos...@gmail.com wrote: 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

Re: Problems with accessing session data from sub_domain

2008-04-05 Thread mickolka
Hi do this you need two things: 1. update your Beaker to 0.9.3 2. add beaker.session.cookie_domain = .example.com to the development.ini file (and to produciton ones with their real domains) HTH m On 4 апр, 17:23, Taras [EMAIL PROTECTED] wrote: Hi, I use pylons.session to store user data.

Re: Problems with accessing request/session in middleware

2008-03-26 Thread mickolka
Mike thanks for great post again, For now I use 1) but maybe will think about webob after my product released. I have been thinking about a heresy the past week, that instead of improving WSGI maybe we should just leapfrog it to a WebOb-based chain of servers, applicaiions, and middleware.  

Extending configuration ini files

2008-03-24 Thread mickolka
Hi all I need to run a 2 instances of same application in production environment with slightly different configs. In order to have less copy paste I'd like to be able to create a base ini file and extend it twice like production-base.ini: foo = bar baz = bar production-1.ini: baz = bad

Problems running unittests for Pylons

2008-03-04 Thread mickolka
Hi all. We have problems running tests in pylons, we did everything like it described at http://wiki.pylonshq.com/display/pylonsdocs/Unit+Testing When I run /sw/bin/python2.5 setup.py nosetests I get following trace mykola-paliyenkos-macbook-pro-3:uaprom mykola$ /sw/bin/python2.5 setup.py

Re: Returning binary data from controller

2007-10-02 Thread mickolka
you if you need something more concrete Jose mickolka wrote: Hi all I'm quite new to pylons and have a following task. I need to return a content of the JPEG image file from the Pylons controller, what is a best way of doing it. I have not found in dos how to deal with binaries

Re: What is the best way to write a service object with Pylons

2007-09-02 Thread mickolka
] wrote: On 9/1/07, mickolka [EMAIL PROTECTED] wrote: Hi all I want to write a FileStorage service object with following features - should be configured on the start of the application - should be accessible from the any controller - have only one instance Pylons provide a `g` namespace

What is the best way to write a service object with Pylons

2007-09-01 Thread mickolka
Hi all I want to write a FileStorage service object with following features - should be configured on the start of the application - should be accessible from the any controller - have only one instance What is the best way to do that? From the top of my head I can create some singleton and init