Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
c0c19b42
Commit
c0c19b42
authored
Mar 25, 2013
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed loading server settings pages after changes in the backend
parent
0b27ab8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
accounts.py
blink/accounts.py
+6
-2
No files found.
blink/accounts.py
View file @
c0c19b42
...
@@ -528,11 +528,12 @@ class ServerToolsWebView(QWebView):
...
@@ -528,11 +528,12 @@ class ServerToolsWebView(QWebView):
self
.
tab
=
None
self
.
tab
=
None
self
.
task
=
None
self
.
task
=
None
self
.
last_error
=
None
self
.
last_error
=
None
self
.
realm
=
None
self
.
urlChanged
.
connect
(
self
.
_SH_URLChanged
)
self
.
urlChanged
.
connect
(
self
.
_SH_URLChanged
)
@
property
@
property
def
query_items
(
self
):
def
query_items
(
self
):
all_items
=
(
'user_agent'
,
'tab'
,
'task'
)
all_items
=
(
'user_agent'
,
'tab'
,
'task'
,
'realm'
)
return
[(
name
,
value
)
for
name
,
value
in
self
.
__dict__
.
iteritems
()
if
name
in
all_items
and
value
is
not
None
]
return
[(
name
,
value
)
for
name
,
value
in
self
.
__dict__
.
iteritems
()
if
name
in
all_items
and
value
is
not
None
]
def
_get_account
(
self
):
def
_get_account
(
self
):
...
@@ -549,6 +550,9 @@ class ServerToolsWebView(QWebView):
...
@@ -549,6 +550,9 @@ class ServerToolsWebView(QWebView):
notification_center
.
remove_observer
(
self
,
sender
=
old_account
)
notification_center
.
remove_observer
(
self
,
sender
=
old_account
)
if
account
:
if
account
:
notification_center
.
add_observer
(
self
,
sender
=
account
)
notification_center
.
add_observer
(
self
,
sender
=
account
)
self
.
realm
=
account
.
id
.
domain
else
:
self
.
realm
=
None
self
.
access_manager
.
authenticationRequired
.
disconnect
(
self
.
_SH_AuthenticationRequired
)
self
.
access_manager
.
authenticationRequired
.
disconnect
(
self
.
_SH_AuthenticationRequired
)
self
.
access_manager
.
finished
.
disconnect
(
self
.
_SH_Finished
)
self
.
access_manager
.
finished
.
disconnect
(
self
.
_SH_Finished
)
self
.
access_manager
=
QNetworkAccessManager
(
self
)
self
.
access_manager
=
QNetworkAccessManager
(
self
)
...
@@ -571,7 +575,7 @@ class ServerToolsWebView(QWebView):
...
@@ -571,7 +575,7 @@ class ServerToolsWebView(QWebView):
def
_SH_AuthenticationRequired
(
self
,
reply
,
auth
):
def
_SH_AuthenticationRequired
(
self
,
reply
,
auth
):
if
self
.
account
and
not
self
.
authenticated
:
if
self
.
account
and
not
self
.
authenticated
:
auth
.
setUser
(
self
.
account
.
id
)
auth
.
setUser
(
self
.
account
.
id
.
username
)
auth
.
setPassword
(
self
.
account
.
auth
.
password
)
auth
.
setPassword
(
self
.
account
.
auth
.
password
)
self
.
authenticated
=
True
self
.
authenticated
=
True
else
:
else
:
...
...
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