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
ff972b6b
Commit
ff972b6b
authored
13 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
fix import loops
parent
a8fe25aa
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/jingle_ft.py
+0
-1
0 additions, 1 deletion
src/common/jingle_ft.py
src/common/protocol/bytestream.py
+8
-2
8 additions, 2 deletions
src/common/protocol/bytestream.py
with
8 additions
and
3 deletions
src/common/jingle_ft.py
+
0
−
1
View file @
ff972b6b
...
...
@@ -24,7 +24,6 @@ import xmpp
from
jingle_content
import
contents
,
JingleContent
from
jingle_transport
import
JingleTransportICEUDP
,
JingleTransportSocks5
from
jingle_transport
import
JingleTransportIBB
from
jingle_session
import
JingleStates
from
common
import
helpers
from
common.socks5
import
Socks5Receiver
from
common.connection_handlers_events
import
FileRequestReceivedEvent
...
...
This diff is collapsed.
Click to expand it.
src/common/protocol/bytestream.py
+
8
−
2
View file @
ff972b6b
...
...
@@ -37,8 +37,6 @@ from common import xmpp
from
common
import
gajim
from
common
import
helpers
from
common
import
dataforms
from
common.connection_handlers_events
import
FileRequestReceivedEvent
,
\
FileRequestErrorEvent
from
common
import
ged
from
common
import
jingle_xtls
...
...
@@ -250,6 +248,7 @@ class ConnectionBytestream:
raise
xmpp
.
NodeProcessed
def
_siSetCB
(
self
,
con
,
iq_obj
):
from
common.connection_handlers_events
import
FileRequestReceivedEvent
gajim
.
nec
.
push_incoming_event
(
FileRequestReceivedEvent
(
None
,
conn
=
self
,
stanza
=
iq_obj
))
raise
xmpp
.
NodeProcessed
...
...
@@ -269,6 +268,7 @@ class ConnectionBytestream:
return
jid
=
self
.
_ft_get_from
(
iq_obj
)
file_props
[
'
error
'
]
=
-
3
from
common.connection_handlers_events
import
FileRequestErrorEvent
gajim
.
nec
.
push_incoming_event
(
FileRequestErrorEvent
(
None
,
conn
=
self
,
jid
=
jid
,
file_props
=
file_props
,
error_msg
=
''
))
raise
xmpp
.
NodeProcessed
...
...
@@ -302,6 +302,8 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
if
contact
.
get_full_jid
()
==
receiver_jid
:
file_props
[
'
error
'
]
=
-
5
self
.
remove_transfer
(
file_props
)
from
common.connection_handlers_events
import
\
FileRequestErrorEvent
gajim
.
nec
.
push_incoming_event
(
FileRequestErrorEvent
(
None
,
conn
=
self
,
jid
=
contact
.
jid
,
file_props
=
file_props
,
error_msg
=
''
))
...
...
@@ -364,6 +366,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
self
.
_result_socks5_sid
,
file_props
[
'
sid
'
])
if
not
listener
:
file_props
[
'
error
'
]
=
-
5
from
common.connection_handlers_events
import
FileRequestErrorEvent
gajim
.
nec
.
push_incoming_event
(
FileRequestErrorEvent
(
None
,
conn
=
self
,
jid
=
unicode
(
receiver
),
file_props
=
file_props
,
error_msg
=
''
))
self
.
_connect_error
(
unicode
(
receiver
),
file_props
[
'
sid
'
],
...
...
@@ -494,6 +497,8 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
if
file_props
is
not
None
:
self
.
disconnect_transfer
(
file_props
)
file_props
[
'
error
'
]
=
-
3
from
common.connection_handlers_events
import
\
FileRequestErrorEvent
gajim
.
nec
.
push_incoming_event
(
FileRequestErrorEvent
(
None
,
conn
=
self
,
jid
=
to
,
file_props
=
file_props
,
error_msg
=
msg
))
...
...
@@ -526,6 +531,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
return
file_props
=
self
.
files_props
[
id_
]
file_props
[
'
error
'
]
=
-
4
from
common.connection_handlers_events
import
FileRequestErrorEvent
gajim
.
nec
.
push_incoming_event
(
FileRequestErrorEvent
(
None
,
conn
=
self
,
jid
=
jid
,
file_props
=
file_props
,
error_msg
=
''
))
raise
xmpp
.
NodeProcessed
...
...
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