###############################################################################
-from engine import VERSION, SERVICELIST, CloudeebusService, cache
-import engine
+from cloudeebusengine import VERSION, SERVICELIST, CloudeebusService, cache
+import cloudeebusengine
OPENDOOR = False
CREDENTIALS = {}
factory.protocol = CloudeebusServerProtocol
factory.setProtocolOptions(allowHixie76 = True)
- # Configure engine for WAMP.
- engine.factory = factory
- engine.OPENDOOR = OPENDOOR
+ # Configure cloudeebus engine for WAMP.
+ cloudeebusengine.factory = factory
+ cloudeebusengine.OPENDOOR = OPENDOOR
listenWS(factory)
from twisted.internet import defer
-# The user of engine.py must set this to some object
+# The user of cloudeebusengine.py must set this to some object
# providing a dispatch(topicUri, event) method as in WampServerFactory
factory = None
# message passing instead of the original WebSocket/WAMP.
#
# Installation:
-# cloudeebus.js, xwalkcloudeebus.py and engine.py must be installed in
+# cloudeebus.js, xwalkcloudeebus.py and cloudeebusengine.py must be installed in
# the same directory. xwalkcloudeebus.py (or a symlink to it) and a
# symlink to libpycrosswalk.so must be in a directory that Crosswalk
# searches for extensions.
import xwalk
-# Configure engine module. Partly has to be done before importing
+# Configure cloudeebus engine module. Partly has to be done before importing
# because the engine needs to know how it is going to be used.
os.environ['CLOUDEEBUS_XWALK'] = '1'
-import engine
-engine.OPENDOOR = True # No other process has access, so we need no additional credential checking.
+import cloudeebusengine
+cloudeebusengine.OPENDOOR = True # No other process has access, so we need no additional credential checking.
class Factory:
# Mapping from instance ID to hash with all subscribed topics.
if topic in topics:
xwalk.PostMessage(instance, json.dumps(['signal', topic, event]))
-engine.factory = Factory()
+cloudeebusengine.factory = Factory()
-service = engine.CloudeebusService({'permissions': [], 'authextra': '', 'services': []})
+service = cloudeebusengine.CloudeebusService({'permissions': [], 'authextra': '', 'services': []})
methods = {}
for method in inspect.getmembers(service.__class__, inspect.ismethod):
author_email = "luc.yriarte@intel.com, christophe.guiraud@intel.com, frederic.paut@intel.com",
url = "https://github.com/01org/cloudeebus/wiki",
license = "http://www.apache.org/licenses/LICENSE-2.0",
- scripts = ["cloudeebus/cloudeebus.py","cloudeebus/engine.py"],
+ scripts = ["cloudeebus/cloudeebus.py","cloudeebus/cloudeebusengine.py"],
packages = ["cloudeebus"],
data_files = [("cloudeebus" ,["AUTHORS", "README.md", "LICENSE"]),
('/etc/dbus-1/system.d/', ['org.cloudeebus.conf'])],