text: when i try to add a node i cant set it position on the map. it always stay on the cursor. see screens
  Hi,
  Sorry for interrupting, but I'm struggeling with trying to remove this ZenPack.
  I think I managed to mess this up quite badly as I upgraded Zenoss to 3.0 when this ZenPack was marked as broken.
  Now I'm unable to remove it.
  Is there something short of reinstalling that I can do to remove this Zenpack and recover?
  Best regards
  mario;
  I believe that I have fixed those issues. They appear to be because zenoss 3 uses Ext rather than YUI. I modified as many calls as I could to use Mochikit instead, since that seems to be common between the two versions.
  Unfortunately however, my boss has decided that Zenoss is not going to fit our needs sufficiently enough to make my continued development on this worthwhile. I will try to answer any further questions posted, but there probably will not be any further development on this zenpack unless it is on my own time.
  If anybody wants to take over this project, be my guest. I can probably get permission to license it in whatever form is desired, although a gpl license is probably most likely.
  It would help if you told me what you had problems removing. The zenpack inserts a tab in the Location objects, and adds a custom_map object to them as well. If you delete these additions, and remove the zenpack itself, then all traces of the zenpack should be gone. Somewhere in the history of this thread is the code to do this (you aren't the first person to ask about it
  )
  I thank you for your effort of developing a feature that’s zenoss core lack.
  Thanks for the reply.
  I have tried to do what you outlined in the earlier message but it does not work for me. (And I'm not sure I did it right
  )
  If I try:
  zenpack --remove=ZenPacks.USU.Map
  I get:
  ERROR:zen.ZenPackCmd:zenpack command failed
  Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in <module>
  zp.run()
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/zenpack.py", line 168, in run
  self.options.removePackName)
  File "/usr/local/zenoss/zenoss/Products/ZenUtils/ZenPackCmd.py", line 812, in RemoveZenPack
  zp.remove(dmd, leaveObjects)
  File "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.USU.Map-0.1.2010.08.06-py2.6.egg/ZenPacks/USU/Map/__init__.py", line 95, in remove
  ZenPackBase.remove(self, app)
  File "/usr/local/zenoss/zenoss/Products/ZenModel/ZenPack.py", line 291, in remove
  loader.unload(self, app, leaveObjects)
  File "/usr/local/zenoss/zenoss/Products/ZenModel/ZenPackLoader.py", line 113, in unload
  objs = pack.packables()
  AttributeError: packables
  I originally had an earlier version of your plugin installed. I tried upgrading it in the hope that it would fix my problem, but unfortunately it did not.
  Possibly as a side effect of this problem I cannot get at my locations in the GUI. Is there a way to delete the added tab from zendmd?
  zenpack --remove=ZenPacks.USU.Map
  You can always try a manual remove in zendmd. I suggest you look through this code a bit so you understand what it is doing before you try it:
  def procLoc(l): #this should remove the Custom Map Tab in the location suborganizers finfo = l.factory_type_information actions = list(finfo[0]['actions']) for a in actions: if a['id'] == 'custommaptab': actions.remove(a) finfo[0]['actions'] = tuple(actions) l.factory_type_information = finfo break if hasattr(l, 'custom_map'): del l.custom_map for c in l.children(): procLoc(c) procLoc(dmd.Locations) commit()
  After that, just remove the /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.USU.Map directory.
  Possibly as a side effect of this problem I cannot get at my locations in the GUI. Is there a way to delete the added tab from zendmd?
  The zenpack hopefully wouldn't cause that, but I suppose you never know. What version of zenoss are you using? Are the Locations there at all? What is the value of dmd.factory_type_information?
  Hi,
  I finally found the time to try your code. I tried to understand it, but unfortunately it's a bit over my head :-)
  I decided to give it a shot anyway and pasted it in. Unfortunately it gives me an error when I get down near the end of it:
  ... for c in l.children():
  ... procLoc(c)
  ... procLoc(dmd.Locations)
  File "<console>", line 15
  procLoc(dmd.Locations)
  ^
  SyntaxError: invalid syntax
  I'm using version 3 of Zenoss.
  The infrastructure tab shows 'Locations', but it has no '+' sign in front of it, so I cannot expand it.
  How do I find the dmd.factory_type_information value that you requested? (and what is it?)
  Thanks for being patient with me.
  Sorry about my last post.
  I didn't realize that the blank line of code was significant. What can I say, I'm used to perl :-)
  Unfortunately, 'zenpack --list' still show:
  ZenPacks.USU.Map (broken)
  and it does nothing to my locations problem.
  try:
  i also manage to test the uninstall process using your recommendations and it work using the bogusarg in _init_.py.
  def remove(self, app, bogusarg):
  if hasattr(ZentinelPortal, 'customMapRPC'):
  del ZentinelPortal.customMapRPC
  ZenPackBase.remove(self, app)
  self._unregisterCustomMapTab(app)
  zpm = app.zport.ZenPortletManager
  zpm.unregister_portlet('MapPortlet')
  also using ths _delObject property the objects of the zenpack can be removed using zendmd. With this i manage to reinstall the zenpack.
  dmd.ZenPackManager.packs._delObject('ZenPacks.USU.Map')
  I hope you still get time to work on this!!! I did not try your last attachment yet but this is one functionality which I find lacking in Zenoss which I would like!!
  How do I use or add the custom maps? I'm running 3.0.1 of Fedora 13.
  Steve
  download the last egg attached to one of the previous posts, and then use the install zenpack option in zenoss, and pray. The install code is a little shakey, and I never got a chance to completely test it before my boss nixed the project.
  hello,
  I'm a new user of zenoss and I'm very interested on creating custom map, specially with integration of google earth
  Is it possible with your zenpack
  Really, I dont understand very well the functionality of your zenpack!!!
  for example, is the custom map able to draw links and change color automatically like google maps when an event occur??
  thks for help
  This pack is complex and buggy. I'm not sure it even works under v3. What are you looking to do?
  Best,
  --Shane