equal
deleted
inserted
replaced
43 DEF_SUBMIT_MSG_PARAM_NAME = 's' |
43 DEF_SUBMIT_MSG_PARAM_NAME = 's' |
44 DEF_SUBMIT_MSG_PROFILE_SAVED = 0 |
44 DEF_SUBMIT_MSG_PROFILE_SAVED = 0 |
45 |
45 |
46 |
46 |
47 def constructParams(params): |
47 def constructParams(params): |
48 """Constructs a new params dictionary based on params |
48 """Constructs a new params dictionary based on params. |
49 |
49 |
50 Params usage: |
50 Params usage: |
51 The params dictionary is passed to getCreateForm and getEditForm, |
51 The params dictionary is passed to getCreateForm and getEditForm, |
52 see their docstring on how they use it. |
52 see their docstring on how they use it. |
53 |
53 |
256 |
256 |
257 result = '/'.join(patterns) |
257 result = '/'.join(patterns) |
258 return result |
258 return result |
259 |
259 |
260 def getScopePattern(params): |
260 def getScopePattern(params): |
261 """Returns the Scope pattern for this entity |
261 """Returns the Scope pattern for this entity. |
262 """ |
262 """ |
263 |
263 |
264 logic = params['logic'] |
264 logic = params['logic'] |
265 depth = logic.getScopeDepth() |
265 depth = logic.getScopeDepth() |
266 if depth is None: |
266 if depth is None: |