-
Notifications
You must be signed in to change notification settings - Fork 10
decorator does not work #6
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
Comments
@fxdgear thanks for filing this issue! I'm surprised at the error, because the method is expecting an |
My versions are included in the dpaste. It might be a version mismatch, but I ended up forking your project and vendoring it into my site. Once I get complete I will try to submit a PR back. I’ve added a fair bit of functionality and expanded on what you’ve done. Thanks for making this project |
Hmm, I didn't see the versions in the dpaste when I looked, and it's now expired. Sorry about that! I appreciate your time, I'm happy to incorporate a PR! |
Ahh shoot.
…On Tue, Jan 1, 2019 at 07:08 Dane Hillard ***@***.***> wrote:
Hmm, I didn't see the versions in the dpaste when I looked, and it's now
expired. Sorry about that! I appreciate your time, I'm happy to incorporate
a PR!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAI8dq4oNvxUtQUUvT0KjN9da-2QEo4Qks5u-2vvgaJpZM4ZlKI6>
.
|
Django 2.1 python 3.7
On Tue, Jan 1, 2019 at 07:20 [email protected] <[email protected]>
wrote:
… Ahh shoot.
On Tue, Jan 1, 2019 at 07:08 Dane Hillard ***@***.***>
wrote:
> Hmm, I didn't see the versions in the dpaste when I looked, and it's now
> expired. Sorry about that! I appreciate your time, I'm happy to incorporate
> a PR!
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#6 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAI8dq4oNvxUtQUUvT0KjN9da-2QEo4Qks5u-2vvgaJpZM4ZlKI6>
> .
>
|
@oma0256 I haven't been able to explore this any further since then. If you're able to provide details about your use case and the issue you're seeing (if anything differs from above), it would be helpful to me! I'm happy to try to get another release out soon if I can. |
@daneah I actually wanted to explore options of raising a PR to fix this, if it is still an issue. |
@oma0256 submissions definitely welcome! If you need any help or have questions, please let me know. Otherwise, I look forward to your pull request 😄 |
It's been a while, but I've just tried the app and found the same problem (python 3.8, Django 3.1). Either decorating the dispatch method: class PostDetailView(DateDetailView):
@method_decorator(include_webmention_information)
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs) or the class: @method_decorator(include_webmention_information, name="dispatch")
class PostDetailView(DateDetailView): I get:
Googling, I guess |
@philgyford thanks for the details! An alternative for backward compatibility would be to use the I should be able to get to this today unless you're interested in taking a stab at it. |
Sure - I'm stabbing at it right now :) |
@philgyford oh, afraid I may have misled you! There already exist an old and a new version of the middleware—the problem being that the decorator uses the old one. I could see adding a second decorator that uses the new middleware, but suggestions also welcome. |
Ah, right. I'm not sure then. A second decorator maybe makes sense then? TBH I've never written decorators or middleware so anything beyond adding that mixin is probably going to take me a lot longer than someone with more experience, if you have time. Sorry! |
No worries, I’ll have a look 😄 |
This should now be fixed in |
Great, many thanks @daneah! |
Using class based views I get the following error:
'MyPostDetailView' object has no attribute 'scheme'
http://dpaste.com/0KNM2VJ
The text was updated successfully, but these errors were encountered: