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 default_input_form(id,arguments,action='query',
                       tabs=''):
    if arguments:
        items=arguments.items()
        return (
            "%s\n%s%s" % (
                '\n'
                '%s Input Data\n'
                '\n%s\n'
                '
\n' '

%s Input Data

\n' 'Enter query parameters:
' '\n' % (id, tabs, action,id), string.joinfields( map( lambda a: ('\n' ' ' % (nicify(a[0]), ( a[1].has_key('type') and ("%s:%s" % (a[0],a[1]['type'])) or a[0] ), a[1].has_key('default') and a[1]['default'] or '' )) , items ), '\n'), '\n\n
%s' '
\n' '\n' '\n' ' \n' ' \n' '\n' '
\n
\n\n\n' ) ) else: return ( '\n' '%s Input Data\n' '\n%s\n' '
\n' '

%s Input Data

\n' 'This query requires no input.

\n' '\n' '\n' ' \n' ' \n' '\n' '\n\n

\n\n\n' % (id, tabs, action, id) )


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
from RDB import File
    def manage_testForm(self, REQUEST):
        " "
        input_src=default_input_form(self.title_or_id(),
                                     self._arg, 'manage_test',
                                     '<dtml-var manage_tabs>')