-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make ramstk_condition sub-package (#990)
* refactor: move ramstk_condition to sub-package * tests: update ramstk_condition tests * style: add missing __init__.py to commondb packages
- Loading branch information
1 parent
e630760
commit 668c814
Showing
12 changed files
with
548 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# pylint: disable=unused-import | ||
# -*- coding: utf-8 -*- | ||
# | ||
# ramstk.models.commondb.condition.__init__.py is part of The RAMSTK Project | ||
# | ||
# All rights reserved. | ||
# Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com | ||
"""The RAMSTK Condition model package.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# ramstk.models.commondb.condition.table.py is part of The RAMSTK Project | ||
# | ||
# All rights reserved. | ||
# Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com | ||
"""Condition Table Model.""" | ||
|
||
# Standard Library Imports | ||
from typing import Type | ||
|
||
# RAMSTK Package Imports | ||
from ramstk.models import RAMSTKBaseTable, RAMSTKConditionRecord | ||
|
||
|
||
class RAMSTKConditionTable(RAMSTKBaseTable): | ||
"""Contain the attributes and methods of the Option data manager.""" | ||
|
||
# Define private dict class attributes. | ||
|
||
# Define private list class attributes. | ||
|
||
# Define private scalar class attributes. | ||
_db_id_colname = "fld_condition_id" | ||
_db_tablename = "ramstk_condition" | ||
_deprecated = False | ||
_select_msg = "request_get_condition" | ||
_tag = "condition" | ||
|
||
# Define public dict class attributes. | ||
|
||
# Define public list class attributes. | ||
|
||
# Define public scalar class attributes. | ||
|
||
def __init__(self, **kwargs) -> None: | ||
"""Initialize a Options data manager instance.""" | ||
RAMSTKBaseTable.__init__(self, **kwargs) | ||
|
||
# Initialize private dictionary attributes. | ||
|
||
# Initialize private list attributes. | ||
self._lst_id_columns = [ | ||
"condition_id", | ||
] | ||
|
||
# Initialize private scalar attributes. | ||
self._record: Type[RAMSTKConditionRecord] = RAMSTKConditionRecord | ||
|
||
# Initialize public dictionary attributes. | ||
|
||
# Initialize public list attributes. | ||
|
||
# Initialize public scalar attributes. | ||
self.pkey = "condition_id" | ||
|
||
# Subscribe to PyPubSub messages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# pylint: disable=unused-import | ||
# -*- coding: utf-8 -*- | ||
# | ||
# ramstk.models.commondb.failure_mode.__init__.py is part of The RAMSTK Project | ||
# | ||
# All rights reserved. | ||
# Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com | ||
"""The RAMSTK Failure Mode model package.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# pylint: disable=unused-import | ||
# -*- coding: utf-8 -*- | ||
# | ||
# ramstk.models.commondb.subcategory.__init__.py is part of The RAMSTK Project | ||
# | ||
# All rights reserved. | ||
# Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com | ||
"""The RAMSTK SubCategory model package.""" |
Oops, something went wrong.