def __init__(self, *args, **kw): Folder.__init__(self, *args, **kw) SilvaService.__init__(self, *args, **kw) self._config_declarations = {} self._per_tag_allowed_attr = set(DEFAULT_PER_TAG_WHITELISTS) self._allowed_html_attributes = set(DEFAULT_HTML_ATTR_WHITELIST) self._allowed_css_attributes = set(DEFAULT_CSS_PROP_WHITELIST)
def __init__(self, id): SilvaService.__init__(self, id) self._subjects = Tree.Root() self._target_audiences = Tree.Root() self._locale = 'en' self._date_format = 'medium' self.add_subject(u'generic', u'Generic') self.add_target_audience(u'all', u'All')