Ignore:
Timestamp:
15 Dec 2014, 06:48:21 (10 years ago)
Author:
Henrik Bettermann
Message:

Replace multilang by multilingual.

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

Legend:

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

    r12236 r12239  
    175175    def form_fields(self):
    176176        return grok.AutoFields(self.context.form_fields_interface).omit(
    177             'html_dict', 'html_multilang')
     177            'html_dict', 'html_multilingual')
    178178
    179179    @property
     
    237237    def save(self, **data):
    238238        msave(self, **data)
    239         html_multilang = getattr(self.context, 'html_multilang', None)
     239        html_multilingual = getattr(self.context, 'html_multilingual', None)
    240240        portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE
    241         self.context.html_dict = html2dict(html_multilang, portal_language)
     241        self.context.html_dict = html2dict(html_multilingual, portal_language)
    242242        return
    243243
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/interfaces.py

    r12227 r12239  
    8989    html_dict = Attribute('Content as language dictionary with values in html format')
    9090
    91     html_multilang = schema.Text(
    92         title = _(u'Content in HTML format'),
     91    html_multilingual = schema.Text(
     92        title = _(u'Multilingual content in HTML format'),
    9393        required = False,
    9494        )
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests/test_browser.py

    r12238 r12239  
    215215        self.browser.getLink("Manage").click()
    216216        self.browser.getControl(name="form.title").value = 'My second doc'
    217         self.browser.getControl(name="form.html_multilang").value = """
     217        self.browser.getControl(name="form.html_multilingual").value = """
    218218<h1>Hello World</h1>
    219219>>de<<
     
    262262            % document.document_id in logcontent)
    263263        self.assertTrue(
    264             'INFO - zope.mgr - documents.browser.HTMLDocumentManageFormPage - %s - saved: title + html_multilang'
     264            'INFO - zope.mgr - documents.browser.HTMLDocumentManageFormPage - %s - saved: title + html_multilingual'
    265265            % document.document_id in logcontent)
    266266        self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.