How can I change object's Name on Contents tab if I change id attribute of object? Regard, Serg.
Serg wrote:
How can I change object's Name on Contents tab if I change id attribute of object?
Are you doing this programatically or through the ZMI? In either case, you should use the rename functionality rather than directly changing the id attribute of an object... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
How can I change object's Name on Contents tab if I change id attribute of object?
Are you doing this programatically or through the ZMI?
In either case, you should use the rename functionality rather than directly changing the id attribute of an object...
I form value of "id" attribute depending to other attributes value. If I change one of there attributes (programatically or through the ZMI) I must change "id". I save new "id" but on Contents tab I see old "id". How can I use the rename functionality? Regard, Serg
Serg wrote:
I form value of "id" attribute depending to other attributes value.
Ouch... what code are you using to do this? If id is dynamically computed, things will bite you...
If I change one of there attributes (programatically or through the ZMI) I must change "id". I save new "id" but on Contents tab I see old "id". How can I use the rename functionality?
Indeed, if it's in a method of your class, try: self.aq_parent.manage_renameObject(old_id, new_id) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Chris Withers -
Serg