summaryrefslogtreecommitdiff
path: root/py/demo/Ice/value/Printer.py
blob: bd92c647c2c42cbfc8105c4cdd9e4a1acc52750e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
# **********************************************************************
#
# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************

import Demo, string

class PrinterI(Demo.Printer):
    def printBackwards(self, current=None):
        print self.message[::-1]

class DerivedPrinterI(Demo.DerivedPrinter, PrinterI):
    def printUppercase(self, current=None):
        print string.upper(self.derivedMessage)