Hi 

I'm afraid it is not :-) Nice bug, any component starting and/or having "/" in 
the name are not opened as supposed.
If you click on an interface component in the event view ("eth0") you end up on 
the event view from the eth0 interface.
If you do the same with "/filesystem" or "/process" it it not.

Here is the patch to apply to Products/ZenModel/ZenPortal.py. the first patch 
open the eventView, the second path force to open the status view :-)

I'll submit the patch to zenoss.


Code:
    def searchComponents(self, device='', component='', REQUEST=None):
        """
        Redirect to the component of a device. Hopefully.
        """
        catalog = self.dmd.Devices.componentSearch
        brains = []
#patch start
        if component.startswith("/"):
          component=component[1:]
        component=component.replace("/","_")
#patch end
        if device and component:
            brains = catalog(getParentDeviceName=device)
        if REQUEST:
            if brains:
                for brain in brains:
                    if brain.getPath().split('/')[-1]==component:
                        raise Redirect(urllib.quote(
#start display component status
#                            brain.getPath()+'/viewEvents'))
#
                            brain.getPath()))
#end display component status







-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=28528#28528

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to