Hey Jane, Looked briefly at the code, your current version won't handle having multiple groups. For me that would be a deal breaker. The ability to assign to multiple groups helps keep large system collections organized. Using the cvs.reader function means you're unable to read arbitrarily long sets which is why I parsed through the data myself.
As for the problems surrounding collectdevice, that was why I had multiple commits and a find between them. I believe you're correct that timing of when things appear in the database etc is why adding multiple items fail, and the way I was able to get around the problem was to have multiple commits, and having to find the device you've just created. Those extra steps shouldn't be necessary, but they are... Commit is supposed to write any changes you've made back to the zendmd database. Without a commit, you're working with a copy of the data, and nothing you do will get written to the database. If you learn about and use regular expressions, they are very powerful tools that are useful in MANY places. I'd suggest perhaps starting with my code and then adding things that you want from Jim's code... -Scott On Mon, Feb 2, 2009 at 12:56 PM, Scott Miller <[email protected]>wrote: > I also have attempted to allow comments, but the ability to add comments > doesn't appear to be there... > -Scott > > > On Mon, Feb 2, 2009 at 12:40 PM, jcurry <[email protected]>wrote: > >> OK - 2 things. >> I am really struggling with the wiki - Matt. I can create pages both in >> my personal folder and at the higher levels of the wiki, but I cannot edit >> even my own pages. Nor can I modify anyone else's pages (which may be OK) - >> but it would be good to add comments. Some pages I can; some I can't. When >> I created my own pages, I ticked the box to enable comments but I don't see >> any comments box..... >> >> On the actual code front, I have started with the script from Jim Shank >> and added lots of comments, some tweaking, lots more fields and some of the >> good stuff from Scott Miller's script. The code is on my own home page at >> http://www.zenoss.com/Members/jcurry - select "Another batch loader". It >> needs more testing so please feel free to have a go and provide comments / >> input. >> >> Cheers, >> Jane >> >> >> >> >> -------------------- m2f -------------------- >> >> Read this topic online here: >> http://forums.zenoss.com/viewtopic.php?p=30793#30793 >> >> -------------------- m2f -------------------- >> >> >> >> _______________________________________________ >> zenoss-users mailing list >> [email protected] >> http://lists.zenoss.org/mailman/listinfo/zenoss-users >> > >
_______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
