Skip to content

Commit

Permalink
make the refman works with taipy.common
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinAV committed Oct 3, 2024
1 parent 2db149f commit 8b0f99f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
2 changes: 2 additions & 0 deletions taipy/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

"""Common functionalities for the taipy package."""
2 changes: 1 addition & 1 deletion taipy/common/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def by_two(x: int):
The configuration can be done in three ways: Python code, configuration files, or
environment variables. All configuration manners are ultimately merged (overriding the previous
way) to create a final applied configuration. Please refer to the
[advanced configuration](../../../../../userman/advanced_features/configuration/advanced-config.md)
[advanced configuration](../../../../../../userman/advanced_features/configuration/advanced-config.md)
section from the user manual for more details.
2. Attributes and methods to retrieve the configuration values.
Expand Down
2 changes: 1 addition & 1 deletion taipy/core/config/core_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def _configure(
mode (Optional[str]): Indicates the mode of the version management system.
Possible values are *"development"* or *"experiment"*. On Enterprise edition of Taipy,
*production* mode is also available. Please refer to the
[Versioning management](../../../../../userman/advanced_features/versioning/index.md)
[Versioning management](../../../../../../userman/advanced_features/versioning/index.md)
documentation page for more details.
version_number (Optional[str]): The string identifier of the version.
In development mode, the version number is ignored.
Expand Down
26 changes: 13 additions & 13 deletions taipy/core/config/data_node_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def _set_default_configuration(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -478,7 +478,7 @@ def _configure(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -531,7 +531,7 @@ def _configure_csv(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -575,7 +575,7 @@ def _configure_json(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -631,7 +631,7 @@ def _configure_parquet(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -681,7 +681,7 @@ def _configure_excel(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -728,7 +728,7 @@ def _configure_generic(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -769,7 +769,7 @@ def _configure_in_memory(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -806,7 +806,7 @@ def _configure_pickle(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -871,7 +871,7 @@ def _configure_sql_table(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -964,7 +964,7 @@ def _configure_sql(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -1046,7 +1046,7 @@ def _configure_mongo_collection(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down Expand Up @@ -1110,7 +1110,7 @@ def _configure_s3_object(
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the Task configuration
[page](../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
[page](../../../../../../userman/scenario_features/task-orchestration/scenario-config.md#from-task-configurations)
for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Expand Down
4 changes: 2 additions & 2 deletions taipy/gui/_gui_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ def _configure(**properties) -> "_GuiSection":
Parameters:
**properties (dict[str, any]): Keyword arguments that configure the behavior of the `Gui^` instances.<br/>
Please refer to the gui config section
[page](../../../../../userman/advanced_features/configuration/gui-config.md#configuring-the-gui-instance)
[page](../../../../../../userman/advanced_features/configuration/gui-config.md#configuring-the-gui-instance)
of the User Manual for more information on the accepted arguments.
Returns:
The GUI configuration.
"""
""" # noqa: E501
section = _GuiSection(property_list=list(default_config), **properties)
TaipyConfig._register(section)
return TaipyConfig.unique_sections[_GuiSection.name]

0 comments on commit 8b0f99f

Please sign in to comment.