Closed j053ph4 closed 7 years ago
please review
bump please
Right now im only using the hwcomponent to get the relation to the productkeys. I coukd just as easily usr a zplib component that just has that relaiom like what was there in 1.x.
Im not using proxies for anything else..
I could live without the proxies as they are today and truth be told they kinda scare me.
Im about to zenoss5ify everyting anyways.
Of course winzp is using them im assuming.
I do need to be able non containing rels to ipinterface and i should be using the os process classes for a couple projects..im sure i could deal with that using old spis
I dont think we can update to stock zplib 2.06 or 2.07+ without this fix or guidance on how to handle the issue with hwcomponent in zenpacklib not working as it did in zplib version 1.0.
the ComponentBase code broke the deletion of windows services and processes we think. we were able to finally reproduce it in our dev system. we applied this patch to 2.07 but did not apply the ComponentBase change and it seems like the modeling issue is fixed AND the windows services /processes problem is gone also...
Two main issues are involved here. First, the various PathReporters used by ZPL proxy classes need to have their own getPaths() overrides like the one ZPL provides.
Second, the ComponentBase containing_relname method fails for proxy classes whose primary parents are OperatingSystem or Hardware, since these are only valid if the subclass has the same name as the parent class (like FileSystem). Otherwise, the device is directly related to the class.