Skip to content
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

ExternalMethod ZMI problem #635

Closed
georgpfolz opened this issue May 18, 2019 · 3 comments
Closed

ExternalMethod ZMI problem #635

georgpfolz opened this issue May 18, 2019 · 3 comments
Assignees
Labels
Milestone

Comments

@georgpfolz
Copy link

Zope 4.0: ExternalMethods work (can be created, imported and run) but cannot be accessed in the ZMI:

Traceback (innermost last):

Module ZServer.ZPublisher.Publish, line 144, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZServer.ZPublisher.Publish, line 44, in call_object
Module Shared.DC.Scripts.Bindings, line 335, in __call__
Module Shared.DC.Scripts.Bindings, line 372, in _bindAndExec
Module App.special_dtml, line 214, in _exec
Module DocumentTemplate._DocumentTemplate, line 144, in render_blocks
Module DocumentTemplate._DocumentTemplate, line 166, in render_blocks_
Module DocumentTemplate._DocumentTemplate, line 375, in __getitem__
Module DocumentTemplate._DocumentTemplate, line 393, in getitem
Module Shared.DC.Scripts.Bindings, line 349, in __render_with_namespace__
Module Shared.DC.Scripts.Bindings, line 372, in _bindAndExec
Module App.special_dtml, line 214, in _exec
Module DocumentTemplate._DocumentTemplate, line 144, in render_blocks
Module DocumentTemplate._DocumentTemplate, line 236, in render_blocks_
Module DocumentTemplate._DocumentTemplate, line 236, in render_blocks_
Module DocumentTemplate._DocumentTemplate, line 222, in render_blocks_
Module DocumentTemplate.DT_Util, line 228, in eval
__traceback_info__: getBookmarkableURLs
Module <string>, line 1, in <module>
NameError: name 'getBookmarkableURLs' is not defined

Worked with Zope 4.0b9 and b10. Same Version of Products.ExternalMethod: 4.1 (same problem with 4.2)

@georgpfolz georgpfolz changed the title ExternalMethod not working ExternalMethod ZMI problem May 18, 2019
d-maurer added a commit to zopefoundation/Products.ExternalMethod that referenced this issue May 18, 2019
@d-maurer
Copy link
Contributor

getBookmarkableURLs is a new feature.

Unlike other objects, ExternalMethod inherits from Acquisition.Explicit and not (Acquisition.Implicit). This means, they cannot implicitly access acquired objects. Provision to access getBookmarkableURLs was still missing.

I have just pushed a fix to branch acquire_getBookmarkableURLS of repository https://github.com/zopefoundation/Products.ExternalMethod. I am too lazy to set up the environment to check whether this fix resolves the issue. Maybe, you can make this check.

@dataflake dataflake self-assigned this May 18, 2019
@dataflake dataflake added the bug label May 18, 2019
@dataflake dataflake added this to To do in Zope 4 bugfix via automation May 18, 2019
@dataflake dataflake added this to the 4.0.1 milestone May 18, 2019
@dataflake
Copy link
Member

This is already fixed in e7192fb and will be part of Zope 4.0.1

Zope 4 bugfix automation moved this from To do to Done May 18, 2019
@dataflake
Copy link
Member

I have also just released Products.ExternalMethod version 4.3 with Dieter's patch, which should solve it immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Zope 4 bugfix
  
Done
Development

No branches or pull requests

3 participants