openphoto/frontend — pull request #277 by duggan (2011-10-27 03:11:45+00:00)
Title: Patch for PaaS providers (Orchestra in particular)

There's a couple of things in this pull request, take what you like (if you like any of it!) These are my alterations for a smooth installation process on http://orchestra.io.

**Routing**
I've added attempts to use Kohana-esque routing in the event that `__route__` is not set. This should mean routing "just works" for generalized PHP web server configurations.

If `__route__` is set, nothing changes.

**Remove writable FS requirement**
This boils down to making it optional whether the `configs/generated` directory is writable. During the setup process, a user can choose to ignore the warnings about the `generated` directory not being writable. At the end of the setup, they are presented with instructions and a textarea containing the completed configuration ini for copying and pasting.

If the `configs` directory is writable, there is no difference in the setup process.

**Get around common image caching configs**
Changing the default `.jpg` ending on image requests to `.jpe` should prevent mishandling of photos which might otherwise be treated as static assets.

This is the only change which will affect all usage scenarios, but it is a fairly minor one, and should be invisible or easily remedied by users if they already have a solution in place.

These changes should help things run more smoothly out of the box on PaaS providers (Orchestra.io in particular) with negligible side-effects.

Questions, fire ahead! I'm also fairly new to OpenPhoto, so please excuse me if there's something you find particularly odd here.