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
Weblate
gajim
Commits
d7091c74
Commit
d7091c74
authored
16 years ago
by
steve-e
Browse files
Options
Downloads
Patches
Plain Diff
Remove method that was implemented for old, blocking dispatcher but is now unused.
parent
aa9a8576
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/xmpp/dispatcher_nb.py
+2
-19
2 additions, 19 deletions
src/common/xmpp/dispatcher_nb.py
with
2 additions
and
19 deletions
src/common/xmpp/dispatcher_nb.py
+
2
−
19
View file @
d7091c74
...
@@ -24,9 +24,7 @@ import simplexml, sys, locale
...
@@ -24,9 +24,7 @@ import simplexml, sys, locale
from
xml.parsers.expat
import
ExpatError
from
xml.parsers.expat
import
ExpatError
from
client
import
PlugIn
from
client
import
PlugIn
from
protocol
import
NS_STREAMS
,
NS_XMPP_STREAMS
,
NS_HTTP_BIND
,
Iq
,
Presence
,
\
from
protocol
import
NS_STREAMS
,
NS_XMPP_STREAMS
,
NS_HTTP_BIND
,
Iq
,
Presence
,
\
Message
,
Protocol
,
Node
,
Error
,
ERR_FEATURE_NOT_IMPLEMENTED
,
StreamError
,
\
Message
,
Protocol
,
Node
,
Error
,
ERR_FEATURE_NOT_IMPLEMENTED
,
StreamError
stream_exceptions
import
logging
import
logging
log
=
logging
.
getLogger
(
'
gajim.c.x.dispatcher_nb
'
)
log
=
logging
.
getLogger
(
'
gajim.c.x.dispatcher_nb
'
)
...
@@ -316,21 +314,6 @@ class XMPPDispatcher(PlugIn):
...
@@ -316,21 +314,6 @@ class XMPPDispatcher(PlugIn):
if
stanza
.
getType
()
in
(
'
get
'
,
'
set
'
):
if
stanza
.
getType
()
in
(
'
get
'
,
'
set
'
):
conn
.
_owner
.
send
(
Error
(
stanza
,
ERR_FEATURE_NOT_IMPLEMENTED
))
conn
.
_owner
.
send
(
Error
(
stanza
,
ERR_FEATURE_NOT_IMPLEMENTED
))
def
streamErrorHandler
(
self
,
conn
,
error
):
# FIXME: looks like it is unused
name
,
text
=
'
error
'
,
error
.
getData
()
for
tag
in
error
.
getChildren
():
if
tag
.
getNamespace
()
==
NS_XMPP_STREAMS
:
if
tag
.
getName
()
==
'
text
'
:
text
=
tag
.
getData
()
else
:
name
=
tag
.
getName
()
if
name
in
stream_exceptions
.
keys
():
exc
=
stream_exceptions
[
name
]
else
:
exc
=
StreamError
raise
exc
((
name
,
text
))
def
RegisterCycleHandler
(
self
,
handler
):
def
RegisterCycleHandler
(
self
,
handler
):
'''
'''
Register handler that will be called on every Dispatcher.Process() call.
Register handler that will be called on every Dispatcher.Process() call.
...
@@ -553,7 +536,7 @@ class BOSHDispatcher(XMPPDispatcher):
...
@@ -553,7 +536,7 @@ class BOSHDispatcher(XMPPDispatcher):
return
XMPPDispatcher
.
ProcessNonBlocking
(
self
,
data
)
return
XMPPDispatcher
.
ProcessNonBlocking
(
self
,
data
)
def
dispatch
(
self
,
stanza
,
session
=
None
,
direct
=
0
):
def
dispatch
(
self
,
stanza
,
session
=
None
,
direct
=
0
):
if
stanza
.
getName
()
==
'
body
'
and
stanza
.
getNamespace
()
==
NS_HTTP_BIND
:
if
stanza
.
getName
()
==
'
body
'
and
stanza
.
getNamespace
()
==
NS_HTTP_BIND
:
stanza_attrs
=
stanza
.
getAttrs
()
stanza_attrs
=
stanza
.
getAttrs
()
if
'
authid
'
in
stanza_attrs
:
if
'
authid
'
in
stanza_attrs
:
...
...
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