Ignore:
Timestamp:
1 Jan 2015, 21:56:40 (10 years ago)
Author:
Henrik Bettermann
Message:

Store 'terms and conditions' of products.

File:
1 edited

Legend:

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

    r12318 r12361  
    4141    FriendlyDatetimeDisplayWidget)
    4242from waeup.ikoba.browser.breadcrumbs import Breadcrumb
     43from waeup.ikoba.utils.helpers import html2dict
    4344from waeup.ikoba.browser.pages import (
    4445    delSubobjects, add_local_role, del_local_roles, msave,
     
    189190            if not new:
    190191               del data['options']
    191         return msave(self, **data)
     192        msave(self, **data)
     193        # Save multilingual dict
     194        tc = getattr(self.context, 'terms_and_conditions', None)
     195        portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE
     196        self.context.tc_dict = html2dict(tc, portal_language)
     197        return
    192198
    193199    @action(_('Cancel'), validator=NullValidator)
Note: See TracChangeset for help on using the changeset viewer.