mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 18:36:58 +08:00
Merge branch 'master' of https://github.com/pycook/cmdb
This commit is contained in:
@@ -15,4 +15,3 @@ RUN yum install -y epel-release && yum clean all\
|
||||
&& pip install --no-cache-dir -r docs/requirements.txt
|
||||
|
||||
CMD ["bash", "-c", "cp api/settings.py.example api/settings.py && sed -i 's#{user}:{password}@127.0.0.1:3306/{db}#:@127.0.0.1:3306/cmdb#g' api/settings.py && flask run"]
|
||||
|
||||
|
@@ -1,5 +1,8 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import datetime
|
||||
|
||||
import six
|
||||
@@ -37,8 +40,8 @@ type_map = {
|
||||
'deserialize': {
|
||||
Attribute.INT: string2int,
|
||||
Attribute.FLOAT: float,
|
||||
Attribute.TEXT: escape,
|
||||
Attribute.TIME: escape,
|
||||
Attribute.TEXT: lambda x: escape(x).encode('utf-8').decode('utf-8'),
|
||||
Attribute.TIME: lambda x: escape(x).encode('utf-8').decode('utf-8'),
|
||||
Attribute.DATETIME: str2datetime,
|
||||
Attribute.DATE: str2datetime,
|
||||
},
|
||||
|
@@ -1,6 +1,8 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import markupsafe
|
||||
from flask import abort
|
||||
|
||||
|
Reference in New Issue
Block a user