Changeset 497

Show
Ignore:
Timestamp:
05/27/08 14:45:38 (8 months ago)
Author:
jmowery
Message:

removing references to old NodeStatus? class

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/trunk-pmd-intproto/server/master.py

    r496 r497  
    155155        # for the server side part. 
    156156        def bools(self, (val, clientid)): 
    157                 n = storage.NodeStatus(clientid, storage_root) 
     157                n = storage.Node(clientid, storage_root) 
    158158                for (key,val) in val.items(): 
    159159                        n.set_bool_status(key, val) 
     
    295295                root_layer = storage.Layer(storage_root) 
    296296                for node_id in root_layer.list_nodes(): 
    297                         n = storage.NodeStatus(node_id, root_layer.Name
     297                        n = storage.Node(node_id, storage_root
    298298                        if len(n.check_updates()): 
    299299                                client_list.append(n.Id) 
    300300                        n.update() 
     301                root_layer.update() 
    301302                return client_list 
    302303 
    303304        def update_client(self, client_id): 
    304305                root_layer = storage.Layer(storage_root) 
    305                 n = storage.NodeStatus(client_id, root_layer.Name
     306                n = storage.Node(client_id, storage_root
    306307                n.update() #be sure we are up to date before checking what to send 
    307308                status_message = protocol.Message('file status','query') 
     
    310311                remove_list = [] 
    311312                for file_name in status_response.body.keys(): 
    312                         if file_name not in n.ModuleStatus.keys(): 
     313                        if file_name not in n.entries.keys(): 
    313314                                remove_list.append(file_name) 
    314315                update_list = n.check_updates() 
     
    324325                        proc.wait() 
    325326                        sum = proc.stdout.read().split()[0] 
     327                        #CHECKME: make sure this matches what the new agent store expects to receive 
    326328                        msg.body.append((storage.get_local_name(file), storage.get_timestamp(file), sum)) 
    327329                for file_name in remove_list: