Skip to content

Commit 0b0c404

Browse files
author
khz
committed
fixed bug in relative path template loading behaviour on windows and linux/osx
1 parent f9ea815 commit 0b0c404

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

pythononwheels/start/handlers/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ def success(self, message=None, data=None, succ=None, prev=None,
302302
# for elem in data:
303303
# print("elem: " + str(type(elem)))
304304
viewname = self.__class__.__name__ + "_" + self.view + ".tmpl"
305-
vpath = os.path.join(cfg.templates["template_path"], str.lower(self.__class__.__name__ ))
305+
#vpath = os.path.join(cfg.templates["template_path"], str.lower(self.__class__.__name__ ))
306+
vpath = str.lower(self.__class__.__name__ )
306307
viewname = os.path.join(vpath, viewname)
307308
print(" ... looking for view: " + viewname)
308309
if self.view is not None:

pythononwheels/start/stubs/scaffold_edit_view.bs4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "base.bs4" %}
1+
{% extends ../base.bs4 %}
22

33
{% block include_js %}
44
<script

pythononwheels/start/stubs/scaffold_list_view.bs4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "base.bs4" %}
1+
{% extends ../base.bs4 %}
22

33
{% block include_js %}
44
<script

pythononwheels/start/stubs/scaffold_new_view.bs4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "base.bs4" %}
1+
{% extends ../base.bs4 %}
22

33
{% block include_js %}
44
<script

pythononwheels/start/stubs/scaffold_page_view.bs4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "base.bs4" %}
1+
{% extends ../base.bs4 %}
22

33
{% block include_js %}
44
<script

pythononwheels/start/stubs/scaffold_show_view.bs4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "base.bs4" %}
1+
{% extends ../base.bs4 %}
22

33
{% block content %}
44

0 commit comments

Comments
 (0)