← Back to team overview

oship-dev team mailing list archive

[Branch ~oship-dev/oship/devel] Rev 457: Removed assignment of attributes since they are done in the superclass

 

------------------------------------------------------------
revno: 457
committer: Eduardo César edu@starforge>
branch nick: local
timestamp: Fri 2010-08-06 11:41:03 -0300
message:
  Removed assignment of attributes since they are done in the superclass
modified:
  src/oship/rm/data_structures/item_structure/representation/__init__.py
  src/oship/rm/data_structures/tests/datastructure.txt


--
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/rm/data_structures/item_structure/representation/__init__.py'
--- src/oship/rm/data_structures/item_structure/representation/__init__.py	2010-08-01 16:37:49 +0000
+++ src/oship/rm/data_structures/item_structure/representation/__init__.py	2010-08-06 14:41:03 +0000
@@ -16,13 +16,6 @@
                  feederAudit, links, parent):
         Locatable.__init__(self, uid, archetypeNodeId, name, archetypeDetails,
                            feederAudit, links)
-        self.uid = uid
-        self.archetypeNodeId = archetypeNodeId
-        self.name = name
-        self.archetypeDetails = archetypeDetails
-        self.feederAudit = feederAudit
-        self.links = links
-        self.parent = parent
 
 
 class Cluster(Item):

=== modified file 'src/oship/rm/data_structures/tests/datastructure.txt'
--- src/oship/rm/data_structures/tests/datastructure.txt	2010-07-29 00:09:52 +0000
+++ src/oship/rm/data_structures/tests/datastructure.txt	2010-08-06 14:41:03 +0000
@@ -63,7 +63,7 @@
 >>> point1.data 
 u'some data'
 
->>> item2 = Item(uid1, archNodeId1, name1, None, None, uri1, None)
+>>> item2 = Item(uid1, archNodeId1, name1, None, None, uri1, item1)
 >>> item2.name
 u'some name'
 >>> IItem.providedBy(item2)