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
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor 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
mesonium
gajim
Commits
11852b4e
Commit
11852b4e
authored
5 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Actions: Fix pylint erros
parent
321e7b31
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
gajim/app_actions.py
+18
-18
18 additions, 18 deletions
gajim/app_actions.py
with
18 additions
and
18 deletions
gajim/app_actions.py
+
18
−
18
View file @
11852b4e
...
...
@@ -50,7 +50,7 @@ def on_preferences(_action, _param):
open_window
(
'
Preferences
'
)
def
on_plugins
(
action
,
param
):
def
on_plugins
(
_
action
,
_
param
):
if
'
plugins
'
in
interface
.
instances
:
interface
.
instances
[
'
plugins
'
].
window
.
present
()
else
:
...
...
@@ -73,7 +73,7 @@ def on_bookmarks(_action, param):
open_window
(
'
Bookmarks
'
,
account
=
account
)
def
on_quit
(
action
,
param
):
def
on_quit
(
_
action
,
_
param
):
interface
.
roster
.
on_quit_request
()
...
...
@@ -92,14 +92,14 @@ def on_profile(_action, param):
open_window
(
'
ProfileWindow
'
,
account
=
account
)
def
on_send_server_message
(
action
,
param
):
def
on_send_server_message
(
_
action
,
param
):
account
=
param
.
get_string
()
server
=
app
.
config
.
get_per
(
'
accounts
'
,
account
,
'
hostname
'
)
server
+=
'
/announce/online
'
SingleMessageWindow
(
account
,
server
,
'
send
'
)
def
on_service_disco
(
action
,
param
):
def
on_service_disco
(
_
action
,
param
):
account
=
param
.
get_string
()
server_jid
=
app
.
config
.
get_per
(
'
accounts
'
,
account
,
'
hostname
'
)
if
server_jid
in
interface
.
instances
[
account
][
'
disco
'
]:
...
...
@@ -141,7 +141,7 @@ def on_merge_accounts(action, param):
app
.
interface
.
roster
.
setup_and_draw_roster
()
def
on_add_account
(
action
,
param
):
def
on_add_account
(
_
action
,
_
param
):
if
'
account_creation_wizard
'
in
app
.
interface
.
instances
:
app
.
interface
.
instances
[
'
account_creation_wizard
'
].
window
.
present
()
else
:
...
...
@@ -149,7 +149,7 @@ def on_add_account(action, param):
AccountCreationWizard
()
def
on_import_contacts
(
action
,
param
):
def
on_import_contacts
(
_
action
,
param
):
account
=
param
.
get_string
()
if
'
import_contacts
'
in
app
.
interface
.
instances
:
app
.
interface
.
instances
[
'
import_contacts
'
].
dialog
.
present
()
...
...
@@ -207,50 +207,50 @@ def on_manage_proxies(_action, _param):
# Admin Actions
def
on_set_motd
(
action
,
param
):
def
on_set_motd
(
_
action
,
param
):
account
=
param
.
get_string
()
server
=
app
.
config
.
get_per
(
'
accounts
'
,
account
,
'
hostname
'
)
server
+=
'
/announce/motd
'
SingleMessageWindow
(
account
,
server
,
'
send
'
)
def
on_update_motd
(
action
,
param
):
def
on_update_motd
(
_
action
,
param
):
account
=
param
.
get_string
()
server
=
app
.
config
.
get_per
(
'
accounts
'
,
account
,
'
hostname
'
)
server
+=
'
/announce/motd/update
'
SingleMessageWindow
(
account
,
server
,
'
send
'
)
def
on_delete_motd
(
action
,
param
):
def
on_delete_motd
(
_
action
,
param
):
account
=
param
.
get_string
()
app
.
connections
[
account
].
get_module
(
'
Announce
'
).
delete_motd
()
# Help Actions
def
on_contents
(
action
,
param
):
def
on_contents
(
_
action
,
_
param
):
helpers
.
open_uri
(
'
https://dev.gajim.org/gajim/gajim/wikis
'
)
def
on_faq
(
action
,
param
):
def
on_faq
(
_
action
,
_
param
):
helpers
.
open_uri
(
'
https://dev.gajim.org/gajim/gajim/wikis/help/gajimfaq
'
)
def
on_keyboard_shortcuts
(
action
,
param
):
def
on_keyboard_shortcuts
(
_
action
,
_
param
):
ShortcutsWindow
()
def
on_features
(
action
,
param
):
def
on_features
(
_
action
,
_
param
):
FeaturesDialog
()
def
on_about
(
action
,
param
):
def
on_about
(
_
action
,
_
param
):
AboutDialog
()
# View Actions
def
on_file_transfers
(
action
,
param
):
def
on_file_transfers
(
_
action
,
_
param
):
if
interface
.
instances
[
'
file_transfers
'
].
\
window
.
get_property
(
'
visible
'
):
interface
.
instances
[
'
file_transfers
'
].
window
.
present
()
...
...
@@ -262,7 +262,7 @@ def on_history(action, param):
on_browse_history
(
action
,
param
)
def
on_open_event
(
action
,
param
):
def
on_open_event
(
_
action
,
param
):
dict_
=
param
.
unpack
()
app
.
interface
.
handle_event
(
dict_
[
'
account
'
],
dict_
[
'
jid
'
],
dict_
[
'
type_
'
])
...
...
@@ -270,7 +270,7 @@ def on_open_event(action, param):
# Other Actions
def
toggle_ipython
(
action
,
param
):
def
toggle_ipython
(
_
action
,
_
param
):
"""
Show/hide the ipython window
"""
...
...
@@ -281,7 +281,7 @@ def toggle_ipython(action, param):
app
.
interface
.
create_ipython_window
()
def
show_next_pending_event
(
action
,
param
):
def
show_next_pending_event
(
_
action
,
_
param
):
"""
Show the window(s) with next pending event in tabbed/group chats
"""
...
...
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