summaryrefslogtreecommitdiff
path: root/py/demo/Ice/value/Printer.py
blob: 1d76f2e8af03ebdf8351e33885430d7546c0875a (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-2011 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)