Skip to content

Commit a91e5fa

Browse files
committed
solidui requirement
1 parent bcfbe77 commit a91e5fa

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed

requirements/base.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ marshmallow==3.19.0
8585
# via
8686
# flask-appbuilder
8787
# marshmallow-sqlalchemy
88-
marshmallow-sqlalchemy==0.23.1
88+
marshmallow-sqlalchemy==0.26.1
8989
# via flask-appbuilder
9090
packaging==23.1
9191
# via

solidui/config.py

-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343

4444
# SQLALCHEMY_DATABASE_URI = 'mysql://username:password@host:port/dbname'
4545

46-
47-
4846
# SQLALCHEMY_CUSTOM_PASSWORD_STORE = lookup_password
4947
SQLALCHEMY_CUSTOM_PASSWORD_STORE = None
5048

solidui/views/datasource/schemas.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
from __future__ import annotations
15-
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
15+
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema as MSSchema
1616

1717
from solidui.entity.core import DataSourceType, DataSource
1818
from marshmallow_sqlalchemy.schema import Schema
@@ -34,13 +34,13 @@ def __init__(self, id=None, dataSourceName=None, dataSourceDesc=None, dataSource
3434
self.expire = expire
3535

3636

37-
class DataSourceTypeSchema(SQLAlchemyAutoSchema):
37+
class DataSourceTypeSchema(MSSchema):
3838
class Meta:
3939
model = DataSourceType
4040
load_instance = True # Optional: if you also want to use it for deserialization
4141

4242

43-
class DataSourceSchema(SQLAlchemyAutoSchema):
43+
class DataSourceSchema(MSSchema):
4444
class Meta:
4545
model = DataSource
4646
load_instance = True # Optional: if you also want to use it for deserialization

solidui/views/job_page/schemas.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
14+
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema as MSSchema
1515

1616
from solidui.entity.core import JobPage
1717

@@ -26,7 +26,7 @@ def __init__(self, id=None, projectId=None, name=None, parentId=None, layout=Non
2626
self.orders = orders
2727

2828

29-
class JobPageSchema(SQLAlchemyAutoSchema):
29+
class JobPageSchema(MSSchema):
3030
class Meta:
3131
model = JobPage
3232
load_instance = True # Optional: if you also want to use it for deserialization

solidui/views/model/schemas.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
from dataclasses import dataclass
1515

16-
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
16+
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema as MSSchema
1717

1818
from solidui.entity.core import ModelType
1919
from marshmallow_sqlalchemy.schema import Schema
@@ -27,7 +27,7 @@ def __init__(self, id, name, type_name):
2727
self.type_name = type_name
2828

2929

30-
class ModelTypeSchema(SQLAlchemyAutoSchema):
30+
class ModelTypeSchema(MSSchema):
3131
class Meta:
3232
model = ModelType
3333
load_instance = True # Optional: if you also want to use it for deserialization
@@ -44,7 +44,6 @@ class ModelTypeVO:
4444
code: str = None
4545

4646

47-
4847
class ModelTypePageInfoSchema(Schema):
4948
current_page = fields.Int()
5049
page_size = fields.Int()

solidui/views/project/schemas.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
from marshmallow_sqlalchemy.schema import Schema
1515
from solidui.entity.core import Project
1616
from marshmallow_sqlalchemy.fields import fields
17-
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
17+
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema as MSSchema
1818

19-
class ProjectSchema(SQLAlchemyAutoSchema):
19+
20+
class ProjectSchema(MSSchema):
2021
class Meta:
2122
model = Project
2223
load_instance = True # Optional: if you also want to use it for deserialization

0 commit comments

Comments
 (0)