Ejemplo n.º 1
0
 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'
Ejemplo n.º 2
0
 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'
Ejemplo n.º 3
0
    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),
        }
Ejemplo n.º 4
0
    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),
        }
Ejemplo n.º 5
0
    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),
        }
Ejemplo n.º 6
0
    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),
        }