Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def custom_default_zpt_report(id, result, action='', no_table=0,
                          goofy=re.compile('\W').search
                          ):
    columns=result._searchable_result_columns()
    __traceback_info__=columns
    heading=('\n%s        ' %
                 string.joinfields(
                     map(lambda c:
                         '          %s\n' % nicify(c['name']),
                         columns),
                     ''
                     )
                 )

    if no_table: tr, _tr, td, _td, delim = '

', '

', '', '', ',\n' else: tr, _tr, td, _td, delim = '', '', '', '', '\n' row=[] for c in columns: n=c['name'] # ugh! what the hell is goofy? # if goofy(n) is not None: # n='expr="_[\'%s]"' % (`'"'+n`[2:]) row.append(' %s%s goes here%s' % (td,n,n,_td)) row=(' %s\n%s\n %s' % (tr,string.joinfields(row,delim), _tr)) return custom_default_zpt_report_src( id=id, heading=heading, row=row, action=action, no_table=no_table)


src/p/r/Products.ZSQLMethods-2.13.4/src/Shared/DC/ZRDB/Search.py   Products.ZSQLMethods(Download)
from App.special_dtml import DTMLFile
from Aqueduct import custom_default_report
from Aqueduct import custom_default_zpt_report
from Aqueduct import nicify
from Aqueduct import Args
             '</body></html>' %
             join(map(lambda q, report_style=report_style:
                      custom_default_zpt_report(q.id, q, no_table=report_style), qs),
                  '\n<hr>\n')))