oship-dev team mailing list archive
-
oship-dev team
-
Mailing list archive
-
Message #01559
[Branch ~oship-dev/oship/devel] Rev 500: Fix Bug #623581. Removed unused attributes in the interface and changed parent.
------------------------------------------------------------
revno: 500
committer: Eduardo César edu@starforge>
branch nick: local
timestamp: Fri 2010-10-01 11:52:27 -0300
message:
Fix Bug #623581. Removed unused attributes in the interface and changed parent.
modified:
src/oship/openehr/rm/common/archetyped/__init__.py
src/oship/openehr/rm/common/archetyped/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/openehr/rm/common/archetyped/__init__.py'
--- src/oship/openehr/rm/common/archetyped/__init__.py 2010-09-06 13:32:03 +0000
+++ src/oship/openehr/rm/common/archetyped/__init__.py 2010-10-01 14:52:27 +0000
@@ -86,7 +86,7 @@
points in data """
return self.archetypeDetails is not None
- def concept():
+ def concept(self):
"""
Clinical concept of the archetype as a whole (= derived from the
'archetype_node_id' of the root node) isArchetypeRoot must be True.
@@ -95,21 +95,21 @@
return DvText(self.archetypeDetails.archetypeId.conceptName())
raise TypeError('Not root node')
- def nameValid():
+ def nameValid(self):
""" name is not None"""
return self.name is not None
- def linksValid():
+ def linksValid(self):
""" links is not None and links != []"""
if self.links is not None:
return self.links != []
return self.links is None
- def archetypedValid():
+ def archetypedValid(self):
""" isArchetypeRoot xor archetypeDetails = None """
return xor(self.isArchetypeRoot(), self.archetypeDetails is None)
- def archetypeNodeIdValid():
+ def archetypeNodeIdValid(self):
""" archetypeNodeId is not None and archetypeNodeId != '' """
if(self.archetypeNodeId is not None):
return self.archetypeNodeId != ''
@@ -212,7 +212,7 @@
self.originalContent=orgcontent
-class Link(Locatable):
+class Link(object):
"""
The LINK type defines a logical relationship between two items, such as two
ENTRYs or an ENTRY and a COMPOSITION. Links can be used across composi-
=== modified file 'src/oship/openehr/rm/common/archetyped/interfaces.py'
--- src/oship/openehr/rm/common/archetyped/interfaces.py 2010-08-06 21:24:11 +0000
+++ src/oship/openehr/rm/common/archetyped/interfaces.py 2010-10-01 14:52:27 +0000
@@ -71,16 +71,7 @@
)
- def meaningValid():
- """Return meaning is not None """
-
- def typeValid():
- """Return type is not None """
-
- def targetValid():
- """Return target is not None """
-
-
+
class IFeederAuditDetails(Interface):
u"""