423baff73b
- Docker bridge 网络隔离(8000 端口封死) - Gunicorn 4 Worker 多进程 - Alembic 数据库迁移基线 - 日志轮转 20m×3 - JWT 密钥 + DB 密码 + CORS 收紧 - 3-2-1 备份链路(NAS + R740-B 冷备) - 连接池 pool_pre_ping + pool_recycle=3600
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
# Copyright (c) 2010-2024 openpyxl
|
|
|
|
from openpyxl.descriptors.serialisable import Serialisable
|
|
|
|
from openpyxl.descriptors.nested import (
|
|
NestedBool,
|
|
NestedFloat,
|
|
NestedMinMax,
|
|
NestedNoneSet,
|
|
)
|
|
|
|
class PictureOptions(Serialisable):
|
|
|
|
tagname = "pictureOptions"
|
|
|
|
applyToFront = NestedBool(allow_none=True, nested=True)
|
|
applyToSides = NestedBool(allow_none=True, nested=True)
|
|
applyToEnd = NestedBool(allow_none=True, nested=True)
|
|
pictureFormat = NestedNoneSet(values=(['stretch', 'stack', 'stackScale']), nested=True)
|
|
pictureStackUnit = NestedFloat(allow_none=True, nested=True)
|
|
|
|
__elements__ = ('applyToFront', 'applyToSides', 'applyToEnd', 'pictureFormat', 'pictureStackUnit')
|
|
|
|
def __init__(self,
|
|
applyToFront=None,
|
|
applyToSides=None,
|
|
applyToEnd=None,
|
|
pictureFormat=None,
|
|
pictureStackUnit=None,
|
|
):
|
|
self.applyToFront = applyToFront
|
|
self.applyToSides = applyToSides
|
|
self.applyToEnd = applyToEnd
|
|
self.pictureFormat = pictureFormat
|
|
self.pictureStackUnit = pictureStackUnit
|