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,
|
||||
setting_expose_date=None, setting_expose_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()
|
||||
data = {"author": author, "title": title, "description": description, "template": ""}
|
||||
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
|
||||
else:
|
||||
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
|
||||
if submit:
|
||||
# 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)
|
||||
except formencode.Invalid, errors_packed:
|
||||
errors = errors_packed.unpack_errors()
|
||||
print "Nach Kontrolle:"
|
||||
for key, value in data.items():
|
||||
print " %s: %s" % (key, value)
|
||||
# store the new settings
|
||||
if errors:
|
||||
value_dict["errors"] = errors
|
||||
|
|
Loading…
Reference in a new issue