Package common :: Module dataforms
[hide private]
[frames] | no frames]

Module dataforms

source code

This module contains wrappers for different parts of data forms (JEP 0004). For information how to use them, read documentation
Classes [hide private]
  Error
  UnknownDataForm
  WrongFieldValue
  ExtendedNode
  DataField
Keeps data about one field - var, field type, labels, instructions...
  Uri
  Media
  BooleanField
  StringField
Covers fields of types: fixed, hidden, text-private, text-single
  ListField
Covers fields of types: jid-multi, jid-single, list-multi, list-single
  ListSingleField
Covers list-single field
  JidSingleField
Covers jid-single fields
  ListMultiField
Covers list-multi fields
  JidMultiField
Covers jid-multi fields
  TextMultiField
  DataRecord
The container for data fields - an xml element which has DataField elements as children
  DataForm
  SimpleDataForm
  MultipleDataForm
Functions [hide private]
 
nested_property(f) source code
 
Field(typ, **attrs)
Helper function to create a field of given type.
source code
 
ExtendField(node)
Helper function to extend a node to field of appropriate type
source code
 
ExtendForm(node)
Helper function to extend a node to form of appropriate type
source code

Imports: xmpp, helpers


Function Details [hide private]

nested_property(f)

source code 

Field(typ, **attrs)

source code 
Helper function to create a field of given type.

ExtendField(node)

source code 
Helper function to extend a node to field of appropriate type

ExtendForm(node)

source code 
Helper function to extend a node to form of appropriate type