6 """ |
6 """ |
7 Module implementing a class for reading an XML multi project file. |
7 Module implementing a class for reading an XML multi project file. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
|
11 |
|
12 from PyQt6.QtCore import QUuid |
11 |
13 |
12 from eric7 import Utilities |
14 from eric7 import Utilities |
13 |
15 |
14 from .Config import multiProjectFileFormatVersion |
16 from .Config import multiProjectFileFormatVersion |
15 from .XMLStreamReaderBase import XMLStreamReaderBase |
17 from .XMLStreamReaderBase import XMLStreamReaderBase |
83 uid = self.attribute("uid", "") |
85 uid = self.attribute("uid", "") |
84 if uid: |
86 if uid: |
85 project["uid"] = uid |
87 project["uid"] = uid |
86 else: |
88 else: |
87 # upgrade from pre 5.1 format |
89 # upgrade from pre 5.1 format |
88 from PyQt6.QtCore import QUuid |
|
89 |
|
90 project["uid"] = QUuid.createUuid().toString() |
90 project["uid"] = QUuid.createUuid().toString() |
91 project["master"] = self.toBool(self.attribute("isMaster", "False")) |
91 project["master"] = self.toBool(self.attribute("isMaster", "False")) |
92 |
92 |
93 while not self.atEnd(): |
93 while not self.atEnd(): |
94 self.readNext() |
94 self.readNext() |