Skip to content

Commit 78ce945

Browse files
author
vinnie87
committed
Candidate release 1.3.14
More fix for #39.
1 parent d69664a commit 78ce945

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

Server/Application_py266/CmsConfigExplorer/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Server/Application_py266/exposed/exposed.py

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,31 @@ def skipPathSequence(self, counter, items, level):
4040
counter = counter + 1
4141
return counter
4242

43-
def getPathSequenceChildren(self, counter, written_sequences, items, elements_dict, level, built_sequences, seqsMap):
43+
def getPathSequenceChildren(self, counter, written_sequences, items, elements_dict, level, built_sequences, seqsMap, modsMap):
4444
children = []
4545
while(counter < len(items) and items[counter].lvl == level):
4646
elem = elements_dict[items[counter].id_pae]
4747
item = Pathitem(items[counter].id_pae, elem.name, items[counter].id_pathid, elem.paetype, items[counter].id_parent, items[counter].lvl, items[counter].order, items[counter].operator)
4848

4949
# item.gid = seqsMap.put(idgen,elem,items[counter].id_pathid,items[counter].order,items[counter].lvl,items[counter].id)
50-
item.gid = seqsMap.put(elem,items[counter].id_pathid,items[counter].order,items[counter].lvl)
50+
# item.gid = seqsMap.put(elem,items[counter].id_pathid,items[counter].order,items[counter].lvl)
51+
if elem.paetype == 1:
52+
item.gid = modsMap.put(elem, items[counter].id_pathid, items[counter].order, items[counter].lvl)
53+
elif elem.paetype == 2:
54+
item.gid = seqsMap.put(elem,items[counter].id_pathid,items[counter].order,items[counter].lvl)
55+
5156
self.simple_counter = self.simple_counter + 1
5257
counter = counter + 1
5358
if item.paetype == 2:
5459
if item.name in written_sequences:
5560
item.expanded = False
56-
counter, new_children, written_sequences, built_sequences = self.getPathSequenceChildren(counter, written_sequences, items, elements_dict, item.lvl+1, built_sequences, seqsMap)
61+
counter, new_children, written_sequences, built_sequences = self.getPathSequenceChildren(counter, written_sequences, items, elements_dict, item.lvl+1, built_sequences, seqsMap, modsMap)
5762
for child in new_children:
5863
item.children.append(child)
5964

6065
else:
6166
item.expanded = False
62-
counter, new_children, written_sequences, built_sequences = self.getPathSequenceChildren(counter, written_sequences, items, elements_dict, item.lvl+1, built_sequences, seqsMap)
67+
counter, new_children, written_sequences, built_sequences = self.getPathSequenceChildren(counter, written_sequences, items, elements_dict, item.lvl+1, built_sequences, seqsMap, modsMap)
6368
for child in new_children:
6469
item.children.append(child)
6570

@@ -125,7 +130,12 @@ def getPathItems(self, patsMap, seqsMap, modsMap, gid, ver, db, log):
125130
elem = elements_dict[items[counter].id_pae]
126131
item = Pathitem(items[counter].id_pae, elem.name, items[counter].id_pathid, elem.paetype, items[counter].id_parent, items[counter].lvl, items[counter].order, items[counter].operator)
127132
# item.gid = seqsMap.put(idgen,elem,items[counter].id_pathid,items[counter].order,items[counter].lvl,items[counter].id)
128-
item.gid = seqsMap.put(elem,items[counter].id_pathid,items[counter].order,items[counter].lvl)
133+
# item.gid = seqsMap.put(elem,items[counter].id_pathid,items[counter].order,items[counter].lvl)
134+
135+
if elem.paetype == 1:
136+
item.gid = modsMap.put(elem, items[counter].id_pathid, items[counter].order, items[counter].lvl)
137+
elif elem.paetype == 2:
138+
item.gid = seqsMap.put(elem,items[counter].id_pathid,items[counter].order,items[counter].lvl)
129139

130140
self.simple_counter = self.simple_counter + 1
131141
counter = counter + 1
@@ -138,7 +148,7 @@ def getPathItems(self, patsMap, seqsMap, modsMap, gid, ver, db, log):
138148
if item.name in written_sequences:
139149
counter = self.skipPathSequence(counter, items, item.lvl+1)
140150
else:
141-
counter, new_children, written_sequences, built_sequences = self.getPathSequenceChildren(counter, written_sequences, items, elements_dict, item.lvl+1, built_sequences, seqsMap)
151+
counter, new_children, written_sequences, built_sequences = self.getPathSequenceChildren(counter, written_sequences, items, elements_dict, item.lvl+1, built_sequences, seqsMap, modsMap)
142152
for child in new_children:
143153

144154
item.children.append(child)
@@ -248,7 +258,12 @@ def getEndPathItems(self, patsMap, seqsMap, modsMap, oumodsMap, gid, ver, db, lo
248258
elem = elements_dict[items[counter].id_pae]
249259
item = Pathitem(items[counter].id_pae, elem.name, items[counter].id_pathid, elem.paetype, items[counter].id_parent, items[counter].lvl, items[counter].order, items[counter].operator)
250260
# item.gid = seqsMap.put(idgen,elem,items[counter].id_pathid,items[counter].order,items[counter].lvl,items[counter].id)
251-
item.gid = seqsMap.put(elem,items[counter].id_pathid,items[counter].order,items[counter].lvl)
261+
# item.gid = seqsMap.put(elem,items[counter].id_pathid,items[counter].order,items[counter].lvl)
262+
263+
if elem.paetype == 1:
264+
item.gid = modsMap.put(elem, items[counter].id_pathid, items[counter].order, items[counter].lvl)
265+
elif elem.paetype == 2:
266+
item.gid = seqsMap.put(elem,items[counter].id_pathid,items[counter].order,items[counter].lvl)
252267

253268
self.simple_counter = self.simple_counter + 1
254269
counter = counter + 1
@@ -261,7 +276,7 @@ def getEndPathItems(self, patsMap, seqsMap, modsMap, oumodsMap, gid, ver, db, lo
261276
if item.name in written_sequences:
262277
counter = self.skipPathSequence(counter, items, item.lvl+1)
263278
else:
264-
counter, new_children, written_sequences, built_sequences = self.getPathSequenceChildren(counter, written_sequences, items, elements_dict, item.lvl+1, built_sequences, seqsMap)
279+
counter, new_children, written_sequences, built_sequences = self.getPathSequenceChildren(counter, written_sequences, items, elements_dict, item.lvl+1, built_sequences, seqsMap, modsMap)
265280
for child in new_children:
266281

267282
item.children.append(child)

0 commit comments

Comments
 (0)