zenoss / ZenPackGenerator

Proof of Concept for streamlining zenpack development.
Other
5 stars 3 forks source link

deviceType on Zenoss Core #29

Open JosefJezek opened 10 years ago

JosefJezek commented 10 years ago

I have issue with deviceType on Zenoss Core 4.2.4.

"deviceClasses": [{
    "deviceType": {
      "name": "SynologyDevice",
      "properties": [{
        "type": "int",
        "name": "temp_sensor_count"
      }]
    },
    "path": "Device/Snmp",
    "zPythonClass": "SynologyDevice"
  }]
zope.configuration.config.ConfigurationExecutionError: <type 'exceptions.AttributeError'>: 'module' object has no attribute '__module__'
  in:
  File "/home/zenoss/zenpack/ZenPacks.community.Synology/ZenPacks/community/Synology/configure.zcml", line 47.4-55.10
      <browser:viewlet
          name="js-ZenPacks_community_Synology_SynologyDevice"
          paths="/++resource++ZenPacks_community_Synology/js/ZenPacks_community_Synology_SynologyDevice.js"
          for="ZenPacks.community.Synology.SynologyDevice"
          weight="20"
          manager="Products.ZenUI3.browser.interfaces.IJavaScriptSrcManager"
          class="Products.ZenUI3.browser.javascript.JavaScriptSrcBundleViewlet"
          permission="zope2.Public"
          />
eedgar commented 10 years ago

This may be fixed in the development branch. Can you checking out that branch and let me know if that worked for you?