Opened 12 years ago

Closed 12 years ago

#36 closed (fixed)

`SA_TYPE_PROTOGENI` should be of type string.

Reported by: sedwards@bbn.com Owned by: somebody
Priority: major Milestone: 2012-09-04 client release
Component: Clients Version:
Keywords: Cc:
Dependencies:

Description (last modified by sedwards@bbn.com)

SA_TYPE_PROTOGENI should be a string.

Change History (2)

comment:1 Changed 12 years ago by sedwards@bbn.com

Description: modified (diff)
Summary: Define `SA_TYPE_PROTOGENI``SA_TYPE_PROTOGENI` should be of type string.

SA_TYPE_PROTOGENI is defined in v0.4.0.

But in v.0.4.0 it is set to:

SA_TYPE_PROTOGENI            = 0x01 

but the validator wants it to be a string.

If I use SA_TYPE_PROTOGENI as is, I get the following error:

Traceback (most recent call last):
  File "gmoc_test.py", line 39, in <module>
    pop=myPop)
  File "/home/sedwards/gmoc_client/v0_4_0/gmoc.py", line 669, in __init__
    self.type = type
  File "/home/sedwards/gmoc_client/v0_4_0/gmoc.py", line 288, in __setProp
    raise TypeError(propName + " must be of type " + propType.__name__)
TypeError: type must be of type str

comment:2 Changed 12 years ago by sedwards@bbn.com

Resolution: fixed
Status: newclosed

Fixed in 0.5.3.

Note: See TracTickets for help on using tickets.