# HG changeset patch # User Pawel Solyga # Date 1232467749 0 # Node ID 1590625ead5502c39f30437fb8ae4afb0405bcb2 # Parent b60c9ccbeaa581e04f92008feee0d931a37db606 Add missing blank lines and dots in soc.views.helper.templatetags.forms_helpers module. Patch by: Pawel Solyga Review by: to-be-reviewed diff -r b60c9ccbeaa5 -r 1590625ead55 app/soc/views/helper/templatetags/forms_helpers.py --- a/app/soc/views/helper/templatetags/forms_helpers.py Tue Jan 20 16:08:16 2009 +0000 +++ b/app/soc/views/helper/templatetags/forms_helpers.py Tue Jan 20 16:09:09 2009 +0000 @@ -94,6 +94,7 @@ return {'field_label': field_label, 'field_value': field_value} + @register.inclusion_tag('soc/templatetags/_readonly_field_as_twoline_table_row.html') def readonly_field_as_twoline_table_row(field_label, field_value): """See readonly_field_as_table_row(). @@ -113,7 +114,7 @@ @register.inclusion_tag('soc/templatetags/_as_table.html') def as_table(form): - """Outputs a form as a properly formatted html table + """Outputs a form as a properly formatted html table. Args: form: the form that should be converted to a table @@ -121,9 +122,10 @@ return as_table_helper(form) + @register.inclusion_tag('soc/templatetags/_as_twoline_table.html') def as_twoline_table(form): - """Outputs a form as a properly formatted html table + """Outputs a form as a properly formatted html table. Args: form: the form that should be converted to a table @@ -131,6 +133,7 @@ return as_table_helper(form) + def as_table_helper(form): fields = [] hidden_fields = [] @@ -166,7 +169,7 @@ @register.inclusion_tag('soc/templatetags/_as_table_row.html') def as_table_row(form, field, required, example_text): - """Outputs a field as a properly formatted html row + """Outputs a field as a properly formatted html row. Args: form: the form that the row belongs to @@ -177,9 +180,10 @@ return as_table_row_helper(form, field, required, example_text) + @register.inclusion_tag('soc/templatetags/_as_twoline_table_row.html') def as_twoline_table_row(form, field, required, example_text): - """Outputs a field as a properly formatted html row + """Outputs a field as a properly formatted html row. Args: form: the form that the row belongs to @@ -190,6 +194,7 @@ return as_table_row_helper(form, field, required, example_text) + def as_table_row_helper(form, field, required, example_text): # Escape and cache in local variable. errors = [force_unicode(escape(error)) for error in field.errors]