-
Notifications
You must be signed in to change notification settings - Fork 145
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
Newly introduced AttributeError when using colander.deferred with callables. #141
Comments
Thanks for the report. |
Thanks for fixing and testing :) |
Out of interest, how do I build a distribution that includes the locale directory? I wanted to deploy code that relies on this fix, so I built a sdist against the repo head:
However, when I deploy this in tandem with
Clearly I can workaround this and it's not an issue with the colander lib. However, I just wondered how to build a distribution that contains the locale directory, as per the main package releases? |
Install setuptools_git, and use a checkout of Colander. This will cause all files checked into git to be included in the tgz when you run "setup.py sdist". |
Ah yes, cheers. On Fri, Oct 25, 2013 at 4:50 PM, Chris McDonough
|
Hey, pull request #134 raises an AttributeError when passing callables to
colander.deferred, i.e.: colander.deferred now expects its arg to be a
function, whereas before it could be an instance with a
__call__
method.Is this intended? Or is it intended that the decorator continue to work
with arbitrary callables?
For example, I have code (which worked fine in colander 1.0a5) like:
Where
ModelWidget
is along the lines of:Updating to 1.0b1 now raises an exception at import time:
Looking at the functools docs it seems pretty clear that
wrapped
needs tobe a function with a
__name__
attribute.The text was updated successfully, but these errors were encountered: