Package tdi
[frames] | no frames]

Package tdi

source code

Template Data Interface (TDI)

Template Data Interface (TDI).


Copyright: Copyright 2006 - 2015 André Malo or his licensors, as applicable

License:

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: André Malo

Submodules

Classes
  NodeTreeError
The node tree was tried to be modified after it was finalized
  TemplateAttributeError
A tdi attribute could not be parsed
  TemplateError
Error in a template
  AutoUpdateWarning
An auto update error occured after the template was first loaded
  ModelMissingError
A required model method was missing
  TemplateReloadError
Error during template reload
  LexerEOFError
Unexpected EOF
  DeprecationWarning
TDI specific deprecation warning
  LexerFinalizedError
Lexer was already finalized
  NodeError
Error in node processing
  DependencyError
A dependency error occured
  ModelError
Base error for model errors
  Error
Base exception for this package
  LexerStateError
Invalid state change
  OverlayError
Error in overlay work
  TemplateAttributeEmptyError
A tdi attribute was empty
  Warning
Base warning for this package
  TemplateEncodingError
Template encoding error
  DependencyCycle
Dependencies created a cycle
  TemplateFactoryError
Template factory misuse
  NodeWarning
A (non-fatal) inconsistency in the nodetree occured
  NodeNotFoundError
node was not found
  LexerError
Lexer Error
Variables
  __doc__ = __doc__.encode('ascii').decode('unicode_escape')
tdi.util.Version version = tdi._version.Version('0.9.9.9', is_dev=False, revisi...
Version of the TDI package
tdi.factory.Factory html = _factory.Factory(parser= _soup.parser.DEFAULT_PARSER.ht...
HTML Template factory
tdi.factory.Factory xml = _factory.Factory(parser= _soup.parser.DEFAULT_PARSER.xml...
XML Template factory
tdi.factory.Factory text = _factory.Factory(parser= _text.parser.TextParser, build...
Text Template factory
Variables Details

__doc__

Value:
__doc__.encode('ascii').decode('unicode_escape')

version

Version of the TDI package
Type:
tdi.util.Version
Value:
tdi._version.Version('0.9.9.9', is_dev=False, revision=4810)

html

HTML Template factory
Type:
tdi.factory.Factory
Value:
_factory.Factory(parser= _soup.parser.DEFAULT_PARSER.html, builder= _s\
oup.builder.SoupBuilder, encoder= _soup.encoder.SoupEncoder, decoder= \
_soup.decoder.HTMLDecoder, default_eventfilter_list= (_soup.filters.En\
codingDetectFilter,),)

xml

XML Template factory
Type:
tdi.factory.Factory
Value:
_factory.Factory(parser= _soup.parser.DEFAULT_PARSER.xml, builder= _so\
up.builder.SoupBuilder, encoder= _soup.encoder.SoupEncoder, decoder= _\
soup.decoder.XMLDecoder, default_encoding= 'utf-8', default_eventfilte\
r_list= (_soup.filters.EncodingDetectFilter,),)

text

Text Template factory
Type:
tdi.factory.Factory
Value:
_factory.Factory(parser= _text.parser.TextParser, builder= _text.build\
er.TextBuilder, encoder= _text.encoder.TextEncoder, decoder= _text.dec\
oder.TextDecoder, default_encoding= 'utf-8', default_eventfilter_list=\
 (_text.filters.EncodingDetectFilter,),)