You can clone with
HTTPS or Subversion.
Source at https://github.com/jfinkels/flask-restless, documentation at http://readthedocs.org/docs/flask-restless. All requirements are met once I release version 0.5 tonight (which includes dual license—GNU AGPLv3 or BSD).
Great -- just post here when ready for full review.
Okay, just uploaded version 0.5.
17 errors in Python 2.5:
File "flask_restless/views.py", line 775, in post
instance = self.model(**dict([(i, params[i]) for i in props]))
TypeError: __init__() keywords must be strings
There is also a minor problem here:
You can't skip tests in Python < 2.7, so they are skipped, but you aren't warned about that, like all tests are OK.
And one more, both test from this TestCase fails on Python 2.6 and Python 2.7 if you have savalidation package installed
Thanks @alekzvik I'll take a look at these errors and get back to you.
Starting with the last comment first:
python setup.py test
Interesting: I am not getting these errors, when I run the unit tests on my own machine using python setup.py test, or run-tests.py, for example. Can you give me some more information about the environment in which you are finding this error? Specifically, can you tell me your Python version and how to reproduce the error?
I have fixed the particular error in the line you quoted, but I suspect there are more lines which are affected by this issue. However, since my tests don't fail, I don't know how to check for them.
2. The Flask extension guideline calls for python setup.py test or make test. If you can make it work through either of these, there's no problem. Otherwise, we can dig into the issue a bit and make a well-informed precedent.
3. You fixed that, but there is more.
Error message is the same:
File "/flask_restless/views.py", line 431, in _add_to_relation
TypeError: _get_or_create() keywords must be strings
to reproduce error, try run python setup.py test in a clear virtualenv with Python 2.5.6
1. Poblem solved, everything works fine with dev version of savalidation
I think Flask-Restless is ready to become approved. @rduplain do you agree?
@rduplain Extension approved. Please, close the issue.