Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
S
scom
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
scom
Commits
2e527c61
Kaydet (Commit)
2e527c61
authored
Ock 13, 2009
tarafından
Furkan Duman
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Unicode fix for Turkish characters in connection name
üst
be440fda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
network.py
mudur/bin/network.py
+12
-12
No files found.
mudur/bin/network.py
Dosyayı görüntüle @
2e527c61
...
...
@@ -244,7 +244,7 @@ def setState(bus, state, args):
if
len
(
args
)
==
2
:
obj
=
bus
.
get_object
(
"tr.org.pardus.comar"
,
"/package/
%
s"
%
args
[
1
],
introspect
=
False
)
obj
.
setState
(
args
[
0
]
,
state
,
dbus_interface
=
"tr.org.pardus.comar.Net.Link"
)
obj
.
setState
(
unicode
(
args
[
0
])
,
state
,
dbus_interface
=
"tr.org.pardus.comar.Net.Link"
)
else
:
profiles
=
{}
for
script
in
getScripts
(
bus
):
...
...
@@ -253,21 +253,21 @@ def setState(bus, state, args):
profiles
[
profile
]
=
[]
profiles
[
profile
]
.
append
(
script
)
if
args
[
0
]
not
in
profiles
:
if
unicode
(
args
[
0
])
not
in
profiles
:
print
_
(
"No such profile."
)
return
FAIL
if
len
(
profiles
[
args
[
0
]
])
>
1
:
if
len
(
profiles
[
unicode
(
args
[
0
])
])
>
1
:
print
_
(
"There are more than one profiles named '
%
s'"
)
%
profile
print
_
(
"Use one of the following commands:"
)
for
script
in
profiles
[
args
[
0
]
]:
for
script
in
profiles
[
unicode
(
args
[
0
])
]:
print
"
%
s
%
s '
%
s'
%
s"
%
(
sys
.
argv
[
0
],
state
,
profile
,
script
)
return
FAIL
else
:
script
=
profiles
[
args
[
0
]
][
0
]
script
=
profiles
[
unicode
(
args
[
0
])
][
0
]
obj
=
bus
.
get_object
(
"tr.org.pardus.comar"
,
"/package/
%
s"
%
script
,
introspect
=
False
)
obj
.
setState
(
args
[
0
]
,
state
,
dbus_interface
=
"tr.org.pardus.comar.Net.Link"
)
obj
.
setState
(
unicode
(
args
[
0
])
,
state
,
dbus_interface
=
"tr.org.pardus.comar.Net.Link"
)
except
dbus
.
DBusException
,
e
:
print
_
(
"Error:
%
s"
)
%
str
(
e
)
return
FAIL
...
...
@@ -473,7 +473,7 @@ def infoProfile(bus, args):
if
len
(
args
)
==
2
:
profile
,
script
=
args
info
=
getConnectionDetails
(
bus
,
script
,
profile
)
info
=
getConnectionDetails
(
bus
,
script
,
unicode
(
profile
)
)
else
:
profiles
=
{}
for
script
in
getScripts
(
bus
):
...
...
@@ -482,20 +482,20 @@ def infoProfile(bus, args):
profiles
[
profile
]
=
[]
profiles
[
profile
]
.
append
(
script
)
if
args
[
0
]
not
in
profiles
:
if
unicode
(
args
[
0
])
not
in
profiles
:
print
_
(
"No such profile."
)
return
FAIL
if
len
(
profiles
[
args
[
0
]
])
>
1
:
if
len
(
profiles
[
unicode
(
args
[
0
])
])
>
1
:
print
_
(
"There are more than one profiles named '
%
s'"
)
%
profile
print
_
(
"Use one of the following commands:"
)
for
script
in
profiles
[
args
[
0
]
]:
for
script
in
profiles
[
unicode
(
args
[
0
])
]:
print
"
%
s info '
%
s'
%
s"
%
(
sys
.
argv
[
0
],
profile
,
script
)
return
FAIL
else
:
script
=
profiles
[
args
[
0
]
][
0
]
script
=
profiles
[
unicode
(
args
[
0
])
][
0
]
profile
=
args
[
0
]
profile
=
unicode
(
args
[
0
])
info
=
getConnectionDetails
(
bus
,
script
,
profile
)
except
dbus
.
DBusException
,
e
:
print
_
(
"Error:
%
s"
)
%
str
(
e
)
...
...
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