remove debug statements
This commit is contained in:
parent
1bc66d929f
commit
76923a682e
1 changed files with 0 additions and 12 deletions
|
@ -430,12 +430,6 @@ def admin_poll(cancel=False, submit=None, admin_hash_key=None, author=None,
|
||||||
title=None, description=None, settings=None,
|
title=None, description=None, settings=None,
|
||||||
setting_expose_date=None, setting_expose_date_forever=None,
|
setting_expose_date=None, setting_expose_date_forever=None,
|
||||||
setting_close_date=None, setting_close_date_forever=None):
|
setting_close_date=None, setting_close_date_forever=None):
|
||||||
print "Eingaben"
|
|
||||||
for value in (cancel, submit, admin_hash_key, author,
|
|
||||||
title, description, settings,
|
|
||||||
setting_expose_date, setting_expose_date_forever,
|
|
||||||
setting_close_date, setting_close_date_forever):
|
|
||||||
print value
|
|
||||||
value_dict = get_default_values()
|
value_dict = get_default_values()
|
||||||
data = {"author": author, "title": title, "description": description, "template": ""}
|
data = {"author": author, "title": title, "description": description, "template": ""}
|
||||||
poll_id = get_poll_admin_id(admin_hash_key)
|
poll_id = get_poll_admin_id(admin_hash_key)
|
||||||
|
@ -491,9 +485,6 @@ def admin_poll(cancel=False, submit=None, admin_hash_key=None, author=None,
|
||||||
data["setting_%s" % key] = value
|
data["setting_%s" % key] = value
|
||||||
else:
|
else:
|
||||||
data["setting_%s" % key] = get_poll_setting_string(key, validated_value)
|
data["setting_%s" % key] = get_poll_setting_string(key, validated_value)
|
||||||
print "Vor Kontrolle:"
|
|
||||||
for key, value in data.items():
|
|
||||||
print " %s: %s" % (key, value)
|
|
||||||
# use the validator to check for possible errors
|
# use the validator to check for possible errors
|
||||||
if submit:
|
if submit:
|
||||||
# check for errors only if the content is submitted (not just rendered)
|
# check for errors only if the content is submitted (not just rendered)
|
||||||
|
@ -501,9 +492,6 @@ def admin_poll(cancel=False, submit=None, admin_hash_key=None, author=None,
|
||||||
data = forms.PollSettingsForm.to_python(data)
|
data = forms.PollSettingsForm.to_python(data)
|
||||||
except formencode.Invalid, errors_packed:
|
except formencode.Invalid, errors_packed:
|
||||||
errors = errors_packed.unpack_errors()
|
errors = errors_packed.unpack_errors()
|
||||||
print "Nach Kontrolle:"
|
|
||||||
for key, value in data.items():
|
|
||||||
print " %s: %s" % (key, value)
|
|
||||||
# store the new settings
|
# store the new settings
|
||||||
if errors:
|
if errors:
|
||||||
value_dict["errors"] = errors
|
value_dict["errors"] = errors
|
||||||
|
|
Loading…
Reference in a new issue