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
l-n-s
gajim
Commits
7bea0341
Commit
7bea0341
authored
21 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
showoffline in .gajimrc and convertion "~/" -> "/home/user" in optparser.py
parent
7d6e5524
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
common/optparser.py
+2
-1
2 additions, 1 deletion
common/optparser.py
core/core.py
+2
-7
2 additions, 7 deletions
core/core.py
plugins/gtkgui.py
+7
-1
7 additions, 1 deletion
plugins/gtkgui.py
with
11 additions
and
9 deletions
common/optparser.py
+
2
−
1
View file @
7bea0341
...
...
@@ -20,12 +20,13 @@
import
ConfigParser
import
logging
import
os
log
=
logging
.
getLogger
(
'
common.options
'
)
class
OptionsParser
:
def
__init__
(
self
,
fname
):
self
.
__fname
=
fname
self
.
__fname
=
os
.
path
.
expanduser
(
fname
)
# END __init__
def
parseCfgFile
(
self
):
...
...
This diff is collapsed.
Click to expand it.
core/core.py
+
2
−
7
View file @
7bea0341
...
...
@@ -21,7 +21,6 @@
import
Queue
import
socket
import
sys
import
os
import
time
import
logging
...
...
@@ -32,17 +31,13 @@ import common.optparser
log
=
logging
.
getLogger
(
'
core.core
'
)
log
.
setLevel
(
logging
.
DEBUG
)
if
'
HOME
'
in
os
.
environ
:
home
=
os
.
environ
[
'
HOME
'
]
elif
os
.
name
==
'
posix
'
:
home
=
os
.
path
.
expanduser
(
"
~/
"
)
CONFPATH
=
os
.
path
.
join
(
home
,
"
.gajimrc
"
)
CONFPATH
=
"
~/.gajimrc
"
class
GajimCore
:
def
__init__
(
self
):
self
.
connected
=
0
self
.
cfgParser
=
common
.
optparser
.
OptionsParser
(
CONFPATH
)
print
'
%s
\n
'
%
self
.
cfgParser
.
Server_hostname
;
#
print '%s\n' % self.cfgParser.Server_hostname;
self
.
hub
=
common
.
hub
.
GajimHub
()
self
.
cfgParser
.
parseCfgFile
()
# END __init__
...
...
This diff is collapsed.
Click to expand it.
plugins/gtkgui.py
+
7
−
1
View file @
7bea0341
...
...
@@ -23,6 +23,9 @@ pygtk.require('2.0')
import
gtk
import
gtk.glade
import
gobject
import
string
import
common.optparser
CONFPATH
=
"
~/.gajimrc
"
class
user
:
def
__init__
(
self
,
*
args
):
...
...
@@ -214,6 +217,8 @@ class roster:
def
__init__
(
self
,
queueOUT
):
#initialisation des variables
# FIXME : handle no file ...
self
.
cfgParser
=
common
.
optparser
.
OptionsParser
(
CONFPATH
)
self
.
cfgParser
.
parseCfgFile
()
self
.
xml
=
gtk
.
glade
.
XML
(
'
plugins/gtkgui.glade
'
,
'
Gajim
'
)
self
.
tree
=
self
.
xml
.
get_widget
(
'
treeview
'
)
self
.
treestore
=
gtk
.
TreeStore
(
gtk
.
gdk
.
Pixbuf
,
str
,
str
)
...
...
@@ -225,7 +230,8 @@ class roster:
self
.
optionmenu
=
self
.
xml
.
get_widget
(
'
optionmenu
'
)
self
.
optionmenu
.
set_history
(
6
)
self
.
tab_messages
=
{}
self
.
showOffline
=
0
self
.
showOffline
=
string
.
atoi
(
self
.
cfgParser
.
GtkGui_showoffline
)
print
self
.
showOffline
#colonnes
self
.
col
=
gtk
.
TreeViewColumn
()
...
...
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