summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/samples/store-vhost/domains/joe/fruits-catalog.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/samples/store-vhost/domains/joe/fruits-catalog.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sca-cpp/trunk/samples/store-vhost/domains/joe/fruits-catalog.py b/sca-cpp/trunk/samples/store-vhost/domains/joe/fruits-catalog.py
index b5eb035ae3..6644421683 100644
--- a/sca-cpp/trunk/samples/store-vhost/domains/joe/fruits-catalog.py
+++ b/sca-cpp/trunk/samples/store-vhost/domains/joe/fruits-catalog.py
@@ -17,11 +17,11 @@
# Catalog implementation
-def getcatalog(converter, currencyCode):
- code = currencyCode()
+def items(converter, currencyCode):
+ code = currencyCode.eval()
def convert(price):
- return converter("convert", "USD", code, price)
- symbol = converter("symbol", code)
+ return converter.convert("USD", code, price)
+ symbol = converter.symbol(code)
return (
(("'name", "Apple"), ("'currencyCode", code), ("'currencySymbol", symbol), ("'price", convert(2.99))),
(("'name", "Orange"), ("'currencyCode", code), ("'currencySymbol", symbol), ("'price", convert(3.55))),