Ignore:
Timestamp:
Sep 12, 2008 5:28:33 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
291423b
Parents:
27b6aea
Message:

add info and work with SEER attach

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_client.py

    r27b6aea rc52c48d  
    346346            self.key="vis"
    347347            self.xml='vis'
     348        elif op == 'Info': pass
    348349        else:
    349350            raise TypeError("Bad op: %s" % op)
     
    415416            sys.exit("Error processing RPC: %s" % e)
    416417
    417         try:
    418             if resp_dict.has_key(self.key):
    419                 self.print_xml(resp_dict[self.key])
    420         except RuntimeError, e:
    421             sys.exit("Bad response. %s" % e.message)
     418        if getattr(self, 'key', None):
     419            try:
     420                if resp_dict.has_key(self.key):
     421                    self.print_xml(resp_dict[self.key])
     422            except RuntimeError, e:
     423                sys.exit("Bad response. %s" % e.message)
     424        else:
     425            print resp_dict
    422426
    423427class create(fedd_rpc):
     
    632636        'vtopo': exp_data('Vtopo'),\
    633637        'vis': exp_data('Vis'),\
     638        'info': exp_data('Info'),\
    634639    }
    635640
Note: See TracChangeset for help on using the changeset viewer.