git.ucc.asn.au
/
zanchey
/
dispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
item pricing works now
[zanchey/dispense2.git]
/
sql-edition
/
servers
/
SnackConfig.py
diff --git
a/sql-edition/servers/SnackConfig.py
b/sql-edition/servers/SnackConfig.py
index
e608f81
..
a05f730
100755
(executable)
--- a/
sql-edition/servers/SnackConfig.py
+++ b/
sql-edition/servers/SnackConfig.py
@@
-2,7
+2,7
@@
class VendingException( Exception ): pass
class VendingException( Exception ): pass
-FILENAME="snacks.conf"
+FILENAME="
/etc/dispense/
snacks.conf"
def parse_line( l ):
toks = l.strip().split()
def parse_line( l ):
toks = l.strip().split()
@@
-54,7
+54,7
@@
def get_snacks( filename = FILENAME ):
def get_snack( slot ):
snacks = get_snacks()
def get_snack( slot ):
snacks = get_snacks()
- if slot not in
key
:
+ if slot not in
snacks
:
raise VendingException( "Slot '%s' isn't in config file" % slot )
return snacks[slot]
raise VendingException( "Slot '%s' isn't in config file" % slot )
return snacks[slot]
UCC
git Repository :: git.ucc.asn.au