At 12:14 PM 11/25/99 , Thilo Mezger wrote:
hi,
does anybody know why i can't delete standard_html_{header,footer,error} ? i get an error message "standard_html_header does not support this action" or something.
i suppose that this object is somehow "protected" so that i can't delete it because it is vitally important to the system.
any idea how i could remove this delete protection?
Why do you want to do this? It is possible to remove this protection by removing the id of the object that is protected from a list found on the root object, called _reserved_names. You could use the monitor client to step into your zope process, and do something like this: import Zope app=Zope.app() app._reserved_names and the last command should show a tuple with all protected ids in it. If you set _reserved_names to a tuple that doesn't include the ids you want to be able to delete, the protection is gone. The command sequence: app._reserved_names = () get_transaction().commit() will remove all objects from this protection against deletion. Don't forget the commit(), this will save all changes made in the transaction. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------