I'm looking for an example of how to perform an action from the GUI to asynchronously notify a daemon to perform an action and return a result. For example, if the user were to select a dialog from a menu item called "Get foobars", have a request with the message "GET FOOBARS id" be sent to the daemon and have a result be sent back so that the dialog can display a list of valid foobars for the user to select.
All of the examples of "communication" I've seen so far have been to invoke a daemon with arguments, and the daemons update the database behind the scenes through twisted calls. I thought that the key might be in zenhub.py, but nothing is making sense to me right now.
Does someone have a simple and illustrative example of how to achieve this functionality?
Thank you!
kells
_______________________________________________
zenoss-dev mailing list
zenoss-dev@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-dev
Okay, I managed to figure out a crude working version of XML RPC thanks to your hint! Excellent, thank you!
Just to make sure that I don't accidentally clobber any toes, what's the preferred method for allocating port numbers and distributing that information inside of service + zenhub / daemon / zenoss? ie A configuration file that people append to in order to prevent conflicts and allow both Zope and external daemons to figure out what ports go with what service.
Thank you!
kells
_______________________________________________
zenoss-dev mailing list
zenoss-dev@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-dev
|
Follow Us On Twitter »
|
Latest from the Zenoss Blog » |
|
Community | Products | Services Resources | Customers Partners | About Us | |
|
|
|
Copyright © 2005-2010 Zenoss, Inc.
|
||||||