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
a118e2d1
Kaydet (Commit)
a118e2d1
authored
Haz 04, 2009
tarafından
Bahadır Kandemir
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
New release, fixes API break in previous release
üst
f9ca367c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
README
api/README
+3
-0
__init__.py
api/comar/__init__.py
+4
-2
No files found.
api/README
Dosyayı görüntüle @
a118e2d1
...
...
@@ -9,6 +9,9 @@ Here are some examples for accessing COMAR:
# Localize strings
link.setLocale()
# Never use authentication agent (GUI)
link.useAgent(False)
# Get a list of packages that provide system.service method
packages = list(link.System.Service)
...
...
api/comar/__init__.py
Dosyayı görüntüle @
a118e2d1
...
...
@@ -9,7 +9,7 @@
# option) any later version. Please read the COPYING file.
#
__version__
=
'2.4.
2
'
__version__
=
'2.4.
3
'
import
dbus
import
locale
...
...
@@ -143,7 +143,9 @@ class Link:
self
.
address
=
"tr.org.pardus.comar"
self
.
interface
=
"tr.org.pardus.comar"
self
.
socket
=
socket
self
.
use_agent
=
False
# Auto-enable agent, if X session present.
self
.
use_agent
=
(
"DISPLAY"
in
os
.
environ
)
if
not
socket
:
self
.
bus
=
dbus
.
SystemBus
()
...
...
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