Package tdi :: Package markup :: Module factory
[frames] | no frames]

Module factory

source code

Default Soup Template Factory

Default Soup Template Factory.


Copyright: Copyright 2013 - 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

Variables
  html = _factory.Factory(parser= _soup.parser.DEFAULT_PARSER.ht...
  xml = _factory.Factory(parser= _soup.parser.DEFAULT_PARSER.xml...
  text = _factory.Factory(parser= _text.parser.TextParser, build...
Variables Details

html

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

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

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,),)