Re: Pylons 0.9.5 + SAContext and nosetests gives additional warnings

2007-09-26 Thread Jim Musil
This is probably too late, but I had the same problem. The problem is that tests are collected and tests/__init__.py runs before any configuration is loaded and therefore cannot be referenced. This makes it tough to test your db if you have connection variables set in your test.ini files. Or

routing setup: advice wanted

2007-09-26 Thread Max Ischenko
Hi, I want to setup my url mappings so that the follows urls will work: /admin/clients/ -- index method on ClientsController /admin/clients/foobar -- foobar method on ClientsController /admin/clients/123 -- 'view' method on ClientsController, with id passed in /admin/clients/123;quux -- quux

Ajax upload -pylons based

2007-09-26 Thread voltron
Has anyone coded the backend pylons controller functions script for swfupload(http://swfupload.mammon.se/) or jquploader(http:// www.pixeline.be/experiments/jqUploader/setup.php) ? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Ajax upload -pylons based

2007-09-26 Thread voltron
Great!! I am so tired of seeing php scripts attached everywhere :-) please send it over On Sep 26, 2:39 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hiya, I wrote a quick blog entry on this yesterday actually. I can send you my sample project tonight if you like? Should probably have

Pudge on Pylons 0.9.6

2007-09-26 Thread Yannick Gingras
Hi, I can't get pudge to work on 0.9.6. I just did: easy_install -U pudge buildutil and got: buildutils-0.3-py2.4.egg pudge-0.1.3-py2.4.egg Now, I create a brand new pylons project and try to make some doc: paster create -t pylons dtest cd dtest python setup.py pudge And all

Re: Pylons 0.9.5 + SAContext and nosetests gives additional warnings

2007-09-26 Thread Ben Bangert
On Sep 26, 2007, at 2:09 AM, Jim Musil wrote: This is probably too late, but I had the same problem. The problem is that tests are collected and tests/__init__.py runs before any configuration is loaded and therefore cannot be referenced. This makes it tough to test your db if you have

AW: Displaying page elements based on AuthKit authentication?

2007-09-26 Thread Andrew Smart
-Ursprüngliche Nachricht- Von: pylons-discuss@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Mittwoch, 26. September 2007 16:40 An: pylons-discuss Betreff: Displaying page elements based on AuthKit authentication? Hello, Hi Wayne,

AW: Displaying page elements based on AuthKit authentication?

2007-09-26 Thread Andrew Smart
-Ursprüngliche Nachricht- Von: pylons-discuss@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Mittwoch, 26. September 2007 16:40 An: pylons-discuss Betreff: Displaying page elements based on AuthKit authentication? Hello, Maybe I am

Re: Mako %doc tags confuse HtmlFill parser

2007-09-26 Thread voltron
HtmlFill returned my templates fine when I removed them . A pity though, I dont like the HTML comments On Sep 26, 9:32 pm, Philip Jenvey [EMAIL PROTECTED] wrote: On Sep 25, 2007, at 11:41 PM, voltron wrote: mako %doc tags ruin HTML when parsed by HtmlFill parser. I intended to use the

Anti-cacheing headers in Pylons

2007-09-26 Thread voltron
How does one generate anti-cacheing headers in Pylons? Thanks! --~--~-~--~~~---~--~~ 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 To

Setting the content type in Pylons 0.9.6

2007-09-26 Thread alecf
I'm trying to render some Atom feeds with Pylons - I've got a genshi template that more or less renders the atom feed, but I need to return it as application/atom+xml For the life of me I can't figure out how the new global response object works - setting content_type has no effect.. my

Re: Anti-cacheing headers in Pylons

2007-09-26 Thread James Gardner
You can edit your config/middleware.py file so the end of it looks like this: ... javascripts_app = StaticJavascripts() class NoCache(object): def __init__(self, app): self.app = app def __call__(self, environ, start_response): def

Re: Setting the content type in Pylons 0.9.6

2007-09-26 Thread James Gardner
Hi Alec, You need: response.headers['Content-type'] = application/atom+xml return render(genshi-xml, atom-feed) James alecf wrote: I'm trying to render some Atom feeds with Pylons - I've got a genshi template that more or less renders the atom feed, but I need to return it as

Re: Anti-cacheing headers in Pylons

2007-09-26 Thread voltron
Thanks! On Sep 27, 12:39 am, James Gardner [EMAIL PROTECTED] wrote: You can edit your config/middleware.py file so the end of it looks like this: ... javascripts_app = StaticJavascripts() class NoCache(object): def __init__(self, app): self.app = app

Re: Setting the content type in Pylons 0.9.6

2007-09-26 Thread alecf
I think the only disappointing thing with that is the charset normally gets stuck in there too, and I want to set that in another location... I played around with it and I also was able to set config['pylons.response_options']['content_type'] for a similar effect. Is this going a little too

https in qualified urls

2007-09-26 Thread Max Ischenko
Hi, I'm using url_for with qualified=True option but for some reason it generates urls with https prefix. Why it happens? Do I need to put protocol=http into each and every qualified url_for invocation to prevent it from happening? Max. --~--~-~--~~~---~--~~ You