Package gavo :: Package svcs :: Module inputdef
[frames] | no frames]

Module inputdef

source code

Description and handling of inputs to services.

This module in particular describes the InputKey, the primary means of describing input widgets and their processing.

They are collected in contextGrammars, entities creating inputArgs items.

Classes
  InputKey
A description of a piece of input.
  InputTD
an input for a core.
  CoreArgs
A container for core arguments.
  ContextRowIterator
is a row iterator over "contexts", i.e.
  ContextGrammar
A grammar for web inputs.
Functions
 
getRendererAdaptor(renderer)
returns a function that returns input keys adapted for renderer.
source code
 
filterInputKeys(keys, rendName, adaptor=None)
filters inputKeys in key, only returning those compatible with rendName.
source code
Variables
  __package__ = 'gavo.svcs'
Function Details

getRendererAdaptor(renderer)

source code 

returns a function that returns input keys adapted for renderer.

The function returns None if no adapter is necessary. This only takes place for inputKeys within a buildFrom condDesc.

filterInputKeys(keys, rendName, adaptor=None)

source code 

filters inputKeys in key, only returning those compatible with rendName.

adaptor is is a function taking and returning an inputKey that is used for input keys with an adaptToRenderer property.