@@ -3213,7 +3213,7 @@ def get_vars_in_use(interview, interview_status, debug_mode=False, return_json=F
3213
3213
if base_name_info[var]['show']:
3214
3214
names_used.add(var)
3215
3215
names_used = set([i for i in names_used if not extraneous_var.search(i)])
3216
- for var in ('_internal', '__object_type'):
3216
+ for var in ('_internal', '__object_type', '_DAOBJECTDEFAULTDA' ):
3217
3217
names_used.discard(var)
3218
3218
for var in interview.mlfields:
3219
3219
names_used.discard(var + '.text')
@@ -3271,7 +3271,7 @@ def get_vars_in_use(interview, interview_status, debug_mode=False, return_json=F
3271
3271
while '.' in the_var:
3272
3272
the_var = re.sub(r'(.*)\..*$', r'\1', the_var)
3273
3273
implicitly_defined.add(the_var)
3274
- for var in ('_internal', '__object_type'):
3274
+ for var in ('_internal', '__object_type', '_DAOBJECTDEFAULTDA' ):
3275
3275
undefined_names.discard(var)
3276
3276
vocab_set.discard(var)
3277
3277
for var in [x for x in undefined_names if x.endswith(']')]:
@@ -7330,6 +7330,23 @@ def index(action_argument=None):
7330
7330
else{
7331
7331
daTargetDiv = "#dabody";
7332
7332
}
7333
+ function getFields(){
7334
+ var allFields = [];
7335
+ for (var fieldName in daValLookup){
7336
+ if (daValLookup.hasOwnProperty(fieldName)){
7337
+ allFields.push(fieldName);
7338
+ }
7339
+ }
7340
+ for (var rawFieldName in daVarLookup){
7341
+ if (daVarLookup.hasOwnProperty(rawFieldName)){
7342
+ var fieldName = atob(rawFieldName);
7343
+ if (allFields.indexOf(fieldName) == -1){
7344
+ allFields.push(fieldName);
7345
+ }
7346
+ }
7347
+ }
7348
+ return allFields;
7349
+ }
7333
7350
function getField(fieldName){
7334
7351
if (typeof daValLookup[fieldName] == "undefined"){
7335
7352
var fieldNameEscaped = btoa(fieldName).replace(/[\\n=]/g, '');//.replace(/(:|\.|\[|\]|,|=)/g, "\\\\$1");
@@ -11227,6 +11244,23 @@ def observer():
11227
11244
}
11228
11245
}
11229
11246
}
11247
+ function getFields(){
11248
+ var allFields = [];
11249
+ for (var fieldName in daValLookup){
11250
+ if (daValLookup.hasOwnProperty(fieldName)){
11251
+ allFields.push(fieldName);
11252
+ }
11253
+ }
11254
+ for (var rawFieldName in daVarLookup){
11255
+ if (daVarLookup.hasOwnProperty(rawFieldName)){
11256
+ var fieldName = atob(rawFieldName);
11257
+ if (allFields.indexOf(fieldName) == -1){
11258
+ allFields.push(fieldName);
11259
+ }
11260
+ }
11261
+ }
11262
+ return allFields;
11263
+ }
11230
11264
function getField(fieldName){
11231
11265
if (typeof daValLookup[fieldName] == "undefined"){
11232
11266
var fieldNameEscaped = btoa(fieldName).replace(/[\\n=]/g, '');//.replace(/(:|\.|\[|\]|,|=)/g, "\\\\$1");
@@ -17361,6 +17395,17 @@ def playground_packages():
17361
17395
the_pypi_package_name = None
17362
17396
if github_message is not None and github_url_from_file is not None and github_url_from_file != github_http and github_url_from_file != github_ssh:
17363
17397
github_message += ' ' + word("This package was originally pulled from") + ' <a target="_blank" href="' + github_as_http(github_url_from_file) + '">' + word('a GitHub repository') + '</a>.'
17398
+ if github_message is not None and old_info.get('github_branch', None) and (github_http or github_url_from_file):
17399
+ html_url = github_http or github_url_from_file
17400
+ commit_code = None
17401
+ current_commit_file = os.path.join(directory_for(area['playgroundpackages'], current_project), '.' + github_package_name)
17402
+ if os.path.isfile(current_commit_file):
17403
+ with open(current_commit_file, 'rU', encoding='utf-8') as fp:
17404
+ commit_code = fp.read().strip()
17405
+ if commit_code:
17406
+ github_message += ' ' + word('The current branch is %s and the current commit is %s.') % ('<a target="_blank" href="' + html_url + '/tree/' + old_info['github_branch'] + '">' + old_info['github_branch'] + '</a>', '<a target="_blank" href="' + html_url + '/commit/' + commit_code + '"><code>' + commit_code[0:7] + '</code></a>')
17407
+ else:
17408
+ github_message += ' ' + word('The current branch is %s.') % ('<a target="_blank" href="' + html_url + '/tree/' + old_info['github_branch'] + '">' + old_info['github_branch'] + '</a>',)
17364
17409
if github_message is not None:
17365
17410
github_message = Markup(github_message)
17366
17411
branch = old_info.get('github_branch', None)
0 commit comments