Changeset 499
- Timestamp:
- 05/27/08 15:36:47
(8 months ago)
- Author:
- mgoldman
- Message:
comment update
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r497 |
r499 |
|
| 139 | 139 | return msg |
|---|
| 140 | 140 | |
|---|
| 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. |
|---|
| 156 | 143 | def bools(self, (val, clientid)): |
|---|
| 157 | 144 | n = storage.Node(clientid, storage_root) |
|---|
| … | … | |
| 168 | 155 | def modules(self, (val, clientid)): |
|---|
| 169 | 156 | pass |
|---|
| 170 | | |
|---|
| | 157 | ######################## |
|---|
| 171 | 158 | |
|---|
| 172 | 159 | def list(self, (mgr,info), msg, clientid=None): |
|---|
Download in other formats:
* Generating other formats may take time.