summaryrefslogtreecommitdiff
path: root/py/demo/Ice/value/Printer.py
blob: 5b7a8a0a794aaa6ce12bbb6412e0c28396ca6fad (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-2007 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)