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

[FIX] WebView fixes #3148

Merged
merged 3 commits into from Jul 24, 2018
Merged

[FIX] WebView fixes #3148

merged 3 commits into from Jul 24, 2018

Conversation

thocevar
Copy link
Contributor

Issue
  1. _evalJS of WebEngine ignores the returned value since 3b11a90.
  2. Report_plot doesn't work for webview (although it should).
Description of changes
  1. Store ids together with results in IdStore for scheduled JS executions.
  2. Unsuccessful search for <svg> tag results in ValueError (and not IndexError).
Includes
  • Code changes
  • Tests
  • Documentation

with self.lock:
self.ids.add(id)
self.ids[id] = value

def __contains__(self, id):
return id in self.ids

def remove(self, id):
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this could be renamed to pop?

@codecov-io
Copy link

codecov-io commented Jul 23, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@dc51c3d). Click here to learn what that means.
The diff coverage is 77.77%.

@@            Coverage Diff            @@
##             master    #3148   +/-   ##
=========================================
  Coverage          ?   82.35%           
=========================================
  Files             ?      335           
  Lines             ?    58256           
  Branches          ?        0           
=========================================
  Hits              ?    47977           
  Misses            ?    10279           
  Partials          ?        0

@@ -556,9 +556,9 @@ def _evalJS(self, code):
if sip.isdeleted(self):
return
Copy link
Member

Choose a reason for hiding this comment

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

Lint suggests that you return None here.

(Either all return statements in a function should return an expression, or none of them should.)

@thocevar thocevar changed the title WebView fixes [FIX] WebView fixes Jul 24, 2018
@ajdapretnar ajdapretnar merged commit 195dcc1 into biolab:master Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants