Esempio n. 1
0
 def __init__(self, app):
     self.app = app
     if isinstance(self.format, string_types):
         from httpencode import get_format
         self.format = get_format(self.format)
     if (self.format is not None
         and self.filter_content_types is Filter.filter_content_types):
         self.filter_content_types = self.format.content_types
Esempio n. 2
0
 def __init__(self, dsn):
     self.em = EntryManager(dsn)
     self.format = get_format('json')