-
Notifications
You must be signed in to change notification settings - Fork 1
Simplify IStoredFile adaptation #31
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
base: DMS-1106/collabora
Are you sure you want to change the base?
Conversation
This requires collective/collective.collabora#12 As a driveby, fix an encoding declaration that drives my editor crazy.
imio/dms/mail/adapters.py
Outdated
|
||
@adapter(IPODTemplate) | ||
@implementer(IStoredFile) | ||
class StoredPodTemplate(object): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's missing DXStoredFile here.
After that, I still get error *** AttributeError: file
when adapting my "PODTemplate" file with IStoredFile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the baseclass. That attributeerror indicates, that your adapter is not properly kicking in and it's using the upstream collective.collabora adapter instead - is it true that you get this error already on your own code? I don't have a working dms.mail install so I can't trace this for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, in fact, I get an error "This page does not exist" when visiting "/my-pod-file/@@collabora-edit" that I was not having before.
Using a breakpoint in CollaboraEditView's init method showed me the error on line 44. I have no logs otherwise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like I said, I don't have a working interactive install. If you'd like me to fix this, I need an integrationtest that reproduces the failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found the issue: collective/collective.collabora#13
This requires collective.collabora 1.1.0, which contains collective/collective.collabora#12.
As a driveby, fix an encoding declaration that drives my editor crazy.