Opened 12 years ago

Closed 12 years ago

#30 closed (fixed)

the Sliver object needs a setter for the approved parameter

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

Description

Right now, there is no setter for the approved parameter of the Sliver class. I can set it directly using:

sliver.approved = <value>

but that doesn't provide for any value-checking.

Change History (1)

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

Resolution: fixed
Status: newclosed

This works now. It rejected my initial submission because it was type string (the string has the value "True", which might be worth accepting, but imo isn't work worth worrying about right now). Now this:

  print slivers[sliver].approved
  slivers[sliver].approved = bool(sinfo['approved'])
  print slivers[sliver].approved

yields:

False
True
Note: See TracTickets for help on using tickets.