perubahan ke base 5

1 parent 08d19707
...@@ -821,9 +821,11 @@ class BaseApp(): ...@@ -821,9 +821,11 @@ class BaseApp():
if p["children"]: if p["children"]:
self.route_children(p["children"], row) self.route_children(p["children"], row)
def route_from_csv(self, config, get_file=get_route_file, paket="opensipkd.base.views"): def route_from_csv(self, config, paket="opensipkd.base.views"):
""" """
Get File tidak digunakan lagi Get File tidak digunakan lagi
gunakan self.base_dir untuk mendapatkan path pada saat init
self.base_dir = os.path.split(__file__)[0]
""" """
with self.get_route_file("routes.csv") as f: with self.get_route_file("routes.csv") as f:
rows = csv.DictReader(f) rows = csv.DictReader(f)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!