oship-dev team mailing list archive
-
oship-dev team
-
Mailing list archive
-
Message #01617
[Branch ~oship-dev/oship/devel] Rev 515: Fixed representation method of DvText class
------------------------------------------------------------
revno: 515
committer: Wagner Francisco Mezaroba <wagner@wagner-laptop>
branch nick: oship
timestamp: Sun 2010-11-21 01:23:52 -0200
message:
Fixed representation method of DvText class
modified:
src/oship/openehr/rm/datatypes/text/__init__.py
--
lp:oship
https://code.launchpad.net/~oship-dev/oship/devel
Your team OSHIP Development Team is subscribed to branch lp:oship.
To unsubscribe from this branch go to https://code.launchpad.net/~oship-dev/oship/devel/+edit-subscription
=== modified file 'src/oship/openehr/rm/datatypes/text/__init__.py'
--- src/oship/openehr/rm/datatypes/text/__init__.py 2010-11-21 02:17:24 +0000
+++ src/oship/openehr/rm/datatypes/text/__init__.py 2010-11-21 03:23:52 +0000
@@ -121,15 +121,7 @@
return self.value
def __repr__(self):
- str = 'DvText('
- str += 'value=' + value
- str += 'mappings=' + mappings
- str += 'formatting=' + formatting
- str += 'hyperlink=' + hyperlink
- str += 'language=' + language
- str += 'encoding=' + encoding
- str += ')'
- return str
+ return 'DvText(value: %s, mapping: %s, formatting: %s, hyperlink: %s, language: %s, encoding: %s)' % (self.value, self.mappings, self.formatting, self.hyperlink, self.language, self.encoding)
class CodePhrase(grok.Model):
"""