You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at __init__.py, looks like klein.resource was intended to be klein.app._globalKleinApp.resource, but there is also a resource.py.
>>> from klein import resource, route
>>> print resource
<module 'klein.resource' from '/Users/cyli/.virtualenvs/klein/lib/python2.7/site-packages/klein-0.0.1-py2.7.egg/klein/resource.pyc'>
>>> print route
<bound method Klein.route of <klein.app.Klein object at 0x10cf2f090>>
If that was not the intention, perhaps klein.app._globalKleinApp.resource should be imported (and exported) as get_resource?
The text was updated successfully, but these errors were encountered:
Mac OS X, mountain lion, Python 2.7
Looking at
__init__.py
, looks likeklein.resource
was intended to beklein.app._globalKleinApp.resource
, but there is also a resource.py.If that was not the intention, perhaps
klein.app._globalKleinApp.resource
should be imported (and exported) asget_resource
?The text was updated successfully, but these errors were encountered: