...
 
Commits (2)
# Byte-compiled / optimized / DLL files
/static/setup.txt
/static/setup-uat.txt
/static/setup-metasat.txt
*.pyc
\ No newline at end of file
......@@ -33,7 +33,11 @@ version = line[3].replace("version = ","")
savefile = line[4].replace("savefile = ","")
meta = line[5].replace("meta = ","")
url = line[6].replace("url = ","")
logo = line[7].replace("logo = ","")
logo = line[7].replace("logo = ","")
host = line[8].replace("host = ","")
port = line[9].replace("port = ","")
username = line[10].replace("username = ","")
password = line[11].replace("password = ","")
app = Flask(__name__, static_folder='static', static_url_path='')
......@@ -53,8 +57,11 @@ def sortingpage():
filelist.append(filedict)
filelist.sort()
return render_template('sorting.html', filelist=filelist, shortname=shortname, longname=longname,logo=logo, version=version, savefile=savefile, meta=meta, url=url)
@app.route('/sort/')
def sortingtool():
return redirect('/')
......@@ -64,7 +71,7 @@ def sortingtool():
def send_tc():
return send_from_directory('topconcepts')
# email host, port, username, password, etc found in the static/setup.txt file
@app.route('/email',methods=['POST'])
def emailchanges():
val = request.form['testarg']
......@@ -72,8 +79,7 @@ def emailchanges():
#print msg
me = '[email protected]'
me = username
you = email
msg['Subject'] = 'Suggestions from Sorting Tool'
msg['From'] = me
......@@ -85,8 +91,8 @@ def emailchanges():
#Live Info
s = smtplib.SMTP()
s.connect('mail.altbibl.io','587')
s.login('[email protected]','WolbachLibrary')
s.connect(host,port)
s.login(username,password)
#Test & Live
s.sendmail(me, [you], msg.as_string())
......
shortname = UAT
longname = UAT Schema Tool
email = [email protected]
longname = UAT Sorting Tool
email = [email protected]
version = 3.0.0
savefile = uatsaves
meta = <meta name="description" content="Help us improve Unified Astronomy Thesaurus!"><meta name="keywords" content="UAT,astronomy,thesaurus,sorting tool,schema tool,wolbach,AAS,astronomy thesaurus">
url = http://astrothesaurus.org
logo = uat-logo1-b.png
\ No newline at end of file
url = http://mywebsite.com
logo = uat-logo1-b.png
host = mail.domain.com
port = 587
username = [email protected]
password = password
shortname = MetaSat Schema
longname = MetaSat Schema Tool
email = [email protected]
version =
savefile = metasatsaves
meta = <meta name="description" content="Help us improve MetaSat, an open metadata schema for small satellites, with the MetaSat Schema Tool!"><meta name="keywords" content="MetaSat,metasat,sorting tool,schema tool,wolbach,LSTN,cubesat metadata">
url = http://schema.space
logo =
\ No newline at end of file
shortname = MetaSat Schema
longname = MetaSat Schema Tool
email = [email protected]
version =
savefile = metasatsaves
meta = <meta name="description" content="Help us improve MetaSat, an open metadata schema for small satellites, with the MetaSat Schema Tool!"><meta name="keywords" content="MetaSat,metasat,sorting tool,schema tool,wolbach,LSTN,cubesat metadata">
url = http://schema.space
logo =
\ No newline at end of file
......@@ -178,22 +178,23 @@
To make suggestions using this tool...
<br />
<br />
1) Select a branch of the {{shortname}} or a previous save
<BR />
from the Dropdown Menu on the left.
1) Select a branch of the {{shortname}}, a previous save,
<br/>load a previous export, or start with a blank workspace<BR />
by choosing the appropriate option on the left.
<br />
<br />
2) Click on nodes and drag and drop them to a new<br />
location within the {{shortname}} tree.<br /><br />
3) New concepts may be added using the input box at<br />
the far left and clicking the “Add Node” button.<br /><br />
the far left and clicking the "Add Node" button.<br /><br />
4) To indicate that a concept should be deleted, drag<br />
it to the “orphans” node.<br /><br />
it to the "recycle" node. You can also use this node to<br/>
temporarily store concepts as you re-arrange the structure.<br /><br />
A log of changes made using the sorting tool will be<BR />
automatically included in feedback when the "Submit"<br />
button is clicked.<br /><br />
<b>Refreshing or navigating away from the<BR />
page will cause all work to be lost.</B>
<b>Refreshing or navigating away from the page without<BR />
saving or exporting will cause all work to be lost.</B>
</div>
</div>
......