Changeset 4462


Ignore:
Timestamp:
28 Jul 2009, 01:15:34 (15 years ago)
Author:
uli
Message:

Make yuitablesview.js support multiple tables on one page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/widgets/table.py

    r4421 r4462  
    120120        self.response.setHeader('Content-Type',
    121121                                'text/javascript; charset=UTF-8')
    122         table = provider.getTable()
    123         result = table.getJSTableCode()
    124         return result
     122        tables = provider.getTables()
     123        results = [table.getJSTableCode() for table in tables]
     124        return '\n'.join(results)
Note: See TracChangeset for help on using the changeset viewer.