State:Closed|TargetRelease:No Target|icon_bug|database:public|icon_mari|Resolution:Fixed|BugID:107215|
Problem summary
GeoEntity renameVersion via Python API does not commit rename changes to the UI.
Customer reported version
3.3v1
Customer reported platform
rhel7
Steps to reproduce
1) Open the Example Head project
2) Open the Objects palette (view > palettes > objects) and select the Head geo
3) In the Python Console, run the following:
g = mari.geo.current()retValue = g.renameVersion('Head_Head', 'Renamed_Head') 3) Note that the script completes without error but the UI does not update.
4) Right click on the Head geo in the Objects palette and select 'Rename Version'.
5) Note that the dialog refers to 'Renamed_Head' not 'Head_Head'. Version was successfully renamed. However, running the above script in reference to 'Renamed_Head' will error; the API does not recognise the renamed version.
# Return value is None. It should return True and rename the versionassert retValue == True or retValue == False We're sorry to hear that
Please tell us why