def __init__(self, options=None): FormatWriter.__init__( self, u'{0}\n', u"""{prefix} - &{table}_{id} !!{package}.{model} {tuples}""") Formatter.set(DefaultFormatter()) self.package = options.package self.last_table = None
def __init__(self, items_format=u"Title\tSubtitle\tAutocomplete\n{0}\n", item_format=u"{title}\t{subtitle}\t{autocomplete}", item_separator=u"\n", format_error_format=u'{0}'): self.items_format = items_format self.item_format = item_format self.item_separator = item_separator self.format_error_format = format_error_format Formatter.set(DefaultFormatter())
def __init__(self, options): FormatWriter.__init__( self, FORMATS.get(options.verbose, FORMATS[0]), ITEM_FORMATS.get(options.verbose, ITEM_FORMATS[0])) Formatter.set(DefaultFormatter()) self.options = options
def __init__(self, options): FormatWriter.__init__( self, u'{0}\n', u'update {table} set {values} where {restriction};') Formatter.set(DefaultFormatter()) self.options = options
def __init__(self, options): FormatWriter.__init__( self, u'{0}\n', u'insert into {table} ({columns}) values ({values});') Formatter.set(DefaultFormatter()) self.options = options
def __init__(self, options=None): FormatWriter.__init__(self, u'{0}\n', options.format) Formatter.set(DefaultFormatter())
def __init__(self, options): FormatWriter.__init__(self, u'{0}\n', u'delete from {table} where {restriction};') Formatter.set(DefaultFormatter()) self.options = options
def __init__(self, options=None): FormatWriter.__init__(self, u'{0}\n', u'{0}') if options.verbose > 0: Formatter.set(DefaultFormatter()) else: Formatter.set(DefaultFormatter())
def __init__(self, options=None): FormatWriter.__init__(self, u'{0}\n', u'{0}\n') self.options = options Formatter.set(DefaultFormatter())
def __init__(self, options=None): StdoutWriter.__init__(self, u'{0}\n', u'{item}') Formatter.set(DefaultFormatter()) self.options = options
def __init__(self, left=None, right=None): FormatWriter.__init__(self, u'{0}\n') Formatter.set(DefaultFormatter()) self.left = left self.right = right
def __init__(self, options=None): DefaultFormatter.__init__(self) self.options = options