<reponame>vinibiavatti1/PythonFlaskCms<filename>project/properties/extensions/security_properties.py
"""
Publish properties configuration.
"""
from project.models.property_model import PropertyModel
from project.models.header_model import HeaderModel
from project.enums import property_types_enum as prop_type
from project.enums import string_types_enum as str_type
from typing import Union


# Properties
security_properties: list[Union[PropertyModel, HeaderModel]] = [
    HeaderModel(
        title='Security'
    ),
    PropertyModel(
        label='Private?',
        name='private',
        property_type=prop_type.BOOL,
        description='Set to True to require user authentication to access '
                    'this content.',
        default=str_type.FALSE,
        required=True,
    ),
]

"""
Publish properties configuration.
"""
from project.models.property_model import PropertyModel
from project.models.header_model import HeaderModel
from project.enums import property_types_enum as prop_type
from project.enums import string_types_enum as str_type
from typing import Union


# Properties
security_properties: list[Union[PropertyModel, HeaderModel]] = [
    HeaderModel(
        title='Security'
    ),
    PropertyModel(
        label='Private?',
        name='private',
        property_type=prop_type.BOOL,
        description='Set to True to require user authentication to access '
                    'this content.',
        default=str_type.FALSE,
        required=True,
    ),
]
Publish properties configuration. # Properties