← Back to team overview

oship-dev team mailing list archive

[Branch ~oship-dev/oship/devel] Rev 472: Bug #602652 fix. validateType() enabled

 

------------------------------------------------------------
revno: 472
committer: Eduardo César edu@starforge>
branch nick: local
timestamp: Fri 2010-08-20 10:23:45 -0300
message:
  Bug #602652 fix. validateType() enabled
modified:
  src/oship/mlhim/rm/support/identification/__init__.py
  src/oship/mlhim/rm/support/identification/interfaces.py
  src/oship/openehr/rm/support/identification/__init__.py
  src/oship/openehr/rm/support/identification/interfaces.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/mlhim/rm/support/identification/__init__.py'
--- src/oship/mlhim/rm/support/identification/__init__.py	2010-08-06 22:33:36 +0000
+++ src/oship/mlhim/rm/support/identification/__init__.py	2010-08-20 13:23:45 +0000
@@ -492,6 +492,7 @@
 
     def __init__(self, id_, nameSpace, type_):
         ObjectRef.__init__(self, id_, nameSpace, type_)
+        self.validateType()
 
     def validateType(self):
         u""" type_ is in

=== modified file 'src/oship/mlhim/rm/support/identification/interfaces.py'
--- src/oship/mlhim/rm/support/identification/interfaces.py	2010-08-06 22:33:36 +0000
+++ src/oship/mlhim/rm/support/identification/interfaces.py	2010-08-20 13:23:45 +0000
@@ -308,8 +308,6 @@
                         reference model.  The type name "ANY" can be
                         used to indicate that any type is accepted
                         (e.g. if the type is unknown)."""),
-
-        #constraint = validateType
         )
 
 

=== modified file 'src/oship/openehr/rm/support/identification/__init__.py'
--- src/oship/openehr/rm/support/identification/__init__.py	2010-08-06 13:07:05 +0000
+++ src/oship/openehr/rm/support/identification/__init__.py	2010-08-20 13:23:45 +0000
@@ -492,6 +492,7 @@
 
     def __init__(self, id_, nameSpace, type_):
         ObjectRef.__init__(self, id_, nameSpace, type_)
+        self.validateType()
 
     def validateType(self):
         u""" type_ is in

=== modified file 'src/oship/openehr/rm/support/identification/interfaces.py'
--- src/oship/openehr/rm/support/identification/interfaces.py	2010-07-28 21:58:43 +0000
+++ src/oship/openehr/rm/support/identification/interfaces.py	2010-08-20 13:23:45 +0000
@@ -308,8 +308,6 @@
                         reference model.  The type name "ANY" can be
                         used to indicate that any type is accepted
                         (e.g. if the type is unknown)."""),
-
-        #constraint = validateType
         )