Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
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ç
LibreOffice
core
Commits
0e5f695a
Kaydet (Commit)
0e5f695a
authored
Şub 02, 2013
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pyagenda: load the proper data for each topic
Change-Id: Ia7d8d65a868b86c81feb489328cbcb6bbd4f75f6
üst
ae4d40f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
CGAgenda.py
wizards/com/sun/star/wizards/agenda/CGAgenda.py
+1
-2
ConfigSet.py
wizards/com/sun/star/wizards/common/ConfigSet.py
+5
-8
No files found.
wizards/com/sun/star/wizards/agenda/CGAgenda.py
Dosyayı görüntüle @
0e5f695a
...
...
@@ -17,7 +17,6 @@
#
from
..common.ConfigGroup
import
ConfigGroup
from
..common.ConfigSet
import
ConfigSet
from
.CGTopic
import
CGTopic
class
CGAgenda
(
ConfigGroup
):
...
...
@@ -43,4 +42,4 @@ class CGAgenda(ConfigGroup):
self
.
cp_TemplatePath
=
str
()
self
.
cp_ProceedMethod
=
int
()
self
.
cp_Topics
=
ConfigSet
(
CGTopic
()
)
self
.
cp_Topics
=
ConfigSet
()
wizards/com/sun/star/wizards/common/ConfigSet.py
Dosyayı görüntüle @
0e5f695a
...
...
@@ -16,9 +16,9 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
import
traceback
import
inspect
from
.ConfigGroup
import
ConfigGroup
from
.Configuration
import
Configuration
from
..agenda.CGTopic
import
CGTopic
class
ConfigSet
(
ConfigGroup
):
'''
...
...
@@ -30,13 +30,9 @@ class ConfigSet(ConfigGroup):
to avoid this "deletion" of nulls.
'''
def
__init__
(
self
,
topic
):
self
.
topic
=
topic
def
__init__
(
self
):
self
.
childrenList
=
[]
def
add
(
self
,
name
,
o
):
self
.
childrenList
.
append
(
o
)
def
writeConfiguration
(
self
,
configView
,
param
):
names
=
self
.
childrenMap
.
keys
()
if
isinstance
(
self
.
childClass
,
ConfigNode
):
...
...
@@ -68,8 +64,9 @@ class ConfigSet(ConfigGroup):
if
names
:
for
i
in
names
:
try
:
self
.
topic
.
readConfiguration
(
topic
=
CGTopic
()
topic
.
readConfiguration
(
configurationView
.
getByName
(
i
),
param
)
self
.
add
(
i
,
self
.
topic
)
self
.
childrenList
.
append
(
topic
)
except
Exception
:
traceback
.
print_exc
()
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