Skip to content

Commit 84bb10e

Browse files
author
Francisco Arrieta
committed
Updated the summary page on the save wizard
1 parent 96e3c6c commit 84bb10e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

odmtools/gui/pageSummary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(self, parent, id, pos, size, style):
6464

6565
self.md=self.AppendItem(self.m, 'Description: ')
6666

67-
self.soc=self.AppendItem(self.action, 'Person: ')
67+
# self.soc=self.AppendItem(self.action, 'Person: ')
6868
self.soo=self.AppendItem(self.action, 'Organization: ')
6969
self.sod=self.AppendItem(self.action, 'Description: ')
7070

odmtools/gui/wizSave.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,8 @@ def fill_summary(self):
193193

194194
self.panel.treeSummary.SetItemText(self.panel.treeSummary.md, 'Description: ' + str(method.MethodDescription))
195195

196-
self.panel.treeSummary.SetItemText(self.panel.treeSummary.soc, 'Person: ' + str(action.PersonObj.PersonFirstName + " " + action.PersonObj.PersonLastName))
197-
self.panel.treeSummary.SetItemText(self.panel.treeSummary.soo, 'Organization: ' + str(action.OrganizationObj.OrganizationName))
198-
self.panel.treeSummary.SetItemText(self.panel.treeSummary.sod, 'Description: ' + str(action.OrganizationObj.OrganizationDescription))
196+
self.panel.treeSummary.SetItemText(self.panel.treeSummary.soo, 'Organization: ' + str(action.MethodObj.OrganizationObj.OrganizationName))
197+
self.panel.treeSummary.SetItemText(self.panel.treeSummary.sod, 'Description: ' + str(action.MethodObj.OrganizationObj.OrganizationDescription))
199198

200199
self.panel.treeSummary.SetItemText(self.panel.treeSummary.qc, 'Code: ' + str(processing_level.ProcessingLevelCode))
201200
self.panel.treeSummary.SetItemText(self.panel.treeSummary.qd, 'Definition: ' + str(processing_level.Definition))
@@ -270,6 +269,7 @@ def get_metadata(self):
270269
action.MethodObj = method
271270
action.ActionDescription = self.action_page.action_view.description_text_box.GetValue()
272271
action.ActionFileLink = self.action_page.action_view.action_file_link_text_box.GetValue()
272+
action.MethodObj.OrganizationObj = affiliation.OrganizationObj
273273

274274
return site, variable, method, action, processing_level
275275

0 commit comments

Comments
 (0)