PySimultan 0.4.7__py3-none-any.whl → 0.4.8__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- PySimultan2/__about__.py +1 -1
- PySimultan2/object_mapper.py +12 -3
- PySimultan2/taxonomy_maps.py +2 -1
- {pysimultan-0.4.7.dist-info → pysimultan-0.4.8.dist-info}/METADATA +1 -1
- {pysimultan-0.4.7.dist-info → pysimultan-0.4.8.dist-info}/RECORD +7 -7
- {pysimultan-0.4.7.dist-info → pysimultan-0.4.8.dist-info}/WHEEL +0 -0
- {pysimultan-0.4.7.dist-info → pysimultan-0.4.8.dist-info}/licenses/LICENSE.txt +0 -0
PySimultan2/__about__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version = '0.4.
|
1
|
+
version = '0.4.8'
|
PySimultan2/object_mapper.py
CHANGED
@@ -187,10 +187,19 @@ class PythonMapper(object):
|
|
187
187
|
c_slot = list(set(c_slots) & set(self.registered_classes.keys()))
|
188
188
|
if len(c_slot) == 0:
|
189
189
|
if c_slots[0] not in self.registered_classes.keys() and self.load_undefined:
|
190
|
-
|
190
|
+
|
191
|
+
def new_init(self, *args, **kwargs):
|
192
|
+
pass
|
193
|
+
|
194
|
+
new_cls = type(c_slots[0],
|
195
|
+
(object,),
|
196
|
+
{'__init__': new_init}
|
197
|
+
)
|
198
|
+
|
199
|
+
self.register(c_slots[0], new_cls)
|
191
200
|
c_slot = [c_slots[0]]
|
192
|
-
self.undefined_registered_classes[c_slot[0]] =
|
193
|
-
self.create_mapped_class(c_slot[0], self.registered_classes[c_slot[0]])
|
201
|
+
self.undefined_registered_classes[c_slot[0]] = new_cls
|
202
|
+
# self.create_mapped_class(c_slot[0], self.registered_classes[c_slot[0]])
|
194
203
|
elif len(c_slot) > 1:
|
195
204
|
num_superclasses = [len(self.registered_classes[x].__mro__) for x in c_slot]
|
196
205
|
c_slot = [c_slot[num_superclasses.index(max(num_superclasses))]]
|
PySimultan2/taxonomy_maps.py
CHANGED
@@ -170,7 +170,8 @@ class TaxonomyMap(object):
|
|
170
170
|
return self._taxonomies[data_model]
|
171
171
|
|
172
172
|
def get_slot(self, data_model: 'DataModel'):
|
173
|
-
return SimTaxonomyEntryReference(self.get_or_create_simultan_taxonomy_entry(data_model=data_model,
|
173
|
+
return SimTaxonomyEntryReference(self.get_or_create_simultan_taxonomy_entry(data_model=data_model,
|
174
|
+
create=True))
|
174
175
|
|
175
176
|
@cache
|
176
177
|
def get_content_by_property_name(self, property_name: str):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: PySimultan
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.8
|
4
4
|
Project-URL: Documentation, https://github.com/Bühler Maximilian/PySimultan2#readme
|
5
5
|
Project-URL: Issues, https://github.com/Bühler Maximilian/PySimultan2/issues
|
6
6
|
Project-URL: Source, https://github.com/Bühler Maximilian/PySimultan2
|
@@ -1,12 +1,12 @@
|
|
1
|
-
PySimultan2/__about__.py,sha256=
|
1
|
+
PySimultan2/__about__.py,sha256=GsPj5qnDEXOmHojoKYA64xByfBNGOIpPpbmrDmCXpAE,19
|
2
2
|
PySimultan2/__init__.py,sha256=cabTN1Oz8xtFM31ouBKg5lwLqW5vtexDP669PYyNLnA,3224
|
3
3
|
PySimultan2/data_model.py,sha256=CHLfdOFF1blU-TBcn9vK98ejNRMrXUS-hvQEkZI9y4U,27016
|
4
4
|
PySimultan2/default_types.py,sha256=v_4awsUURLbu4Sfw7J_7BoQKirXbKdU9s7-wqgA4nNE,23112
|
5
5
|
PySimultan2/files.py,sha256=gx3BA6WYjNVplqqes7jkPopp6O50pgLvantXgmitx54,12657
|
6
6
|
PySimultan2/multi_values.py,sha256=ZFXlTLuZo32x7_7diYAp2XEjp5uwgHLgNOzN7v74-5I,13650
|
7
|
-
PySimultan2/object_mapper.py,sha256=
|
7
|
+
PySimultan2/object_mapper.py,sha256=8E06yH5Vz_EaCeJX7UpwGn2cggg7WjhBRR8MHXT420Q,11190
|
8
8
|
PySimultan2/simultan_object.py,sha256=Plr9nwgRmKzdkTO7l8ksWekEow9pT-MgjjAfLlChgDI,17208
|
9
|
-
PySimultan2/taxonomy_maps.py,sha256=
|
9
|
+
PySimultan2/taxonomy_maps.py,sha256=IYpIat6ZJi5MyCbsjAxWvVOWDRp_VvSMWUY3CApKSik,8061
|
10
10
|
PySimultan2/utils.py,sha256=J3T7KDfONFeLWBulXmGMCaaOu5sfkDSHmI92JWO8dW4,62553
|
11
11
|
PySimultan2/geometry/__init__.py,sha256=nJolTD1i5J8qUkOQa-r3D20aq3Co3sN31Xc0n4wJpJo,248
|
12
12
|
PySimultan2/geometry/geometry_base.py,sha256=jOTNMISGLRjUUjVfPZ64A2Fp4oinv42polIct9bgIY4,23417
|
@@ -75,7 +75,7 @@ PySimultan2/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
75
75
|
PySimultan2/resources/assimp.dll,sha256=HwfDwXqoPDTFRyoQpA3qmgZoUdFtziJkV5fNtktEZEU,6081536
|
76
76
|
PySimultan2/resources/defaultsettings.xml,sha256=s6Tk1tubLz5UYqXZWpD42EDHzedemRY1nEneoIVcUfg,392
|
77
77
|
PySimultan2/resources/setup.bat,sha256=fjvvYfVM6TalS-QTSiKAbAId5nTsk8kGGo06ba-wWaY,32
|
78
|
-
pysimultan-0.4.
|
79
|
-
pysimultan-0.4.
|
80
|
-
pysimultan-0.4.
|
81
|
-
pysimultan-0.4.
|
78
|
+
pysimultan-0.4.8.dist-info/METADATA,sha256=j_R11uOAuRYWfnvDzoOoyaDfw1LkE3ABfgvKrIRk7h4,1657
|
79
|
+
pysimultan-0.4.8.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
80
|
+
pysimultan-0.4.8.dist-info/licenses/LICENSE.txt,sha256=pmSr98k6N005KMojnZxzLGRuRlDjDx3PUrK1lFj53HA,1126
|
81
|
+
pysimultan-0.4.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|