Re: testing with nose and logging capture

2008-01-07 Thread Max Ischenko
Hello, I get it working using the following trick: websetup.py: class stdout_proxy(object): def __getattribute__(self, key): return getattr(sys.stdout, key) def setup_config(command, filename, section, vars): Place any commands to setup abc here conf = appconfig('config:' +

Configuration Files

2008-01-07 Thread Alagu Madhu
hi all, app_globals.py: from pylons import config def __init__(self): cache_dir = config.get('cache_dir') print cache_dir I get 'None' value... Thanks Madhu Alagu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Can't start new Pylons Web instance: Error on line 195 of serve.py (after upgrading to Pylons 0.9.6.1

2008-01-07 Thread Garland, Ken R
possibly see if you have another version of Paste installed in your path. On Jan 6, 2008 10:40 PM, Rich [EMAIL PROTECTED] wrote: Hi, I upgraded to the latest version of Pylons two days ago. Since then, I can't either start an existing Web instance, or create a new one. This is one I just

Re: Configuration Files

2008-01-07 Thread Alec
config[app_conf].get(cache_dir, None) Alagu Madhu 写道: hi all, app_globals.py: from pylons import config def __init__(self): cache_dir = config.get('cache_dir') print cache_dir I get 'None' value... Thanks Madhu Alagu

formencode validation on GET requests

2008-01-07 Thread Christoph Haas
Fellow earthicans... today I had a case where I wanted to @validate (Pylons decorator) GET requests through a formencode schema. It works well now that I use the parameters - post_only=False - on_get=True I just wonder if there is a reason that those are two parameters. Is there any case where

WebHelpers plans

2008-01-07 Thread Mike Orr
Over the weekend Ben and I and others developed a plan to overhaul WebHelpers. A preliminary API proposal is here: http://wiki.pylonshq.com/display/pylonsprojects/WebHelpers+ideas . The main goals are: * Consolidate the 21 submodules into a much smaller number. * Fix the bugs,

Testing Pylons apps

2008-01-07 Thread Mike Orr
I looked over the testing page and saw we're recommending nosetests with self.assertEqual(). That seems a bit schizophrenic since nosetests -d is supposed to unpack assert expressions for you, and show you the actual values of variables. However, my experience with nosetests -d shows it

Re: TG2/Pylons sprint

2008-01-07 Thread Mark Ramm
Architectural decisions must be made, and the TG2 team has - after careful public deliberation - made one in the best interests of their users. Thank you. I am trying very hard to make sure that archetectural decisions are made in an open and public manner, and I have often found myself to

Re: TG2/Pylons sprint

2008-01-07 Thread Mark Ramm
That sounds cool. I put Seattle on the list for Saturday; we have an informal sprint-or-whatever every week and can probably drum up a few people. I haven't used TG for two years so own my memory is vague, but I'll be happy to do cross-framework stuff or be a Pylons advisor. It looks like

Re: Routes 1.7.1 and zc.buildout

2008-01-07 Thread Matthew Scott
On Jan 6, 9:47 pm, Mike Orr [EMAIL PROTECTED] wrote: There's a TRAC ticket for this.http://pylonshq.com/project/pylonshq/ticket/351 Thanks, I'll keep an eye on that ticket. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Can't start new Pylons Web instance: Error on line 195 of serve.py (after upgrading to Pylons 0.9.6.1

2008-01-07 Thread Rich
Ian, I was able to upgrade PasteScript to 1.6.1.1 I took a ride on it. That did the trick. Many many thanks! Regards, Rich On Jan 7, 8:59 am, Ian Bicking [EMAIL PROTECTED] wrote: PasteScript 1.6 (and 1.6.1) had a bug on Windows. It should be fixed in 1.6.1.1. Rich wrote: Hi,