I've noticed that the current implementation of Routes requires you to
have Routes accessible (as a package, not sub-package)  from your
PYTHONPATH or site-packages directory. If one wants to include it as a
sub-package of their development environment (aka framework) such as
framework_name_here.plugins.Routes, it won't work.

In the application I recently deployed (with mod_python) the following
changes to Routes worked perfectly without issue.

It may be worth while to make the changes to the core Routes lib so it
will be accessible no matter where its placed.

1. In "__init__.py" remove all code but the following:

from base import Mapper
from util import url_for, redirect_to
from common import request_config
__all__=['Mapper', 'url_for', 'redirect_to', 'request_config']


2. put the removed code in a new file called "common.py".

3. Change references to "import request_config" in base.py and util.py
to "from common import request_config"

Thats it!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to