Skip to content

Commit 0e7b8bc

Browse files
committed
refactor: Unused Page Class and data.py
1 parent 343c03e commit 0e7b8bc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

app/page.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
from taipy.gui import Markdown
2-
from app import config as cfg
31

2+
# NOT WORKING
3+
# Generate page from Markdown file
4+
# see company.py for example of use case
5+
# class Page:
6+
# def __init__(self, id: str):
7+
# self.id = id
48

5-
class Page:
6-
def __init__(self, id: str):
7-
self.id = id
8-
9-
def markdown(self) -> Markdown:
10-
# caller = inspect.currentframe().f_back
11-
# print("PAGED Called from module", caller.f_globals['__name__'])
12-
# print(f"{cfg.PAGES_PATH}/{self.id}/{self.id}.md")
13-
return Markdown(f"{cfg.PAGES_PATH}/{self.id}/{self.id}.md")
9+
# def markdown(self) -> Markdown:
10+
# # caller = inspect.currentframe().f_back
11+
# # print("PAGED Called from module", caller.f_globals['__name__'])
12+
# # print(f"{cfg.PAGES_PATH}/{self.id}/{self.id}.md")
13+
# return Markdown(f"{cfg.PAGES}/{self.id}/{self.id}.md")

0 commit comments

Comments
 (0)