User Tools

Site Tools


devel:ipdevpoll:writing_plugins

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
devel:ipdevpoll:writing_plugins [2009/07/15 14:24] klettedevel:ipdevpoll:writing_plugins [2009/10/26 09:17] (current) – Shadowclasses are in shadows-module klette
Line 128: Line 128:
 First of we need to get a hold of our ShadowClasses. They are accessed in the nav.ipdevpoll.storage-module. So we import it First of we need to get a hold of our ShadowClasses. They are accessed in the nav.ipdevpoll.storage-module. So we import it
 <code python> <code python>
-from nav.ipdevpoll import storage+from nav.ipdevpoll import shadows
 </code> </code>
  
Line 137: Line 137:
     def handle(self):     def handle(self):
         # <Snip!> This part is the same are before         # <Snip!> This part is the same are before
-        netbox = self.job_handler.container_factory(storage.Netbox, key=None)+        netbox = self.job_handler.container_factory(shadows.Netbox, key=None)
         for (ifindex,),row in result.items():         for (ifindex,),row in result.items():
             self.logger.debug("%s has ifDescr %s" % (ifindex, row['ifDescr']))             self.logger.debug("%s has ifDescr %s" % (ifindex, row['ifDescr']))
devel/ipdevpoll/writing_plugins.1247667843.txt.gz · Last modified: by klette

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki