Nov 7, 2011 8:13 PM
Unable to get a top level object to register.
-
Like (0)
Folks:
I have tried to get a top level object (something along the lines like "Manufacturers") to register into the dmd using the zenpack methodology. I looked at the example of example.Techniques and put in my item (like the TopLevel.py in example") in the directory and also added the equivalent migrate file also. But the object is not registering in the DMD. I then proceeded to copy and install the example.Techniques zenpack to see if it would register. I had a problem with the example zenpack, as I needed to delete out the report objects from it and then create the egg to upload into the server. Once I did that, the example zenpack would load, but still I would not see the "TopLevel" item in the DMD. I was able to locate the other items in the database (websites, and such as they were placed into the database). The loaded objects that the ZenPacks details via the advanced/zenpacks is that the website stuff has registered in (all rdd items) but there is no toplevel object registered in that. I figure if I can figure out how to get the example to register the toplevel, i can get my zenpack to register my item as well. What would be the cause of this not to register. I have even tried putting in bogus python code to see if I get an error when it tries to do the "add_managexxx" but not even seeing any error on that. What would be the cause not to have an item register in the DMD?
I have been able to do the "manual" registration of an object (using manufactures as an example) and was able to get skins to display some objects. I since then re-installed zenoss to wipe out that version, and am now trying to do this via a zenpack. We want to be able to have it self contained and done via the zenpacks, rather than creating some other process that install and modifies files to get these objects into the DMD.
THanks in advance.
Brian
You might have a look at j053ph4's "APPLICATION PROFILES" ZenPack. I've not personally done it, but I remember that this zenpack provided a new root level item called profiles. Possibly looking through his code, might provide the answer
I finally got it to register. I think I needed to create the update, install and remove in the zenpack. I had tried manually adding the item by calling the the manage_add routine, but I think once all the three items I mentioned before, that got it to register.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||