aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/framework.py5
-rw-r--r--cgi/manage.py6
2 files changed, 5 insertions, 6 deletions
diff --git a/cgi/framework.py b/cgi/framework.py
index 7894c16..796703e 100644
--- a/cgi/framework.py
+++ b/cgi/framework.py
@@ -17,11 +17,6 @@ from database import *
### Constants ###
BIT = lambda x: 2 ** x
-RB_FRONT = BIT(0)
-RB_ALL = BIT(1)
-RB_KAKO = BIT(2)
-RB_HOME = BIT(3)
-
def setBoard(dir):
"""
Sets the board which the script is operating on by filling Settings._.BOARD
diff --git a/cgi/manage.py b/cgi/manage.py
index 4839b5e..cd00a07 100644
--- a/cgi/manage.py
+++ b/cgi/manage.py
@@ -861,6 +861,10 @@ def manage(self, path_split):
if form_submitted:
rebuild = 0
+ RB_FRONT = BIT(0)
+ RB_ALL = BIT(1)
+ RB_KAKO = BIT(2)
+ RB_HOME = BIT(3)
# Update board settings
@@ -873,7 +877,7 @@ def manage(self, path_split):
if board['name'] != self.formdata['name']:
board['name'] = self.formdata['name']
- rebuild |= RB_BOARD
+ rebuild |= RB_ALL
if board['board_type'] == 1:
rebuild |= RB_KAKO