@@ -68,25 +68,25 @@ To create a custom settings, you create an attribute in your class.
6868
6969This attribute must :
7070
71- - have an default value.
72- - don't start with an underscore.
71+ - have a default value.
72+ - not start with an underscore.
7373- be untyped or have the following types: ` str ` , ` int ` , ` float ` , ` bool ` .
7474
75- Otherwise, it will not be available in the managment portal.
75+ Otherwise, it will not be available in the management portal.
7676
7777``` python
7878from iop import BusinessOperation
7979
8080class MyBusinessOperation (BusinessOperation ):
8181
82- # This setting will be available in the managment portal
82+ # This setting will be available in the management portal
8383 foo: str = " default"
8484 my_number: int = 42
8585 untyped_setting = None
8686
87- # This setting will not be available in the managment portal
87+ # This setting will not be available in the management portal
8888 _my_internal_setting: str = " default"
89- no_aviable_setting
89+ # no_available_setting # This line would cause a syntax error
9090
9191 def on_init (self ):
9292 self .log_info(" [Python] MyBusinessOperation:on_init() is called" )
@@ -95,8 +95,8 @@ class MyBusinessOperation(BusinessOperation):
9595 return
9696```
9797
98- They will be available in the managment portal as the following:
98+ They will be available in the management portal as the following:
9999
100100![ Custom settings] ( img/custom_settings.png )
101101
102- If you overwrite the default value in the managment portal, the new value will be passed to your class.
102+ If you overwrite the default value in the management portal, the new value will be passed to your class.
0 commit comments