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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Peter Shkenev
gajim
Commits
da873080
Commit
da873080
authored
19 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
gajim-remote get_status without account now return global status
parent
51dbb139
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/remote_control.py
+7
-7
7 additions, 7 deletions
src/remote_control.py
with
7 additions
and
7 deletions
src/remote_control.py
+
7
−
7
View file @
da873080
...
...
@@ -34,6 +34,7 @@
from
common
import
exceptions
from
common
import
gajim
from
common
import
helpers
from
time
import
time
from
common
import
i18n
from
dialogs
import
AddNewContactWindow
...
...
@@ -130,13 +131,12 @@ def get_status(self, *args):
unless account is given
'''
account
=
self
.
_get_real_arguments
(
args
,
1
)[
0
]
accounts
=
gajim
.
contacts
.
keys
()
if
not
account
and
len
(
accounts
)
==
1
:
# if there is only one account in roster, take it as default
# if user did not ask for account
account
=
accounts
[
0
]
# FIXME: get global status, not the status from first (ask Yann)
if
account
:
# return show for this account (either first or the specified)
index
=
gajim
.
connections
[
account
].
connected
return
STATUS_LIST
[
index
]
if
not
account
:
# If user did not ask for account, returns the global status
return
helpers
.
get_global_show
()
# return show for the given account
index
=
gajim
.
connections
[
account
].
connected
return
STATUS_LIST
[
index
]
def
send_file
(
self
,
*
args
):
'''
send_file(file_path, jid, account=None)
...
...
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