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
52149b7d
Commit
52149b7d
authored
Jul 03, 2013
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only publish icon URL if one was set
parent
e2b683c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
settings.py
blink/configuration/settings.py
+1
-1
presence.py
blink/presence.py
+6
-1
No files found.
blink/configuration/settings.py
View file @
52149b7d
...
...
@@ -95,7 +95,7 @@ class BlinkPresenceSettings(SettingsGroup):
current_state
=
Setting
(
type
=
PresenceState
,
default
=
PresenceState
(
'Available'
))
state_history
=
Setting
(
type
=
PresenceStateList
,
default
=
PresenceStateList
())
offline_note
=
Setting
(
type
=
unicode
,
nillable
=
True
)
icon
=
Setting
(
type
=
IconDescriptor
,
nillable
=
True
)
icon
=
Setting
(
type
=
IconDescriptor
,
default
=
IconDescriptor
(
'blink://unknown'
),
nillable
=
True
)
class
BlinkSettings
(
SettingsObject
):
...
...
blink/presence.py
View file @
52149b7d
...
...
@@ -103,7 +103,12 @@ class BlinkPresenceState(object):
service
.
capabilities
.
screen_sharing_server
=
False
service
.
capabilities
.
screen_sharing_client
=
False
service
.
display_name
=
self
.
account
.
display_name
or
None
service
.
icon
=
"
%
s#blink-icon
%
s"
%
(
self
.
account
.
xcap
.
icon
.
url
,
self
.
account
.
xcap
.
icon
.
etag
)
if
self
.
account
.
xcap
.
icon
else
unknown_icon
if
account
.
xcap
.
icon
is
None
:
service
.
icon
=
None
elif
account
.
xcap
.
icon
.
url
==
unknown_icon
:
service
.
icon
=
unknown_icon
else
:
service
.
icon
=
"
%
s#blink-icon
%
s"
%
(
self
.
account
.
xcap
.
icon
.
url
,
self
.
account
.
xcap
.
icon
.
etag
)
service
.
device_info
=
pidf
.
DeviceInfo
(
instance_id
,
description
=
hostname
,
user_agent
=
settings
.
user_agent
)
service
.
device_info
.
time_offset
=
pidf
.
TimeOffset
()
# TODO: Add real user input data -Saul
...
...
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