Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with klein.resource #5

Closed
cyli opened this issue Oct 10, 2012 · 1 comment
Closed

Conflict with klein.resource #5

cyli opened this issue Oct 10, 2012 · 1 comment

Comments

@cyli
Copy link
Member

cyli commented Oct 10, 2012

Mac OS X, mountain lion, Python 2.7

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?

@cyli
Copy link
Member Author

cyli commented Oct 10, 2012

In a new virtualenv, this is not a problem. Must have been a user error.

@cyli cyli closed this as completed Oct 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant