Changeset 12235


Ignore:
Timestamp:
14 Dec 2014, 22:15:37 (10 years ago)
Author:
Henrik Bettermann
Message:

html_dict must initially be a dict.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/browser/layout.py

    r12229 r12235  
    211211    template = default_waeup_edit_template
    212212
     213    def setUpWidgets(self,ignore_request=False):
     214        super(IkobaAddFormPage,self).setUpWidgets(ignore_request)
     215        for widget in self.widgets:
     216            if 'address' in widget.name or \
     217                'comment' in widget.name or \
     218                'description' in widget.name or \
     219                'notice' in widget.name:
     220                widget.height = 3
     221
    213222class SiteLayout(IkobaLayout):
    214223    """ The general site layout.
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/document.py

    r12227 r12235  
    155155    def __init__(self, *args, **kw):
    156156        super(HTMLDocument, self).__init__(*args, **kw)
    157         self.html_dict = None
     157        self.html_dict = {}
    158158
    159159HTMLDocument = attrs_to_fields(HTMLDocument)
  • main/waeup.ikoba/trunk/src/waeup/ikoba/utils/helpers.py

    r12229 r12235  
    806806    return result
    807807
    808 
    809808def html2dict(value=None,portal_language='en'):
    810809    """Transforms a localized HTML text string into a dictionary.
Note: See TracChangeset for help on using the changeset viewer.