Changeset 5856
- Timestamp:
- 12 Mar 2011, 15:42:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/widgets/table.py
r4920 r5856 115 115 116 116 def render(self): 117 self.response.setHeader('Content-Type', 118 'text/javascript; charset=UTF-8') 117 119 try: 118 120 provider = ITableProvider(self.context) 119 121 except: 120 122 # No table provider for the context. Be gentle... 121 return '' 122 self.response.setHeader('Content-Type', 123 'text/javascript; charset=UTF-8') 123 return '/* No content */' 124 124 tables = provider.getTables() 125 125 results = [table.getJSTableCode() for table in tables]
Note: See TracChangeset for help on using the changeset viewer.