Skip to content

Commit af017f1

Browse files
author
dabercro
committed
Remove showlog and fix dict_keys stuff
1 parent 28ee150 commit af017f1

7 files changed

Lines changed: 3 additions & 68 deletions

File tree

docs/api.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ From the URL root index, users will be able to directly access the following:
1616
- :ref:`global-view-ref`
1717
- :ref:`new-user-ref`
1818
- :ref:`reset-pass-ref`
19-
- :ref:`show-logs-ref`
2019

2120
.. _global-view-ref:
2221

@@ -53,13 +52,6 @@ Reporting Completed Actions
5352

5453
.. automethod:: workflowtools.WorkflowTools.reportaction
5554

56-
.. _show-logs-ref:
57-
58-
Viewing Workflow Logs
59-
~~~~~~~~~~~~~~~~~~~~~
60-
61-
.. automethod:: workflowtools.WorkflowTools.showlog
62-
6355
.. _new-user-ref:
6456

6557
Creating a New Account

docs/python_modules.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ Manage Actions
5555
.. automodule:: WorkflowWebTools.manageactions
5656
:members:
5757

58-
Show Log
59-
~~~~~~~~
60-
61-
.. automodule:: WorkflowWebTools.showlog
62-
:members:
63-
6458
Classifying Errors
6559
~~~~~~~~~~~~~~~~~~
6660

workflowwebtools/errorutils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def open_location(data_location):
8585
if raw is None:
8686
return raw
8787

88-
keys = raw.keys()
89-
if not (keys and isinstance(raw[keys[0]], list)):
88+
if not (raw and isinstance(raw[list(raw)[0]], list)):
9089
return raw
9190

9291
return errors_from_list([

workflowwebtools/paramsregression.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ def print_results(data, target):
152152
else:
153153
status = 'WRONG'
154154
print('[%s] %i : %i -- %s : %s' %
155-
(status, want, result, class_labels[want], class_labels[result])
156-
)
155+
(status, want, result, class_labels[want], class_labels[result]))
157156

158157
print('%f (%i/%i)' % (100.0 * right/len(target), right, len(target)))
159158

workflowwebtools/web/templates/showlog.html

Lines changed: 0 additions & 44 deletions
This file was deleted.

workflowwebtools/web/templates/welcome.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,3 @@ <h1>Welcome to the Workflow Team Web Tools</h1>
3333
you can reset the password by email here.
3434
Your username will be in the email in the event you forgot that too.
3535
</p>
36-
37-
<p>
38-
<a href="/showlog">Show Logs</a>: <br>
39-
This view shows logs from the elastic search server.
40-
</p>

workflowwebtools/workflowtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def seeworkflow(self, workflow='', issuggested=''):
375375
This should help operators understand what the error means.
376376
377377
At the top of the page, there are links back for :ref:`global-view-ref`,
378-
:ref:`show-logs-ref`, related JIRA tickets,
378+
workflow logs, related JIRA tickets,
379379
and ReqMgr2 information about the workflow and prep ID.
380380
381381
The main function of this page is to submit actions.

0 commit comments

Comments
 (0)