Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim-plugins
Commits
623a3767
Commit
623a3767
authored
Mar 01, 2017
by
Philipp Hörist
Browse files
[httpupload] Dont set conn object in init
parent
6f292d13
Changes
1
Hide whitespace changes
Inline
Side-by-side
httpupload/httpupload.py
View file @
623a3767
...
...
@@ -124,7 +124,6 @@ class Base(object):
self
.
enabled
=
False
self
.
component
=
None
self
.
controls
=
{}
self
.
conn
=
gajim
.
connections
[
account
].
connection
def
add_button
(
self
,
chat_control
):
jid
=
chat_control
.
contact
.
jid
...
...
@@ -240,7 +239,7 @@ class Base(object):
log
.
info
(
"Sending request for slot"
)
IQ_CALLBACK
[
id_
]
=
lambda
stanza
:
self
.
received_slot
(
stanza
,
file
)
self
.
con
n
.
send
(
iq
)
gajim
.
connections
[
self
.
account
].
connectio
n
.
send
(
iq
)
def
received_slot
(
self
,
stanza
,
file
):
log
.
info
(
"Received slot"
)
...
...
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