Commit 5436679d by aa.gusti

perbaikan url grid

1 parent 13636aad
...@@ -255,8 +255,10 @@ class BaseView(object): ...@@ -255,8 +255,10 @@ class BaseView(object):
list_url = kwargs.get("list_url", self.list_url) list_url = kwargs.get("list_url", self.list_url)
if not list_url and self.list_route: if not list_url and self.list_route:
list_url = self.req.route_url(self.list_route) list_url = self.req.route_url(self.list_route)
list_url = list_url and list_url[0:1] != "/" and "/" + list_url or list_url else:
list_url = self.home + list_url list_url = list_url and list_url[0:1] != "/" and "/" + list_url or list_url
list_url = self.home + list_url
action_suffix = list_url and kwargs.get("action_suffix", "/grid/act") or None action_suffix = list_url and kwargs.get("action_suffix", "/grid/act") or None
table = DeTable(schema, table = DeTable(schema,
action=list_url, action=list_url,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!