summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/test/store-python
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-01-30 08:06:07 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-01-30 08:06:07 +0000
commit8c5172b8ab407b79db53ce46271d72d8a3f9c19f (patch)
tree7ba77e7709aa09aca0b486dfe7cbba3270950762 /sca-cpp/trunk/test/store-python
parentc06d7a38b904247917462c3c1a780f95c68e0709 (diff)
Correctly pass property values to component implementations.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@904734 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/test/store-python')
-rw-r--r--sca-cpp/trunk/test/store-python/fruits-catalog.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sca-cpp/trunk/test/store-python/fruits-catalog.py b/sca-cpp/trunk/test/store-python/fruits-catalog.py
index ea71e93b22..6bc0bca1d7 100644
--- a/sca-cpp/trunk/test/store-python/fruits-catalog.py
+++ b/sca-cpp/trunk/test/store-python/fruits-catalog.py
@@ -1,9 +1,9 @@
# Catalog implementation
-def get(converter):
+def get(converter, currencyCode):
+ code = currencyCode()
def convert(price):
- return converter("convert", "USD", "USD", price)
- code = "USD"
+ return converter("convert", "USD", code, price)
symbol = converter("symbol", code)
return (
(("'javaClass", "services.Item"), ("'name", "Apple"), ("'currencyCode", code), ("'currencySymbol", symbol), ("'price", convert(2.99))),
@@ -12,6 +12,6 @@ def get(converter):
)
# TODO remove these JSON-RPC specific functions
-def listMethods(converter):
+def listMethods(converter, currencyCode):
return ("Service.get",)