mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 22:51:33 +08:00
pep8
This commit is contained in:
@@ -8,4 +8,4 @@ from ci_relation import cirelation
|
|||||||
from ci import ci
|
from ci import ci
|
||||||
from history import history
|
from history import history
|
||||||
from account import account
|
from account import account
|
||||||
from special import special
|
from special import special
|
||||||
|
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from markupsafe import escape
|
||||||
|
|
||||||
from models.attribute import TextChoice
|
from models.attribute import TextChoice
|
||||||
from models.attribute import FloatChoice
|
from models.attribute import FloatChoice
|
||||||
from models.attribute import IntegerChoice
|
from models.attribute import IntegerChoice
|
||||||
@@ -39,7 +41,7 @@ type_map = {
|
|||||||
'converter': {
|
'converter': {
|
||||||
'int': string2int,
|
'int': string2int,
|
||||||
'float': float,
|
'float': float,
|
||||||
'text': unicode,
|
'text': escape,
|
||||||
'datetime': str2datetime,
|
'datetime': str2datetime,
|
||||||
},
|
},
|
||||||
'choice': {
|
'choice': {
|
||||||
|
@@ -167,4 +167,4 @@ class AttributeValueManager(object):
|
|||||||
return True, (attr.attr_id, "update", old_value, value)
|
return True, (attr.attr_id, "update", old_value, value)
|
||||||
else:
|
else:
|
||||||
return True, None
|
return True, None
|
||||||
return True, (attr.attr_id, "add", None, value)
|
return True, (attr.attr_id, "add", None, value)
|
||||||
|
Reference in New Issue
Block a user