Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit46f6fd1

Browse files
committed
fix reference with relative path
1 parent1395e36 commit46f6fd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎uliweb_apijson/apijson/views.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ def _apply_vars(self):
3636
ifv:
3737
self.rdict[key[:-1]]=v
3838

39-
def_ref_get(self,path,context={}):
39+
def_ref_get(self,path,context=None):
40+
ifcontext==None:
41+
context= {}
4042
ifpath[0]=="/":
4143
#relative path
4244
c=context
@@ -143,7 +145,7 @@ def _get_one(self,key):
143145
ref_fields.append(n)
144146
col_name=n[:-1]
145147
path=params[n]
146-
refs[col_name]=self._ref_get(path)
148+
refs[col_name]=self._ref_get(path,context=self.rdict)
147149
foriinref_fields:
148150
delparams[i]
149151
params.update(refs)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp