Package gavo :: Package web :: Module formrender
[frames] | no frames]

Module formrender

source code

The form renderer is the standard renderer for web-facing services.

Classes
  ToFormalConverter
is a converter from SQL types to Formal type specifications.
  MultiField
A "widget" containing multiple InputKeys (i.e., formal Fields) in a single line.
  MultiFieldFragment
A fragment for rendering MultiFields.
  FormMixin
A mixin to produce input forms for services and display errors within these forms.
  Form
The "normal" renderer within DaCHS for web-facing services.
  DocFormRenderer
A renderer displaying a form and delivering core's result as a document.
Functions
 
iterStanChunked(stan, ctx, chunkSize)
yields strings made from stan.
source code
 
streamStan(stan, ctx, destFile)
writes strings made from stan to destFile.
source code
 
deliverYielding(stan, ctx, request)
delivers rendered stan to request, letting the reactor schedule now and then.
source code
 
sqltypeToFormal(type, xtype=None) source code
 
getFieldArgsForInputKey(inputKey)
returns a dictionary of keyword arguments for nevow formal addField from a DaCHS InputKey.
source code
Variables
  __package__ = 'gavo.web'
Function Details

iterStanChunked(stan, ctx, chunkSize)

source code 

yields strings made from stan.

This is basically like iterflatten, but it doesn't accumulate as much material in strings. We need this here since stock nevow iterflatten will block the server thread of extended periods of time (say, several seconds) on large HTML tables.

Note that deferreds are not really supported (i.e., if you pass in deferreds, they must already be ready).