mod_proxy example

2007-03-12 Thread wyatt-bC
Before today, I had never set up a reverse proxy. I've seen it mentioned here as a good deployment option, but I couldn't seem to find a good, complete example. After screwing around for a while, I think I've finally got it figured out. Here's my setup in case it might help someone else. I

Using Elixir with Pylons

2007-02-21 Thread wyatt-bC
I just started using Elixir (which seems quite nice so far) with Pylons. I was having a bit of trouble getting things set up, but I think I've worked out a decent solution, which I just posted over on the Elixir list. Hopefully it's helpful to someone (or perhaps someone has a better idea).

Re: Nested resources with map.resources?

2007-02-19 Thread wyatt-bC
[I've tried posting this twice already, and it never showed up. Maybe it'll work this time, as I just made some other posts that came through.] On Feb 10, 9:36 pm, Ben Bangert [EMAIL PROTECTED] wrote: On Feb 10, 7:31 pm, wyatt-bC [EMAIL PROTECTED] wrote: map.resources :articles do |article

Re: Nested resources with map.resources?

2007-02-19 Thread wyatt-bC
On Feb 19, 7:12 pm, wyatt-bC [EMAIL PROTECTED] wrote: ... map.resources :articles do |article| article.resources :comments end ... I'm not sure exactly how you'd translate the Ruby above directly to Python, but I think it would be cool if Pylons had this feature... and I'd

[Routes] Nested resources with map.resources?

2007-02-10 Thread wyatt-bC
Rails 1.2 has a mechanism for nesting RESTful resources: map.resources :articles do |article| map.resources :comments end This produces routes like... /articles /articles/1 /articles/1/comments /articles/1/comments/1 etc. I'm not sure exactly how you'd translate the Ruby above directly to

Re: how to test google maps on localhost with pylons framework

2007-01-14 Thread wyatt-bC
sqad wrote: Anyone able to use google maps on their pylons-run website when testing on the localhost? i think my development.ini is setup right. When I load the page, it always keeps complaining about the key I registered with http://127.0.0.1:5000/wiki [snippet for development-ini] host =

Re: Pylons 0.9.3 Released!

2006-11-03 Thread wyatt-bC
Michael G. Noll wrote: I'm about to upgrade to 0.9.3. Thanks for all the hard work, guys! I upgraded yesterday. No changes, no problems. I concur: thanks. __wyatt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Pylons 0.9.3 Released!

2006-11-02 Thread wyatt-bC
I was all excited about upgrading, but pylonshq has been down for a while now (it's been about an hour since I first noticed). __wyatt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: How to render a partial ala Rails

2006-10-24 Thread wyatt-bC
One nice feature of Rails partials is that you can pass a collection to the render call, like so: %= render :partial = page, :collection = @pages % Which might be roughly equivalent to this in Myghty: _page.myt, collection=pages IF you could pass a collection to the partial call. Instead,

Re: Status Code Other than 200?

2006-10-20 Thread wyatt-bC
ToddG wrote: 'render_response' is in fact a convenience method; I think you'll need to use the long way to do it; here's the lineup of usual suspects (hopefully someone can verify they're all up to date):

How to render a partial ala Rails

2006-10-20 Thread wyatt-bC
Last weekend I played with Ruby on Rails because I was looking at a RoR job. Nice framework (but no match for Pylons in the end ;-)). One cool feature (with a cool title) is what they call rendering a partial, which is just pulling out some chunk of HTML that you might want to reuse, sticking it

Re: Routes: Problem using .resource

2006-10-04 Thread wyatt-bC
Ben Bangert wrote: On Oct 3, 2006, at 5:39 PM, wyatt-bC wrote: I'm trying to use the resource method like this to create some Web services: m.resource( 'address', controller='address', path_prefix='/:region', name_prefix='region_

Re: Routes: Problem using .resource

2006-10-04 Thread wyatt-bC
wyatt-bC wrote: Ben Bangert wrote: On Oct 3, 2006, at 5:39 PM, wyatt-bC wrote: I'm trying to use the resource method like this to create some Web services: m.resource( 'address', controller='address', path_prefix='/:region

Routes: Problem using .resource

2006-10-03 Thread wyatt-bC
I'm trying to use the resource method like this to create some Web services: m.resource( 'address', controller='address', path_prefix='/:region', name_prefix='region_' ) I'm following this example from the Routes manual of using path_prefix and

Re: Updated QuickWiki

2006-09-25 Thread wyatt-bC
James Gardner wrote: How about I re-write the new QuickWiki to use explicit sessions and write a QuickWiki Part II which goes on to discuss the following: * Using FormBuild to build forms * Using FormEncode to validate data * Using AuthKit to allow only certain users to edit/delete pages *