| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,7 @@ | |||
| 1 | - build/ | ||
| 2 | - setup/build/ | ||
| 3 | - *.pyc | ||
| 1 | + /build/ | ||
| 2 | + /setup/build/ | ||
| 3 | + *.pyc | ||
| 4 | + | ||
| 5 | + # If you want to ignore an already commited directory run: | ||
| 6 | + # git rm --cached -r .idea | ||
| 7 | + /.idea/ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,9 @@ | |||
| 2 | 2 | # License: New BSD License. | |
| 3 | 3 | # Website: http://code.google.com/p/cefpython/ | |
| 4 | 4 | ||
| 5 | + from cef_ptr cimport * | ||
| 6 | + from cef_browser cimport * | ||
| 7 | + | ||
| 5 | 8 | # Global variables. | |
| 6 | 9 | ||
| 7 | 10 | cdef map[int, CefRefPtr[CefBrowser]] __cefBrowsers # innerWindowID : browser | |
@@ -25,7 +28,7 @@ class PyBrowser: | |||
| 25 | 28 | handlers = {} | |
| 26 | 29 | ||
| 27 | 30 | def __init__(self, topWindowID, innerWindowID, handlers): | |
| 28 | - | ||
| 31 | + | ||
| 29 | 32 | self.topWindowID = topWindowID | |
| 30 | 33 | self.innerWindowID = innerWindowID | |
| 31 | 34 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,10 +69,10 @@ def CefAdvanced(): | |||
| 69 | 69 | def DocumentReady(browser, frame): | |
| 70 | 70 | ||
| 71 | 71 | print "OnLoadStart(): frame URL: %s" % frame.GetURL() | |
| 72 | - browser.GetMainFrame().ExecuteJavascript("window.open('about:blank', '', 'width=500,height=500')") | ||
| 72 | + #browser.GetMainFrame().ExecuteJavascript("window.open('about:blank', '', 'width=500,height=500')") | ||
| 73 | 73 | if frame.IsMain(): | |
| 74 | 74 | return | |
| 75 | - print "HidePopup(): %s" % browser.HidePopup() | ||
| 75 | + #print "HidePopup(): %s" % browser.HidePopup() | ||
| 76 | 76 | ||
| 77 | 77 | def OnLoadError(browser, frame, errorCode, failedURL, errorText): | |
| 78 | 78 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,27 +1,40 @@ | |||
| 1 | - [0707/093114:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 2 | - [0707/093120:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 3 | - [0707/093125:INFO:CONSOLE(0)] "Refused to display document because display forbidden by X-Frame-Options. | ||
| 4 | - ," source: (0) | ||
| 5 | - [0707/093133:VERBOSE1:ssl_host_info.cc(113)] Kicking off verification for plusone.google.com | ||
| 6 | - [0707/093133:VERBOSE1:ssl_host_info.cc(193)] Verification took 0ms | ||
| 7 | - [0707/094216:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 8 | - [0707/094219:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 9 | - [0707/094222:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 10 | - [0707/101022:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 11 | - [0707/101036:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 12 | - [0707/101046:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 13 | - [0707/101128:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 14 | - [0707/101241:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 15 | - [0707/101246:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 16 | - [0707/101443:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 17 | - [0707/101451:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 18 | - [0707/101500:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 19 | - [0707/101504:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 20 | - [0707/111824:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 21 | - [0707/111845:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 22 | - [0707/112203:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 23 | - [0707/112237:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 24 | - [0707/112416:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 25 | - [0707/112644:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 26 | - [0707/135335:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 27 | - [0707/142644:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 1 | + [0707/093114:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 2 | + [0707/093120:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 3 | + [0707/093125:INFO:CONSOLE(0)] "Refused to display document because display forbidden by X-Frame-Options. | ||
| 4 | + ," source: (0) | ||
| 5 | + [0707/093133:VERBOSE1:ssl_host_info.cc(113)] Kicking off verification for plusone.google.com | ||
| 6 | + [0707/093133:VERBOSE1:ssl_host_info.cc(193)] Verification took 0ms | ||
| 7 | + [0707/094216:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 8 | + [0707/094219:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 9 | + [0707/094222:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 10 | + [0707/101022:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 11 | + [0707/101036:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 12 | + [0707/101046:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 13 | + [0707/101128:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 14 | + [0707/101241:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 15 | + [0707/101246:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 16 | + [0707/101443:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 17 | + [0707/101451:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 18 | + [0707/101500:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 19 | + [0707/101504:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 20 | + [0707/111824:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 21 | + [0707/111845:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 22 | + [0707/112203:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 23 | + [0707/112237:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 24 | + [0707/112416:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 25 | + [0707/112644:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 26 | + [0707/135335:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 27 | + [0707/142644:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 28 | + [0708/062540:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 29 | + [0708/063400:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 30 | + [0708/063620:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 31 | + [0708/065257:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 32 | + [0708/065425:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 33 | + [0708/080641:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 34 | + [0708/081116:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 35 | + [0708/081131:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 36 | + [0708/081205:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 37 | + [0708/081405:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 38 | + [0708/081433:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 39 | + [0708/081458:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| 40 | + [0708/081920:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 10091 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,8 @@ del "setup\cefpython.pyd" | |||
| 4 | 4 | del "setup\cefpython.cpp" | |
| 5 | 5 | rmdir /S /Q "setup/build" | |
| 6 | 6 | ||
| 7 | - REM for /R %~dp0\pyinclude\ %%f in (*.pxd) do copy %%f %~dp0\setup\ | ||
| 7 | + REM copy all src\*.pyx to src\setup\: | ||
| 8 | + for /R %~dp0\ %%f in (*.pyx) do copy %%f %~dp0\setup\ | ||
| 8 | 9 | ||
| 9 | 10 | cd "setup" | |
| 10 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ def SetFunction(self, name, func): | |||
| 21 | 21 | def SetProperty(self, name, value): | |
| 22 | 22 | ||
| 23 | 23 | allowed = self.__IsTypeAllowed(value) # returns True or string. | |
| 24 | - if allowed != True: | ||
| 24 | + if allowed is not True: | ||
| 25 | 25 | raise Exception("JavascriptBindings.SetProperty(): not allowed type: %s" % allowed) | |
| 26 | 26 | self.__properties[name] = value | |
| 27 | 27 | ||
@@ -39,26 +39,25 @@ def __IsTypeAllowed(self, value): | |||
| 39 | 39 | valueType = type(value) | |
| 40 | 40 | if valueType == types.ListType: | |
| 41 | 41 | for val in value: | |
| 42 | - valueType2 = self.__IsTypeAllowed(val): | ||
| 43 | - if valueType2 != True: | ||
| 42 | + valueType2 = self.__IsTypeAllowed(val) | ||
| 43 | + if valueType2 is not True: | ||
| 44 | 44 | return valueType2.__name__ | |
| 45 | 45 | return True | |
| 46 | - elif valueType == types.BoolType: | ||
| 46 | + elif valueType == types.BooleanType: | ||
| 47 | 47 | return True | |
| 48 | - elif valueType == types.DoubleType: | ||
| 48 | + elif valueType == types.FloatType: | ||
| 49 | 49 | return True | |
| 50 | 50 | elif valueType == types.IntType: | |
| 51 | 51 | return True | |
| 52 | 52 | elif valueType == types.NoneType: | |
| 53 | 53 | return True | |
| 54 | 54 | elif valueType == types.DictType: | |
| 55 | 55 | for key in value: | |
| 56 | - valueType2 = self.__IsTypeAllowed(value[key]): | ||
| 57 | - if valueType2 != True: | ||
| 56 | + valueType2 = self.__IsTypeAllowed(value[key]) | ||
| 57 | + if valueType2 is not True: | ||
| 58 | 58 | return valueType2.__name__ | |
| 59 | 59 | return True | |
| 60 | 60 | elif valueType == types.StringType: | |
| 61 | 61 | return True | |
| 62 | 62 | else: | |
| 63 | 63 | return valueType.__name__ | |
| 64 | - return valueType.__name__ | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments