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

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

        def custom_default_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'] if goofy(n) is not None: n='expr="_[\'%s]"' % (`'"'+n`[2:]) row.append(' %s%s' % (td,n,c['type']!='s' and ' null=""' or '',_td)) row=(' %s\n%s\n %s' % (tr,string.joinfields(row,delim), _tr)) return custom_default_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
             '</body></html>' %
             join(map(lambda q, report_style=report_style:
                      custom_default_report(q.id, q, no_table=report_style), qs),
                  '\n<hr>\n')))
 

src/p/r/Products.ZSQLMethods-2.13.4/src/Shared/DC/ZRDB/DA.py   Products.ZSQLMethods(Download)
 
from Aqueduct import BaseQuery
from Aqueduct import custom_default_report
from Aqueduct import default_input_form
from Aqueduct import parse
                    src=string.join(string.split(src,'\0'),'\n'+'-'*60+'\n')
                if result._searchable_result_columns():
                    r=custom_default_report(self.id, result)
                else:
                    r='This statement returned no results.'

src/p/r/Products.ZSQLMethods-2.13.4/src/Shared/DC/ZRDB/Connection.py   Products.ZSQLMethods(Download)
 
 
from Aqueduct import custom_default_report
import RDB
from Results import Results
 
        if result._searchable_result_columns():
            r=custom_default_report(self.id, result)
        else:
            r='This statement returned no results.'