@@ -72,7 +72,7 @@ def have_current_state_entry(self, wid, key):
7272 'Do nothing impl - only matters if state present'
7373 pass
7474
75- def get_base_pathname (self , specific_identifier ):
75+ def get_base_pathname (self , specific_identifier , stub = None ):
7676 if not specific_identifier :
7777 app_pathname = "%s:app-%s" % (app_name , main_view_label )
7878 ndid = self ._uid
@@ -83,13 +83,16 @@ def get_base_pathname(self, specific_identifier):
8383 try :
8484 full_url = reverse (app_pathname ,kwargs = {'id' :ndid })
8585 except :
86- full_url = "/%s/" % ndid
86+ if stub :
87+ full_url = "%s/%s/" % (stub ,ndid )
88+ else :
89+ full_url = ndid
8790
8891 return ndid , full_url
8992
90- def form_dash_instance (self , replacements = None , specific_identifier = None ):
93+ def form_dash_instance (self , replacements = None , specific_identifier = None , stub = None ):
9194
92- ndid , base_pathname = self .get_base_pathname (specific_identifier )
95+ ndid , base_pathname = self .get_base_pathname (specific_identifier , stub )
9396
9497 rd = NotDash (base_pathname = base_pathname ,
9598 expanded_callbacks = self ._expanded_callbacks ,
@@ -153,7 +156,7 @@ def __init__(self, base_pathname=None, replacements = None, ndid=None, expanded_
153156 super (NotDash , self ).__init__ (** kwargs )
154157
155158 self .css .config .serve_locally = True
156- # self.css.config.serve_locally = False
159+ self .css .config .serve_locally = False
157160
158161 self .scripts .config .serve_locally = self .css .config .serve_locally
159162
0 commit comments