Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
41c552ad
Commit
41c552ad
authored
18 years ago
by
sb
Browse files
Options
Downloads
Patches
Plain Diff
removed zerocony.py:check_jid and calls to it
parent
5116cb02
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/zeroconf/connection_zeroconf.py
+4
-7
4 additions, 7 deletions
src/common/zeroconf/connection_zeroconf.py
src/common/zeroconf/zeroconf.py
+0
-3
0 additions, 3 deletions
src/common/zeroconf/zeroconf.py
with
4 additions
and
10 deletions
src/common/zeroconf/connection_zeroconf.py
+
4
−
7
View file @
41c552ad
...
...
@@ -170,16 +170,14 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf):
# callbacks called from zeroconf
def
_on_new_service
(
self
,
jid
):
self
.
roster
.
setItem
(
jid
)
display_jid
=
self
.
zeroconf
.
check_jid
(
jid
)
self
.
dispatch
(
'
ROSTER_INFO
'
,
(
display_jid
,
self
.
roster
.
getName
(
jid
),
'
both
'
,
'
no
'
,
self
.
roster
.
getGroups
(
jid
)))
self
.
dispatch
(
'
NOTIFY
'
,
(
display_jid
,
self
.
roster
.
getStatus
(
jid
),
self
.
roster
.
getMessage
(
jid
),
'
local
'
,
0
,
None
,
0
))
self
.
dispatch
(
'
ROSTER_INFO
'
,
(
jid
,
self
.
roster
.
getName
(
jid
),
'
both
'
,
'
no
'
,
self
.
roster
.
getGroups
(
jid
)))
self
.
dispatch
(
'
NOTIFY
'
,
(
jid
,
self
.
roster
.
getStatus
(
jid
),
self
.
roster
.
getMessage
(
jid
),
'
local
'
,
0
,
None
,
0
))
def
_on_remove_service
(
self
,
jid
):
self
.
roster
.
delItem
(
jid
)
# 'NOTIFY' (account, (jid, status, status message, resource, priority,
# keyID, timestamp))
jid
=
self
.
zeroconf
.
check_jid
(
jid
)
self
.
dispatch
(
'
NOTIFY
'
,
(
jid
,
'
offline
'
,
''
,
'
local
'
,
0
,
None
,
0
))
print
'
connection_zeroconf:186
'
...
...
@@ -195,9 +193,8 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf):
#display contacts already detected and resolved
for
jid
in
self
.
roster
.
keys
():
display_jid
=
self
.
zeroconf
.
check_jid
(
jid
)
self
.
dispatch
(
'
ROSTER_INFO
'
,
(
display_jid
,
self
.
roster
.
getName
(
jid
),
'
both
'
,
'
no
'
,
self
.
roster
.
getGroups
(
jid
)))
self
.
dispatch
(
'
NOTIFY
'
,
(
display_jid
,
self
.
roster
.
getStatus
(
jid
),
self
.
roster
.
getMessage
(
jid
),
'
local
'
,
0
,
None
,
0
))
self
.
dispatch
(
'
ROSTER_INFO
'
,
(
jid
,
self
.
roster
.
getName
(
jid
),
'
both
'
,
'
no
'
,
self
.
roster
.
getGroups
(
jid
)))
self
.
dispatch
(
'
NOTIFY
'
,
(
jid
,
self
.
roster
.
getStatus
(
jid
),
self
.
roster
.
getMessage
(
jid
),
'
local
'
,
0
,
None
,
0
))
self
.
connected
=
STATUS_LIST
.
index
(
show
)
...
...
This diff is collapsed.
Click to expand it.
src/common/zeroconf/zeroconf.py
+
0
−
3
View file @
41c552ad
...
...
@@ -252,9 +252,6 @@ class Zeroconf:
return
True
def
check_jid
(
self
,
jid
):
return
jid
def
disconnect
(
self
):
if
self
.
connected
:
self
.
connected
=
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment