@@ -44,7 +44,7 @@ def __init__(self, dbname=None, dbconfig=None, dbIn=None, parentLogger=None):
44
44
"Description" ,
45
45
"CreationDate" ,
46
46
"LastUpdate" ,
47
- "AuthorDN " ,
47
+ "Author " ,
48
48
"AuthorGroup" ,
49
49
"Status" ,
50
50
]
@@ -77,12 +77,12 @@ def __init__(self, dbname=None, dbconfig=None, dbIn=None, parentLogger=None):
77
77
"Cleaned" : "cleanTransformation" ,
78
78
}
79
79
80
- def addProduction (self , prodName , prodDescription , authorDN , authorGroup , connection = False ):
80
+ def addProduction (self , prodName , prodDescription , author , authorGroup , connection = False ):
81
81
"""Create new production starting from its description
82
82
83
83
:param str prodName: a string with the Production name
84
84
:param str prodDescription: a json object with the Production description
85
- :param str authorDN : string with the author DN
85
+ :param str author : string with the author
86
86
:param str authorGroup: string with author group
87
87
"""
88
88
connection = self .__getConnection (connection )
@@ -96,9 +96,9 @@ def addProduction(self, prodName, prodDescription, authorDN, authorGroup, connec
96
96
97
97
req = (
98
98
"INSERT INTO Productions (ProductionName,Description,CreationDate,LastUpdate,\
99
- AuthorDN ,AuthorGroup,Status)\
99
+ Author ,AuthorGroup,Status)\
100
100
VALUES ('%s','%s',UTC_TIMESTAMP(),UTC_TIMESTAMP(),'%s','%s','New');"
101
- % (prodName , prodDescription , authorDN , authorGroup )
101
+ % (prodName , prodDescription , author , authorGroup )
102
102
)
103
103
104
104
res = self ._update (req , conn = connection )
0 commit comments