diff --git a/reporter/README.txt b/reporter/README.txt index 2071f09..5f5bc12 100644 --- a/reporter/README.txt +++ b/reporter/README.txt @@ -42,12 +42,14 @@ empty. >>> list(r1.cells) [] +So let's assign a schema to the result set. + >>> from cybertools.composer.schema.schema import Schema >>> from cybertools.composer.schema.field import Field >>> rset.schema = Schema(Field(u'firstName'), Field(u'lastName'), Field(u'birthDate')) >>> r1 = rset.rows.next() >>> [c.text for c in r1.cells] - ['Smith', 'John', '1956-08-01'] + [u'Smith', u'John', u'1956-08-01'] For the browser presentation we can also use a browser view providing the result set with extended attributes: diff --git a/reporter/browser/macros.pt b/reporter/browser/macros.pt index 390ee55..4fc3248 100644 --- a/reporter/browser/macros.pt +++ b/reporter/browser/macros.pt @@ -17,7 +17,7 @@

Something


- @@ -25,7 +25,7 @@
Fieldname
+ tal:repeat="cell row/cells">