git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ccb6170
)
GeniServer uses GeniAPI by defualut. reinitalize the servers api as ComponentAPI
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 9 Nov 2009 00:52:37 +0000
(
00:52
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 9 Nov 2009 00:52:37 +0000
(
00:52
+0000)
sfacomponent/server/component.py
patch
|
blob
|
history
diff --git
a/sfacomponent/server/component.py
b/sfacomponent/server/component.py
index
1d2383b
..
ab76961
100644
(file)
--- a/
sfacomponent/server/component.py
+++ b/
sfacomponent/server/component.py
@@
-11,6
+11,7
@@
import time
import sys
from sfa.util.geniserver import GeniServer
import sys
from sfa.util.geniserver import GeniServer
+from sfacomponent.plc.api import ComponentAPI
# GeniLight client support is optional
try:
# GeniLight client support is optional
try:
@@
-32,4
+33,6
@@
class Component(GeniServer):
def __init__(self, ip, port, key_file, cert_file):
GeniServer.__init__(self, ip, port, key_file, cert_file)
def __init__(self, ip, port, key_file, cert_file):
GeniServer.__init__(self, ip, port, key_file, cert_file)
- self.server.interface = 'component'
+ # re-initialize the servers api as Component api
+ self.server.api = ComponentAPI(interface='component', key_file=key_file, cert_file=cert_file)
+ self.server.interface = 'component'