numbers-parser 4.11.4__py3-none-any.whl → 4.11.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
numbers_parser/model.py CHANGED
@@ -55,6 +55,7 @@ from numbers_parser.containers import ObjectStore
55
55
  from numbers_parser.exceptions import UnsupportedError
56
56
  from numbers_parser.formula import TableFormulas
57
57
  from numbers_parser.generated import TNArchives_pb2 as TNArchives
58
+ from numbers_parser.generated import TSAArchives_pb2 as TSAArchives
58
59
  from numbers_parser.generated import TSCEArchives_pb2 as TSCEArchives
59
60
  from numbers_parser.generated import TSDArchives_pb2 as TSDArchives
60
61
  from numbers_parser.generated import TSKArchives_pb2 as TSKArchives
@@ -1238,37 +1239,29 @@ class _NumbersModel(Cacheable):
1238
1239
  "Tables/HeaderStorageBucket-{}",
1239
1240
  )
1240
1241
 
1241
- # caption_storage_id, caption_storage = self.objects.create_object_from_dict(
1242
- # "CalculationEngine",
1243
- # {"text": ["TEST Caption"]},
1244
- # TSWPArchives.StorageArchive,
1245
- # )
1246
- # caption_info_id, caption_info = self.objects.create_object_from_dict(
1247
- # "CalculationEngine",
1248
- # {},
1249
- # TSAArchives.CaptionInfoArchive,
1250
- # )
1251
- # # caption_info.super.MergeFrom(TSWPArchives.ShapeInfoArchive())
1252
- # # caption_info.super.super.MergeFrom(TSDArchives.ShapeArchive())
1253
- # # caption_info.super.super.super.MergeFrom(TSDArchives.DrawableArchive())
1254
- # from_table_info = self.objects[self.table_info_id(from_table_id)]
1255
- # from_caption_info = self.objects[from_table_info.super.caption.identifier]
1256
- # caption_info.super.CopyFrom(from_caption_info.super)
1257
- # caption_info.super.super.CopyFrom(from_caption_info.super.super)
1258
- # caption_info.super.super.super.CopyFrom(from_caption_info.super.super.super)
1259
- # caption_info.super.deprecated_storage.MergeFrom(
1260
- # TSPMessages.Reference(identifier=caption_storage_id)
1261
- # )
1262
- # caption_info.super.owned_storage.MergeFrom(
1263
- # TSPMessages.Reference(identifier=caption_storage_id)
1264
- # )
1265
-
1266
- # TST.TableModelArchive.stroke_sidecar -> TST.StrokeSidecarArchive
1267
- # TST.StrokeSidecarArchive
1268
- # top_row_stroke_layers -> [TST.StrokeLayerArchive]
1269
- # left_row_stroke_layers -> [TST.StrokeLayerArchive]
1270
- # right_row_stroke_layers -> [TST.StrokeLayerArchive]
1271
- # bottom_row_stroke_layers -> [TST.StrokeLayerArchive]
1242
+ from_table_info = self.objects[self.table_info_id(from_table_id)]
1243
+ from_caption_info = self.objects[from_table_info.super.caption.identifier]
1244
+ caption_storage_id, caption_storage = self.objects.create_object_from_dict(
1245
+ "CalculationEngine",
1246
+ {"text": ["Caption"]},
1247
+ TSWPArchives.StorageArchive,
1248
+ )
1249
+ caption_storage.MergeFrom(self.objects[from_caption_info.super.owned_storage.identifier])
1250
+ caption_info_id, caption_info = self.objects.create_object_from_dict(
1251
+ "CalculationEngine",
1252
+ {},
1253
+ TSAArchives.CaptionInfoArchive,
1254
+ )
1255
+ caption_info.super.CopyFrom(from_caption_info.super)
1256
+ caption_info.super.super.CopyFrom(from_caption_info.super.super)
1257
+ caption_info.super.super.super.CopyFrom(from_caption_info.super.super.super)
1258
+ caption_info.super.deprecated_storage.MergeFrom(
1259
+ TSPMessages.Reference(identifier=caption_storage_id)
1260
+ )
1261
+ caption_info.super.owned_storage.MergeFrom(
1262
+ TSPMessages.Reference(identifier=caption_storage_id)
1263
+ )
1264
+
1272
1265
  sidecar_id, _ = self.objects.create_object_from_dict(
1273
1266
  "CalculationEngine",
1274
1267
  {"max_order": 1, "column_count": 0, "row_count": 0},
@@ -1354,10 +1347,10 @@ class _NumbersModel(Cacheable):
1354
1347
  )
1355
1348
  table_info.tableModel.MergeFrom(TSPMessages.Reference(identifier=table_model_id))
1356
1349
  table_info.super.MergeFrom(self.create_drawable(sheet_id, x, y))
1357
- # caption_info.super.super.super.parent.MergeFrom(
1358
- # TSPMessages.Reference(identifier=table_info_id)
1359
- # )
1360
- # table_info.super.caption.MergeFrom(TSPMessages.Reference(identifier=caption_info_id))
1350
+ caption_info.super.super.super.parent.MergeFrom(
1351
+ TSPMessages.Reference(identifier=table_info_id)
1352
+ )
1353
+ table_info.super.caption.MergeFrom(TSPMessages.Reference(identifier=caption_info_id))
1361
1354
  self.add_component_reference(table_info_id, "Document", self.calc_engine_id())
1362
1355
 
1363
1356
  self.add_formula_owner(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: numbers-parser
3
- Version: 4.11.4
3
+ Version: 4.11.5
4
4
  Summary: Read and write Apple Numbers spreadsheets
5
5
  Home-page: https://github.com/masaccio/numbers-parser
6
6
  License: MIT
@@ -6,7 +6,7 @@ numbers_parser/cell.py,sha256=18xi25ZoIOEwuOEX8T1FyLQBt0lx9jURE0gDIKjyGnI,76340
6
6
  numbers_parser/constants.py,sha256=L9_UhsWMqswsn1sCr-aAx_7mR2k8IHYdhpe8t_CP6lM,9924
7
7
  numbers_parser/containers.py,sha256=j0FhaXPUG5YSRK5_3WIxXQOeckHVu24KMlYetWIZ_Xg,4882
8
8
  numbers_parser/currencies.py,sha256=8k4a3WKmDoHeurkDICymHX13N7ManHSTaka_JNXCZYA,3767
9
- numbers_parser/data/empty.numbers,sha256=8JOp035V-p2ff9_Wao7mLcYvb6_if6O2cus_esjVA9k,90316
9
+ numbers_parser/data/empty.numbers,sha256=zQjVqcNGN-xNZh51_eAxD8Zxmxh88Sd7kpf4JygUA_E,90601
10
10
  numbers_parser/document.py,sha256=duj6G2lFtVOEzY3uuR865KNfw0kWswtvLSXh604Wu6Q,59182
11
11
  numbers_parser/exceptions.py,sha256=0Jnmw06YlGvYcvzqc2wiR2Y4eAgvFJLpf0tFrsmlyPU,607
12
12
  numbers_parser/experimental.py,sha256=WARjTa-2ePb8Ga8Q6oDP6EJCs12ofLRF2YpwzUu66ZI,374
@@ -50,11 +50,11 @@ numbers_parser/generated/functionmap.py,sha256=VdZo0ERMYONcrnJFwABcSCHb8pjA4wY2o
50
50
  numbers_parser/generated/mapping.py,sha256=xt1NaZtTse1OX3vBizENKkWl-0OgNb4SMJ0Uo-rRz0U,32342
51
51
  numbers_parser/iwafile.py,sha256=4_MMtHdWMAfIzwODyaM7DsWKh-8yJ2blTfbues8sbdI,11915
52
52
  numbers_parser/iwork.py,sha256=CXXM797MqcIokovrIBAx--LNG7tIVpKqeBwR4V2OrzQ,9141
53
- numbers_parser/model.py,sha256=a-GTCpaTjo6X1HG3lmIc8YtR3_Nmnf3N6zapPALff-Y,101911
53
+ numbers_parser/model.py,sha256=OP11pcTZeDUKynoNRvVA5CCkprag_QBal1zULhTgb6E,101421
54
54
  numbers_parser/numbers_cache.py,sha256=1ghEBghQAYFpPiEeOtb74i016mXc039v1pOubbqvaLs,1141
55
55
  numbers_parser/numbers_uuid.py,sha256=q0IbHFKuBXC7MnZN3g55dgCVKOLD-4SO4MdXeN6dt0g,2699
56
- numbers_parser-4.11.4.dist-info/LICENSE.rst,sha256=8vTa1-5KSdHrTpU9rlheO5005EWReEPMpjV7BjSaMc4,1050
57
- numbers_parser-4.11.4.dist-info/METADATA,sha256=nRvC0zU07dZ1q1wRwWtP3nxhROaqaHzSYF6xC3NlGWw,16212
58
- numbers_parser-4.11.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
59
- numbers_parser-4.11.4.dist-info/entry_points.txt,sha256=V91uB9vBPxf3eCY1h-0syv21imYCT0MJfMxf87DmwIk,115
60
- numbers_parser-4.11.4.dist-info/RECORD,,
56
+ numbers_parser-4.11.5.dist-info/LICENSE.rst,sha256=8vTa1-5KSdHrTpU9rlheO5005EWReEPMpjV7BjSaMc4,1050
57
+ numbers_parser-4.11.5.dist-info/METADATA,sha256=9_q8XcLwLgdMu30GSGrLCEAu_CgjpRXWEgb3GgnOeuw,16212
58
+ numbers_parser-4.11.5.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
59
+ numbers_parser-4.11.5.dist-info/entry_points.txt,sha256=V91uB9vBPxf3eCY1h-0syv21imYCT0MJfMxf87DmwIk,115
60
+ numbers_parser-4.11.5.dist-info/RECORD,,