Skip to content

Add WSGI option#1

Open
physikerwelt wants to merge 1 commit intomasterfrom
wsgi
Open

Add WSGI option#1
physikerwelt wants to merge 1 commit intomasterfrom
wsgi

Conversation

@physikerwelt
Copy link
Copy Markdown
Member

No description provided.

@physikerwelt
Copy link
Copy Markdown
Member Author

@philsMINT please continue from here...

Comment thread application.wsgi
@@ -0,0 +1,5 @@
import os, sys, logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0, '/home/ubuntu/Formual_Calculation')
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be generalized

Comment thread calculation.py
global processedformula
processedformula=latexformlaidentifiers.prepformula(formula)
processedformula=latexformlaidentifiers.prepformula(formula)
print(processedformula)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log statements rather than print statements shall be used here.

Comment thread extra.py
@@ -0,0 +1,178 @@
import ast
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where / Why was this file created?

Comment thread calculation.py
global processedformula
processedformula=latexformlaidentifiers.prepformula(formula)
processedformula=latexformlaidentifiers.prepformula(formula)
print(processedformula)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

Comment thread static/main.js
var url = "";

if (enteredFormula.match("^wh") || enteredFormula.match("^Wh") || lang == "hn") {
if (enteredFormula.indexOf("=") >= 0) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the rationality if the query contains a = the program behaves like a calculator? Maybe that should be stated somewhere.

Comment thread static/main.js
$('.resultValue').text("");
$('.resultPanel').hide();
$('.userInputDiv').empty();
$('.userInputDiv').show();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this was changed.

Comment thread static/main.js
$('.submitBtn').hide();
$('.userinputPanel').show();
$('.userInputDiv').empty();
$('.userInputDiv').hide();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this was changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants