Fix config file priority for display, and batch subprocess commands
This commit is contained in:
parent
549976dcfb
commit
72e4daafc1
|
@ -51,7 +51,7 @@
|
|||
</b-icon>
|
||||
</span>
|
||||
|
||||
<strong>Configuration Files</strong>
|
||||
<span>Configuration Files (style: ${request.rattail_config._style})</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -116,7 +116,7 @@
|
|||
${parent.modify_this_page_vars()}
|
||||
<script type="text/javascript">
|
||||
|
||||
ThisPageData.configFiles = ${json.dumps([dict(path=p, priority=i) for i, p in enumerate(reversed(request.rattail_config.files_read), 1)])|n}
|
||||
ThisPageData.configFiles = ${json.dumps([dict(path=p, priority=i) for i, p in enumerate(request.rattail_config.prioritized_files, 1)])|n}
|
||||
|
||||
</script>
|
||||
</%def>
|
||||
|
|
|
@ -931,7 +931,7 @@ class BatchMasterView(MasterView):
|
|||
prefix = self.rattail_config.get('rattail', 'command_prefix',
|
||||
default=sys.prefix)
|
||||
cmd = [os.path.join(prefix, 'bin/{}'.format(command))]
|
||||
for path in reversed(self.rattail_config.files_read):
|
||||
for path in self.rattail_config.prioritized_files:
|
||||
cmd.extend(['--config', path])
|
||||
if username:
|
||||
cmd.extend(['--runas', username])
|
||||
|
|
Loading…
Reference in a new issue