kopia lustrzana https://github.com/botheredbybees/kilnController
Prevent python bytecode creation for config + overwrite modal in
index.htmlMAX31855-EH
rodzic
4f7beb5238
commit
7865cf40c1
|
@ -10,7 +10,9 @@ from gevent.pywsgi import WSGIServer
|
|||
from geventwebsocket import WebSocketHandler, WebSocketError
|
||||
|
||||
try:
|
||||
sys.dont_write_bytecode = True
|
||||
import config
|
||||
sys.dont_write_bytecode = False
|
||||
except:
|
||||
print "Could not import config file."
|
||||
print "Copy config.py.EXAMPLE to config.py and adapt it for your setup."
|
||||
|
@ -21,7 +23,7 @@ log = logging.getLogger("picoreflowd")
|
|||
log.info("Starting picoreflowd")
|
||||
|
||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
sys.path.insert(0, script_dir + '/lib')
|
||||
sys.path.insert(0, script_dir + '/lib/')
|
||||
profile_path = os.path.join(script_dir, "storage", "profiles")
|
||||
|
||||
from oven import Oven, Profile
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h3 class="modal-title" id="jobSummaryModalLabel">Delete this profile?</h3>
|
||||
<h3 class="modal-title" id="delProfileModalLabel">Delete this profile?</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
Do your really want to delete this profile?
|
||||
|
@ -139,5 +139,26 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="overwriteProfileModal" class="modal fade" tabindex="-1" aria-hidden="true" style="display: none;">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h3 class="modal-title" id="overwriteProfileModalLabel">Overwrite this profile?</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
Do your really want to overwrite this profile?
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="btn-group" style="width: 100%">
|
||||
<button type="button" class="btn btn-danger" style="width: 50%" data-dismiss="modal">No, take me back</button>
|
||||
<button type="button" class="btn btn-success" style="width: 50%" data-dismiss="modal" onclick="deleteProfile()">Yes, delete the profile</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Ładowanie…
Reference in New Issue