- Timestamp:
- 27 Jun 2009, 15:57:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/viewlets.py
r4181 r4380 6 6 from waeup.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter, 7 7 IWAeUPXMLImporter) 8 from waeup.utils.helpers import getInnerHTMLPart 8 9 9 10 grok.context(zope.interface.Interface) … … 218 219 219 220 def render(self): 220 result = self.form.render() 221 try: 222 # strip all except the form part... 223 result = re.match('^.+\(<form[^\>]+>.*</form>).+$', result, 224 re.DOTALL).groups()[0] 225 except: 226 # except there is no such part... 227 pass 228 return result 221 html_code = self.form.render() 222 return getInnerHTMLPart(html_code)
Note: See TracChangeset for help on using the changeset viewer.