Changeset 441

Show
Ignore:
Timestamp:
05/07/08 13:53:58 (8 months ago)
Author:
jmowery
Message:

small update to dummy print for testing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/trunk-pmd-intproto/mgmt/manager.py

    r440 r441  
    167167        useage = 'useage:\n   update (group GROUPNAME | all | client [clientlist])' 
    168168        if argv[0] == 'client': 
    169                 msg = self.update() 
     169                msg = mgr.update() 
    170170                msg.body = sys.argv[3:] 
    171171        elif argv[0] == 'group': 
     
    284284                sys.exit(1) 
    285285        pprint.pprint(repr(res)) 
    286         if res is not None: 
    287                 print res.msg 
    288                 print res.body 
    289  
     286        if res.__class__ == [].__class__: 
     287                for result in res: 
     288                        if result is not None: 
     289                                print result[0].msg 
     290                                print result[0].body 
     291        else: 
     292                if res is not None: 
     293                        print res.msg 
     294                        print res.body 
     295