certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] applications/PyHLA/hla/omt __init__.py enumerat...


From: certi-cvs
Subject: [certi-cvs] applications/PyHLA/hla/omt __init__.py enumerat...
Date: Thu, 11 Jun 2009 17:15:12 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     Petr Gotthard <gotthardp>       09/06/11 17:15:12

Modified files:
        PyHLA/hla/omt  : __init__.py enumerated.py 

Log message:
        BUGFIX: Error while decoding FOM data.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/PyHLA/hla/omt/__init__.py?cvsroot=certi&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/applications/PyHLA/hla/omt/enumerated.py?cvsroot=certi&r1=1.1&r2=1.2

Patches:
Index: __init__.py
===================================================================
RCS file: /sources/certi/applications/PyHLA/hla/omt/__init__.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- __init__.py 15 Nov 2008 14:30:07 -0000      1.4
+++ __init__.py 11 Jun 2009 17:15:11 -0000      1.5
@@ -11,7 +11,7 @@
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # Lesser General Public License for more details.
 #
-# $Id: __init__.py,v 1.4 2008/11/15 14:30:07 gotthardp Exp $
+# $Id: __init__.py,v 1.5 2009/06/11 17:15:11 gotthardp Exp $
 
 import types
 import xml.sax.handler
@@ -52,7 +52,7 @@
             if attributes["cardinality"].lower() == "dynamic":
                 cardinality = None
             else:
-                cardinality = attributes["cardinality"]
+                cardinality = int(attributes["cardinality"])
 
             # name = HLAfixedArray("name", HLAinteger32LE, 3)
             globals()[attributes["name"]] = HLAencoding(attributes["encoding"],
@@ -140,4 +140,4 @@
     parser.setContentHandler(handler)
     parser.parse(filename)
 
-# $Id: __init__.py,v 1.4 2008/11/15 14:30:07 gotthardp Exp $
+# $Id: __init__.py,v 1.5 2009/06/11 17:15:11 gotthardp Exp $

Index: enumerated.py
===================================================================
RCS file: /sources/certi/applications/PyHLA/hla/omt/enumerated.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- enumerated.py       13 Oct 2008 17:15:40 -0000      1.1
+++ enumerated.py       11 Jun 2009 17:15:11 -0000      1.2
@@ -11,7 +11,7 @@
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # Lesser General Public License for more details.
 #
-# $Id: enumerated.py,v 1.1 2008/10/13 17:15:40 gotthardp Exp $
+# $Id: enumerated.py,v 1.2 2009/06/11 17:15:11 gotthardp Exp $
 
 # For example:
 # +------------+----------------+------------+--------+-----------+
@@ -49,7 +49,7 @@
 
     @property
     def octetBoundary(self):
-        return self.representation.octetBoundary()
+        return self.representation.octetBoundary
 
     def pack(self, value):
         return self.representation.pack(value)
@@ -63,4 +63,4 @@
         # if not found
         return value, size
 
-# $Id: enumerated.py,v 1.1 2008/10/13 17:15:40 gotthardp Exp $
+# $Id: enumerated.py,v 1.2 2009/06/11 17:15:11 gotthardp Exp $




reply via email to

[Prev in Thread] Current Thread [Next in Thread]