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
norstbox
gajim
Commits
7d357dfe
Commit
7d357dfe
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
fix names of exception, fix docstring, fix strings
parent
9cf5a806
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/gajim-remote.py
+5
-5
5 additions, 5 deletions
src/gajim-remote.py
src/remote_control.py
+3
-3
3 additions, 3 deletions
src/remote_control.py
with
8 additions
and
8 deletions
src/gajim-remote.py
+
5
−
5
View file @
7d357dfe
...
...
@@ -44,25 +44,25 @@ def send_error(error_message):
sys
.
exit
(
1
)
class
ServiceNotAvailable
(
Exception
):
'''
This exception i
ndicates that there is no session daemon
'''
'''
This exception i
s raised when we cannot use Gajim remotely
'''
def
__init__
(
self
):
Exception
.
__init__
(
self
)
def
__str__
(
self
):
return
_
(
'
Service not available: Gajim is not running, or remote_control is False
'
)
class
Dbus
ModuleMissing
(
Exception
):
'''
This excepti
on indi
cates that the
re is
no session daemon
'''
class
Dbus
NotSupported
(
Exception
):
'''
D-Bus is not installed or pyth
on
b
indi
ngs a
re
m
is
sing
'''
def
__init__
(
self
):
Exception
.
__init__
(
self
)
def
__str__
(
self
):
return
_
(
'
D-Bus python module is missing
'
)
return
_
(
'
D-Bus
is not present on this machine or
python module is missing
'
)
try
:
import
dbus
except
:
raise
Dbus
ModuleMissing
raise
Dbus
NotSupported
_version
=
getattr
(
dbus
,
'
version
'
,
(
0
,
20
,
0
))
if
_version
[
1
]
>=
41
:
...
...
This diff is collapsed.
Click to expand it.
src/remote_control.py
+
3
−
3
View file @
7d357dfe
...
...
@@ -515,7 +515,7 @@ class SignalObject(DbusPrototype):
add_contact
=
method
(
INTERFACE
)(
add_contact
)
class
SessionBusNotPresent
(
Exception
):
'''
This exception indicates that there is no session daemon
'''
'''
This exception indicates that there is no session daemon
'''
def
__init__
(
self
):
Exception
.
__init__
(
self
)
...
...
@@ -523,9 +523,9 @@ class SessionBusNotPresent(Exception):
return
_
(
'
Session bus is not available
'
)
class
DbusNotSupported
(
Exception
):
'''
D-Bus is not installed or python bindings are missing
'''
'''
D-Bus is not installed or python bindings are missing
'''
def
__init__
(
self
):
Exception
.
__init__
(
self
)
def
__str__
(
self
):
return
_
(
'
D-Bus is not present on this machine
'
)
return
_
(
'
D-Bus is not present on this machine
or python module is missing
'
)
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