def load_previous_values(self): """ This allows the upgrade from earlier version with only six values """ ReportOptions.load_previous_values(self) if len(self.options_dict['what_types'].split(',')) != 8: self.options_dict['what_types'] = \ 'True, False, False, False, False, False, False, False'
def __init__(self, name, dbase): ReportOptions.__init__(self, name, dbase) # Options specific for this report self.options_dict = { 'bookname': '', } self.options_help = { 'bookname': ("=name", _("Name of the book. MANDATORY"), BookList('books.xml', dbase).get_book_names(), False), }
def __init__(self, name, dbase): ReportOptions.__init__(self, name, dbase) # Options specific for this report self.options_dict = { 'bookname' : '', } self.options_help = { 'bookname' : ("=name",_("Name of the book. MANDATORY"), BookList('books.xml',dbase).get_book_names(), False), }
def __init__(self, name, dbase): ReportOptions.__init__(self, name, dbase) # Options specific for this report self.options_dict = { 'bookname': '', } # TODO since the CLI code for the "book" generates its own "help" now, # the GUI code would be faster if it didn't list all the possible books self.options_help = { 'bookname': ("=name", _("Name of the book. MANDATORY"), BookList('books.xml', dbase).get_book_names(), False), }
def __init__(self, name, dbase): ReportOptions.__init__(self, name, dbase) # Options specific for this report self.options_dict = { 'bookname' : '', } # TODO since the CLI code for the "book" generates its own "help" now, # the GUI code would be faster if it didn't list all the possible books self.options_help = { 'bookname' : ("=name", _("Name of the book. MANDATORY"), BookList('books.xml', dbase).get_book_names(), False), }