Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
removed more chieronomic code
Browse files Browse the repository at this point in the history
realized there was stillsome cheironomic code that had not bee edited out yet that interferes with the set up of Neon.js
  • Loading branch information
zoemcl committed Jul 27, 2017
1 parent 183d296 commit 34b4da5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
21 changes: 11 additions & 10 deletions neonsrv/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@

class RootHandler(tornado.web.RequestHandler):
def get_files(self, document_type):
root_dir = os.path.abspath(conf.MEI_DIRECTORY)
mei_dir = os.path.join(root_dir, document_type)
if(document_type != "cheironomic"):
root_dir = os.path.abspath(conf.MEI_DIRECTORY)
mei_dir = os.path.join(root_dir, document_type)

# only list mei files (not jpeg)
meiFiles = []
for f in os.listdir(mei_dir):
if f.endswith(".mei"):
meiFiles.append(f)
return meiFiles
# only list mei files (not jpeg)
meiFiles = []
for f in os.listdir(mei_dir):
if f.endswith(".mei"):
meiFiles.append(f)
return meiFiles

def get_document_types(self):
mei_dir = os.path.abspath(conf.MEI_DIRECTORY)
Expand All @@ -46,7 +47,7 @@ def get(self, url):
elif url == "demo.html":
self.render(url,
squarenotefiles=self.get_files('squarenote'),
stafflessfiles=self.get_files('cheironomic'),
# stafflessfiles=self.get_files('cheironomic'),
document_types=self.get_document_types(),
errors="",
prefix=conf.get_prefix())
Expand Down Expand Up @@ -103,7 +104,7 @@ def post(self, request):

self.render("demo.html",
squarenotefiles=self.get_files('squarenote'),
stafflessfiles=self.get_files('cheironomic'),
# stafflessfiles=self.get_files('cheironomic'),
document_types=self.get_document_types(),
errors=errors,
prefix=conf.get_prefix())
Expand Down
8 changes: 4 additions & 4 deletions templates/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ <h2>Score Selection</h2>

<hr/>

<h2>Staffless Neume Demo (alpha)</h2>
<!-- <h2>Staffless Neume Demo (alpha)</h2>
Choose a page of music from the St. Gallen manuscript to view or edit
<ul>
{% for f in stafflessfiles %}
{#{% for f in stafflessfiles %}
<li><a href="{{prefix}}/stafflesseditor/{{f}}">{{ f }}</a></li>
{% end %}
{% end %}#}
</ul>
<hr/>
<hr/> -->

<h2>Score Upload</h2>
Upload a symbolic music file (.mei) and an image of the page of music
Expand Down

0 comments on commit 34b4da5

Please sign in to comment.