コード例 #1
0
    def _mapped_class(self, table_name):
        """
        :param table_name: Name of the database table.
        :type table_name: str
        :return: The mapped class that corresponds to the given table name.
        :rtype: object
        """
        from stdm.ui import DeclareMapping

        return DeclareMapping.instance().tableMapping(table_name)
コード例 #2
0
ファイル: value_translators.py プロジェクト: Guillon88/stdm
    def _mapped_class(self, table_name):
        """
        :param table_name: Name of the database table.
        :type table_name: str
        :return: The mapped class that corresponds to the given table name.
        :rtype: object
        """
        from stdm.ui import DeclareMapping

        return DeclareMapping.instance().tableMapping(table_name)
コード例 #3
0
ファイル: reader.py プロジェクト: Guillon88/stdm
    def _get_mapped_class(self, table_name):
        from stdm.ui import DeclareMapping

        return DeclareMapping.instance().tableMapping(table_name)