Changeset 12239 for main/waeup.ikoba/trunk/src/waeup/ikoba/documents
- Timestamp:
- 15 Dec 2014, 06:48:21 (10 years ago)
- 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 175 175 def form_fields(self): 176 176 return grok.AutoFields(self.context.form_fields_interface).omit( 177 'html_dict', 'html_multil ang')177 'html_dict', 'html_multilingual') 178 178 179 179 @property … … 237 237 def save(self, **data): 238 238 msave(self, **data) 239 html_multil ang = getattr(self.context, 'html_multilang', None)239 html_multilingual = getattr(self.context, 'html_multilingual', None) 240 240 portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE 241 self.context.html_dict = html2dict(html_multil ang, portal_language)241 self.context.html_dict = html2dict(html_multilingual, portal_language) 242 242 return 243 243 -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/interfaces.py
r12227 r12239 89 89 html_dict = Attribute('Content as language dictionary with values in html format') 90 90 91 html_multil ang= schema.Text(92 title = _(u' Content in HTML format'),91 html_multilingual = schema.Text( 92 title = _(u'Multilingual content in HTML format'), 93 93 required = False, 94 94 ) -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests/test_browser.py
r12238 r12239 215 215 self.browser.getLink("Manage").click() 216 216 self.browser.getControl(name="form.title").value = 'My second doc' 217 self.browser.getControl(name="form.html_multil ang").value = """217 self.browser.getControl(name="form.html_multilingual").value = """ 218 218 <h1>Hello World</h1> 219 219 >>de<< … … 262 262 % document.document_id in logcontent) 263 263 self.assertTrue( 264 'INFO - zope.mgr - documents.browser.HTMLDocumentManageFormPage - %s - saved: title + html_multil ang'264 'INFO - zope.mgr - documents.browser.HTMLDocumentManageFormPage - %s - saved: title + html_multilingual' 265 265 % document.document_id in logcontent) 266 266 self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.