Beispiel #1
0
 def get_options(self):
     opts = DataTable.get_options(self)
     if self.language:
         opts['sAjaxSource'] = self.req.route_url(
             'units', _query={'language': self.language.id})
         #opts["aaSorting"] = [[ 2, "asc" ]]
     return opts
Beispiel #2
0
 def get_options(self):
     opts = DataTable.get_options(self)
     if self.language:
         opts['sAjaxSource'] = self.req.route_url(
             'units', _query={'language': self.language.id})
         #opts["aaSorting"] = [[ 2, "asc" ]]
     return opts
Beispiel #3
0
    def get_options(self):
        opts = DataTable.get_options(self)
        for attr in ['parameter', 'contribution', 'unit']:
            if getattr(self, attr):
                opts['sAjaxSource'] = self.req.route_url(
                    'unitvalues', _query={attr: getattr(self, attr).id})

        return opts
Beispiel #4
0
    def get_options(self):
        opts = DataTable.get_options(self)
        for attr in ['parameter', 'contribution', 'unit']:
            if getattr(self, attr):
                opts['sAjaxSource'] = self.req.route_url(
                    'unitvalues', _query={attr: getattr(self, attr).id})

        return opts
Beispiel #5
0
    def get_options(self):
        opts = DataTable.get_options(self)

        for attr in ['parameter', 'contribution', 'language']:
            if getattr(self, attr):
                q = {attr: getattr(self, attr).id}
                if attr == 'contribution' and self.second_tab:
                    q['second_tab'] = '1'
                opts['sAjaxSource'] = self.req.route_url('units', _query=q)

        return opts
Beispiel #6
0
    def get_options(self):
        opts = DataTable.get_options(self)
        opts['aaSorting'] = [[1, 'asc']]

        for attr in ['parameter', 'contribution', 'language']:
            if getattr(self, attr):
                q = {attr: getattr(self, attr).id}
                if attr == 'contribution' and self.second_tab:
                    q['second_tab'] = '1'
                opts['sAjaxSource'] = self.req.route_url('units', _query=q)

        return opts
Beispiel #7
0
    def get_options(self):
        opts = DataTable.get_options(self)
        #opts["aaSorting"] = [[1, "asc"]]

        #opts['bLengthChange'] = False
        #opts['bPaginate'] = False
        #opts['bInfo'] = False

        for attr in ['parameter', 'contribution', 'language']:
            if getattr(self, attr):
                opts['sAjaxSource'] = self.req.route_url(
                    'values', _query={attr: getattr(self, attr).id})

        return opts
Beispiel #8
0
    def get_options(self):
        opts = DataTable.get_options(self)
        #opts["aaSorting"] = [[1, "asc"]]

        #opts['bLengthChange'] = False
        #opts['bPaginate'] = False
        #opts['bInfo'] = False

        for attr in ['parameter', 'contribution', 'language']:
            if getattr(self, attr):
                opts['sAjaxSource'] = self.req.route_url(
                    'values', _query={attr: getattr(self, attr).id})

        return opts