Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
adc-testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
misc
adc-testing
Commits
15ecd74a
Commit
15ecd74a
authored
Sep 01, 2011
by
Federico Asara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RemoteObject introduction: uses a Pyro4 URI to load a remote object.
parent
8fc9a7f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
RemoteObject.py
PAGE/RemoteObject.py
+20
-0
No files found.
PAGE/RemoteObject.py
0 → 100644
View file @
15ecd74a
import
sys
import
Pyro4
import
Item
from
Utilities
import
*
from
numpy
import
*
"""This class represents a remote object, using Pyro4 framework.
All it needs is a URI."""
class
RemoteObject
(
Item
.
Item
,
Pyro4
.
Proxy
):
_parameters
=
{
'uri'
:
[
'URI'
,
'Name of the service'
,
''
,
str
]}
def
__init__
(
self
,
*
args
,
**
kwargs
):
Item
.
Item
.
__init__
(
self
,
*
args
,
**
kwargs
)
Pyro4
.
Proxy
.
__init__
(
self
,
uri
=
Pyro4
.
locateNS
()
.
lookup
(
self
.
uri
))
name
=
'Remote Object'
target
=
RemoteObject
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment