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
6b7476c3
Kaydet (Commit)
6b7476c3
authored
Mar 08, 2009
tarafından
Fatih Aşıcı
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add initial attribute to indicate initial config
üst
b284035c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
config.py
zorg/zorg/config.py
+16
-5
No files found.
zorg/zorg/config.py
Dosyayı görüntüle @
6b7476c3
...
...
@@ -169,8 +169,15 @@ def getDeviceInfo(busId):
activeConfigTag
=
cardTag
.
getTag
(
"ActiveConfig"
)
driverTag
=
activeConfigTag
.
getTag
(
"Driver"
)
device
.
driver
=
driverTag
.
firstChild
()
.
data
()
device
.
package
=
driverTag
.
getAttribute
(
"package"
)
if
driverTag
:
device
.
driver
=
driverTag
.
firstChild
()
.
data
()
device
.
package
=
driverTag
.
getAttribute
(
"package"
)
else
:
device
.
driver
=
None
initial
=
activeConfigTag
.
getAttribute
(
"initial"
)
if
initial
and
initial
==
"true"
:
return
device
device
.
depth
=
activeConfigTag
.
getTagData
(
"Depth"
)
...
...
@@ -254,7 +261,9 @@ def saveDeviceInfo(card):
driver
.
setAttribute
(
"package"
,
card
.
package
)
driver
.
insertData
(
card
.
driver
)
if
not
card
.
initial
:
if
card
.
initial
:
config
.
setAttribute
(
"initial"
,
"true"
)
else
:
addTag
(
config
,
"Depth"
,
card
.
depth
)
addTag
(
config
,
"DesktopSetup"
,
card
.
desktop_setup
)
...
...
@@ -287,9 +296,11 @@ def saveDeviceInfo(card):
if
card
.
monitors
.
has_key
(
outName
):
addMonitor
(
outName
,
"SecondMonitor"
)
f
=
file
(
configFile
,
"w"
)
f
=
open
(
configFile
,
"w"
)
f
.
write
(
doc
.
toPrettyString
()
.
replace
(
"
\n\n
"
,
""
))
f
.
close
()
f
=
open
(
os
.
path
.
join
(
zorgConfigDir
,
"configured_card"
),
"w"
)
f
.
write
(
info
[
"bus-id"
])
def
getKeymap
():
layout
=
None
...
...
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