Skip to content

Conversation

incognick
Copy link
Contributor

All tests pass

issue #14

@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.973% when pulling edaa910 on incognick:develop into 21dcb29 on teracyhq:develop.

@hoatle hoatle self-assigned this May 13, 2016
@hoatle hoatle added this to the 0.10.0 milestone May 13, 2016
@hoatle hoatle removed this from the 0.10.0 milestone May 16, 2016
i = cls()
view = getattr(i, name)

# Since the view is a bound instance method, first make it an actual function
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hoatle Let me know what you think. I think this is a better solution than moving the decorators to the bottom. It will allow the decorator list to be applied to all memebers (get, put, index, etc) then the proxy is generated. Wrapping the view as a function also allows for decorators to apply attributes.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.137% when pulling aaf16ae on incognick:develop into 930da6b on teracyhq:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.137% when pulling 31ccdc6 on incognick:develop into 930da6b on teracyhq:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 97.909% when pulling bbfa3b1 on incognick:develop into 930da6b on teracyhq:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 97.909% when pulling 914d568 on incognick:develop into 930da6b on teracyhq:develop.

@incognick
Copy link
Contributor Author

@hoatle Some of the quantified issues should be ignored. It's forcing member functions to reference self or to have @staticmethod however, if you use staticmethod, FlaskView breaks.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 97.909% when pulling 7c57419 on incognick:develop into 930da6b on teracyhq:develop.

@hoatle
Copy link
Contributor

hoatle commented May 17, 2016

@incognick yes, let's ignore the qualified issues, I'm going to look into this PR.

@hoatle hoatle added this to the 0.11.0 milestone May 17, 2016
@incognick
Copy link
Contributor Author

Great thanks! I fixed as many as possible.

On Tue, May 17, 2016 at 5:59 PM Hoat Le notifications@github.com wrote:

@incognick https://github.com/incognick yes, let's ignore the qualified
issues, I'm going to look into this PR.


You are receiving this because you were mentioned.

Reply to this email directly or view it on GitHub
#15 (comment)

view = make_func(view)

# Now apply the class decorator list in reverse order
# to match memeber decorator order
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

member

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You want this as a member function or move it outside of the class?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant it's a typo, your PR looks good to me so I've merged with some minor updates. Thank you very much, I'm going to release v0.11.0 for this PR. Great work, @incognick!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hoatle great! Thanks for reviving this project and managing it 👍

@hoatle hoatle merged commit 7c57419 into pallets-eco:develop May 18, 2016
@hoatle hoatle removed this from the 0.11.0 milestone May 18, 2016
@hoatle
Copy link
Contributor

hoatle commented May 18, 2016

@incognick v0.11.0 released, let's rock https://pypi.python.org/pypi/Flask-Classful :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants