Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5b3c9ddb
authored
May 07, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laborgui: Fixed user-agent for charts
parent
a7dbda8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
miscellaneous/laborclient/cloudgui/gui.py
+2
-2
No files found.
miscellaneous/laborclient/cloudgui/gui.py
View file @
5b3c9ddb
...
@@ -86,7 +86,7 @@ class Browser:
...
@@ -86,7 +86,7 @@ class Browser:
self
.
webview
.
open
(
"https://cloud.ik.bme.hu/store/gui/"
)
self
.
webview
.
open
(
"https://cloud.ik.bme.hu/store/gui/"
)
self
.
webview
.
connect
(
"navigation-requested"
,
self
.
on_navigation_requested
)
self
.
webview
.
connect
(
"navigation-requested"
,
self
.
on_navigation_requested
)
settings
=
webkit
.
WebSettings
()
settings
=
webkit
.
WebSettings
()
settings
.
set_property
(
'user-agent'
,
'cloud-gui '
+
self
.
version
)
settings
.
set_property
(
'user-agent'
,
'
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22 '
+
'
cloud-gui '
+
self
.
version
)
settings
.
set_property
(
'enable-accelerated-compositing'
,
True
)
settings
.
set_property
(
'enable-accelerated-compositing'
,
True
)
settings
.
set_property
(
"enable-default-context-menu"
,
False
)
settings
.
set_property
(
"enable-default-context-menu"
,
False
)
self
.
webview
.
set_settings
(
settings
)
self
.
webview
.
set_settings
(
settings
)
...
@@ -183,7 +183,7 @@ class Browser:
...
@@ -183,7 +183,7 @@ class Browser:
def
load_committed_cb
(
self
,
web_view
,
frame
):
def
load_committed_cb
(
self
,
web_view
,
frame
):
uri
=
frame
.
get_uri
()
uri
=
frame
.
get_uri
()
print
uri
#
print uri
try
:
try
:
self
.
webview
.
execute_script
(
'document.getElementsByTagName("a")[0].target="";'
)
self
.
webview
.
execute_script
(
'document.getElementsByTagName("a")[0].target="";'
)
except
:
except
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment