We installed CallProfiler a while back and then removed it after it was no longer needed, but there's still an object living in the root of our Control Panel that is a broken piece of CallProfiler. I can't figure out exactly how to delete that object. Anyone seen this problem and have a solution? Thanks! - Chris cmuldrow@fredericksburg.com
Chris Muldrow wrote:
We installed CallProfiler a while back and then removed it after it was no longer needed, but there's still an object living in the root of our Control Panel that is a broken piece of CallProfiler. I can't figure out exactly how to delete that object. Anyone seen this problem and have a solution? Thanks!
I seem to remember writing an external method something like: def fixme(self): del(self.Control_Panel.bad_thing_that_wont_go_away) cheers, Chris
Well, that seemed to have done something, but now I get this error when I try to go to the main Control Panel page: <!-- <p>Traceback (innermost last): <ul> <li> Module ZPublisher.Publish, line 98, in publish</li> <li> Module ZPublisher.mapply, line 88, in mapply</li> <li> Module ZPublisher.Publish, line 39, in call_object</li> <li> Module Shared.DC.Scripts.Bindings, line 252, in __call__</li> <li> Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec</li> <li> Module App.special_dtml, line 174, in _exec</li> <li> Module DocumentTemplate.DT_In, line 625, in renderwob</li> <li> Module OFS.ObjectManager, line 354, in objectItems</li> <li> Module OFS.ObjectManager, line 240, in _getOb</li> </ul>AttributeError: CallProfiler </p> --> On 10/21/03 7:08 AM, "Chris Withers" <chrisw@nipltd.com> wrote:
Chris Muldrow wrote:
We installed CallProfiler a while back and then removed it after it was no longer needed, but there's still an object living in the root of our Control Panel that is a broken piece of CallProfiler. I can't figure out exactly how to delete that object. Anyone seen this problem and have a solution? Thanks!
I seem to remember writing an external method something like:
def fixme(self): del(self.Control_Panel.bad_thing_that_wont_go_away)
cheers,
Chris
Chris Muldrow wrote at 2003-10-21 08:41 -0400:
Well, that seemed to have done something, but now I get this error when I try to go to the main Control Panel page: <!-- <p>Traceback (innermost last): ...
<li> Module OFS.ObjectManager, line 240, in _getOb</li>
</ul>AttributeError: CallProfiler
Your "Control_Panel" is now inconsistent: Its "_objects" tells "CallProfiler" is still there but there is no longer any attribute. Delete the "CallProfiler" entry in "Control_Panel" as well. You know, "_objects" is a tuple and tuples are immutable. Therefore, you must use something like: Control_Panel._objects= Control_Panel._obects[:XXX] + Control_Panel._objects[XXX+1:] Where "Control_Panel._objects[XXX]" is the "CallProfiler" entry. In the feature, always you the official API. In the case of the Control_Panel, this would essentially be: from OFS.ObjectManager import ObjectManager ObjectManager.manage_delObjects(Control_Panel,[Ids_to_delete]) Dieter
Some more information on our now-broken Control Panel (it broke after I tried to remove CallProfiler). I can do an objectIds on the Control Panel from an external method, and that shows me all of the objects in the Panel, including one called CallProfiler. I can't, however, do any operation that does a _getOb on the Control Panel. I get an Attribute Error exception from line 240 of ObjectManager.py. So it's like the delete didn't delete all information on the CallProfiler object. On 10/21/03 7:08 AM, "Chris Withers" <chrisw@nipltd.com> wrote:
Chris Muldrow wrote:
We installed CallProfiler a while back and then removed it after it was no longer needed, but there's still an object living in the root of our Control Panel that is a broken piece of CallProfiler. I can't figure out exactly how to delete that object. Anyone seen this problem and have a solution? Thanks!
I seem to remember writing an external method something like:
def fixme(self): del(self.Control_Panel.bad_thing_that_wont_go_away)
cheers,
Chris
participants (3)
-
Chris Muldrow -
Chris Withers -
Dieter Maurer