Opened 12 years ago
Closed 12 years ago
#43 closed (fixed)
can't use __init__ to set Aggregate.version and Aggregate.type
Reported by: | chaos@bbn.com | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | 2012-09-04 client release |
Component: | Clients | Version: | |
Keywords: | v0.2.0 | Cc: | |
Dependencies: |
Description
This code:
aggregate = gmoc.Aggregate( info['site_tag'], 'foam', info['version'], pop, organization, ) print "Input (info['version']): %s" % info['version'] print "aggregate.version: %s" % aggregate.version print "aggregate.__version: %s" % aggregate.__version print "Input ('foam'): %s" % 'foam' print "aggregate.type: %s" % aggregate.type print "aggregate.__type: %s" % aggregate.__type
yields:
Input (info['version']): 0.8.2 aggregate.version: None aggregate.__version: None Input ('foam'): foam aggregate.type: None aggregate.__type: None
That is, invoking Aggregate
with the type
and version
fields defined appears to have no effect.
Change History (3)
comment:1 Changed 12 years ago by
Keywords: | v0.2.0 added |
---|
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Verified that this is fixed in 0.2.1.
Note: See
TracTickets for help on using
tickets.
This should be fixed in version 0.2.1. I did away with the call method in the metaclass because it is largely unnecessary when using a regular base class (GMOCObject) and it was munging the parameters going into init in some way I don't really understand.