Changeset 499

Show
Ignore:
Timestamp:
05/27/08 15:36:47 (8 months ago)
Author:
mgoldman
Message:

comment update

Files:

Legend:

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

    r497 r499  
    139139                return msg 
    140140 
    141 ###     Old style of doing this.  handler sent messages and processed results. 
    142 ###     Now Bad! 
    143 ###     def bools(self, (mgr,info), msg, clientid=None): 
    144 ###             self.clients.send_all(msg) 
    145 ###             res = [] 
    146 ###             for (c, i) in self.clients.get_clients().items(): 
    147 ###                     ret = pickle.load(c.makefile()) 
    148 ###                     n = storage.NodeStatus(i[0], storage_root) 
    149 ###                     for bool in val.body.keys(): 
    150 ###                             n.set_bool_status(bool, msg.body[bool]) 
    151 ###                     n.update() 
    152 ###                     res.append((ret, i)) 
    153 ###             return res 
    154         # Now does the work of handling a single result from the result of comm() 
    155         # for the server side part. 
     141### These functions handle an update message from the client, 
     142### storing whatever is appropriate. 
    156143        def bools(self, (val, clientid)): 
    157144                n = storage.Node(clientid, storage_root) 
     
    168155        def modules(self, (val, clientid)): 
    169156                pass 
    170  
     157######################## 
    171158 
    172159        def list(self, (mgr,info), msg, clientid=None):