Commit 91a2a492 authored by Celine Noirot's avatar Celine Noirot
Browse files

Add field admin login and update save function.

parent ea41c8fb
......@@ -90,6 +90,7 @@ class Analysis (Component):
Build an Analysis object
@param name : the analysis name
@param description : the analysis description
@param admin_login : the admin login
@param software : the software used to run the analysis
@param options : the options used to run the software
@param id : the analysis id if not defined
......@@ -98,6 +99,7 @@ class Analysis (Component):
Component.__init__(self)
self.name = name
self.description = description
self.admin_login = None
self.software = software
self.options = options
self.id = id
......@@ -107,7 +109,7 @@ class Analysis (Component):
self.run = None
self.project = None
self.is_editable = False
# Set the temp folder to the ng6 temp folder
ng6conf = NG6ConfigReader()
tempfile.tempdir = ng6conf.get_tmp_directory()
......@@ -261,7 +263,7 @@ class Analysis (Component):
t3mysql = t3MySQLdb()
if self.parent: parent_uid = self.parent.id
else: parent_uid = 0
self.id = t3mysql.add_analysis(self.__class__.__name__, self.name, self.description,
self.id = t3mysql.add_analysis(self.__class__.__name__, self.name, self.description, self.admin_login,
datetime.date.today(), self.directory, self.software, self.version,
self.options, self.is_editable, parent_uid=parent_uid)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment