0

Added defaultzoom config option

This commit is contained in:
CounterPillow
2012-07-15 05:53:15 +02:00
parent c79a646d10
commit 63b72aabaa
4 changed files with 10 additions and 2 deletions

View File

@@ -208,6 +208,12 @@ def validateObserver(observer):
else:
raise ValidationException("%r does not look like an observer" % repr(observer))
def validateDefaultZoom(z):
if z > 0:
return int(z)
else:
raise ValidationException("The default zoom is set below 1")
def make_dictValidator(keyvalidator, valuevalidator):
"""Compose and return a dict validator -- a validator that validates each
key and value in a dictionary.