[Checkins] SVN: hurry.resource/branches/0.9/src/hurry/resource/ merged fix for importerror from 0.10: if the webob dependency is missing we fail silently
Daniel Havlik
dh at gocept.com
Tue Feb 15 04:45:41 EST 2011
Log message for revision 120341:
merged fix for importerror from 0.10: if the webob dependency is missing we fail silently
Changed:
U hurry.resource/branches/0.9/src/hurry/resource/README.txt
U hurry.resource/branches/0.9/src/hurry/resource/__init__.py
-=-
Modified: hurry.resource/branches/0.9/src/hurry/resource/README.txt
===================================================================
--- hurry.resource/branches/0.9/src/hurry/resource/README.txt 2011-02-15 09:30:52 UTC (rev 120340)
+++ hurry.resource/branches/0.9/src/hurry/resource/README.txt 2011-02-15 09:45:40 UTC (rev 120341)
@@ -956,7 +956,7 @@
We now wrap this in our middleware, so that the middleware is activated::
- >>> from hurry.resource import Middleware
+ >>> from hurry.resource.wsgi import Middleware
>>> wrapped_app = Middleware(app)
Now we make a request (using webob for convenience)::
Modified: hurry.resource/branches/0.9/src/hurry/resource/__init__.py
===================================================================
--- hurry.resource/branches/0.9/src/hurry/resource/__init__.py 2011-02-15 09:30:52 UTC (rev 120340)
+++ hurry.resource/branches/0.9/src/hurry/resource/__init__.py 2011-02-15 09:45:40 UTC (rev 120341)
@@ -10,4 +10,9 @@
from hurry.resource.core import (sort_inclusions_topological,
sort_inclusions_by_extension,
generate_code)
-from hurry.resource.wsgi import Middleware
+
+try:
+ #BBB
+ from hurry.resource.wsgi import Middleware
+except ImportError:
+ pass
More information about the checkins
mailing list