revisit 0.0.14__py2.py3-none-any.whl → 0.0.15__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
revisit/revisit.py CHANGED
@@ -450,22 +450,26 @@ def widget(study: _WrappedStudyConfig, revisitPath: str):
450
450
  extracted_paths = []
451
451
 
452
452
  for component in study.root.components.values():
453
- if hasattr(component.root, 'path'):
453
+ print(component.root)
454
+ actual_component = component.root
455
+ if hasattr(actual_component, 'root'):
456
+ actual_component = actual_component.root
457
+ if hasattr(actual_component, 'path'):
454
458
 
455
- fileName = component.root.path.split('/')[-1]
459
+ fileName = actual_component.path.split('/')[-1]
456
460
 
457
- if component.root.type == 'react-component':
461
+ if actual_component.type == 'react-component':
458
462
  dest = f"{revisitPath}/src/public/__revisit-widget/assets/{fileName}"
459
463
  else:
460
464
  dest = f"{revisitPath}/public/__revisit-widget/assets/{fileName}"
461
465
 
462
466
  extracted_paths.append({
463
- "src": component.root.path,
467
+ "src": actual_component.path,
464
468
  "dest": dest
465
469
  })
466
470
 
467
471
  newPath = f"__revisit-widget/assets/{fileName}"
468
- component.root.path = newPath
472
+ actual_component.path = newPath
469
473
 
470
474
  uiConfig = study.root.uiConfig
471
475
  if uiConfig.helpTextPath is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: revisit
3
- Version: 0.0.14
3
+ Version: 0.0.15
4
4
  Requires-Dist: altair[all]>=5.5.0
5
5
  Requires-Dist: anywidget
6
6
  Requires-Dist: ipykernel>=6.29.5
@@ -1,10 +1,10 @@
1
1
  revisit/StudyConfigSchema.json,sha256=xtzwZifuPJoiHASx0o8PHqBuh5L30mjBlhQ5eqsYm10,132168
2
2
  revisit/__init__.py,sha256=QCvYt8m9QwpjcK4dv6GlLMUDCzRXGy16cua1r2biNCg,255
3
3
  revisit/models.py,sha256=FRy8IlUAtDS3gdmZwwvqR935lbViTPnnr7k0CAkDkzI,134084
4
- revisit/revisit.py,sha256=ZJDKbaQqvMTatcBxO8l7LhQ-EBb-2A_RKinQTIJe58k,26864
4
+ revisit/revisit.py,sha256=yx6WApoJ0M5B0jPf6vsNVSgt7mWbm2BVfpEiQLHbQ4Q,27045
5
5
  revisit/widget.py,sha256=VvFqRvvvn86fW8ASe1pxaAvh5ZLvvSRThI5XtlCdgcg,915
6
6
  revisit/static/widget.css,sha256=GlTPXc8vQmM78wYzPsTppy3r_zOqG7sqY1hKSmmmZNk,2769
7
7
  revisit/static/widget.js,sha256=g1wG7qkotTDfDJ3F91jluJGQknDvYR3aL5DTrsOdY5w,1358091
8
- revisit-0.0.14.dist-info/METADATA,sha256=WBQTLNcWgKaSrJSYNgWl4WvlcrsM9ZrZ3Jt4R4uVszw,8943
9
- revisit-0.0.14.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
10
- revisit-0.0.14.dist-info/RECORD,,
8
+ revisit-0.0.15.dist-info/METADATA,sha256=slQt5etPsvwsVEJGX-mRRQXuOzv26oMIYdfsizaCy58,8943
9
+ revisit-0.0.15.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
10
+ revisit-0.0.15.dist-info/RECORD,,