Changeset 3e7dea7 in trunk
- Timestamp:
- 2020-04-17T19:25:42Z (5 years ago)
- Branches:
- master
- Children:
- 8b7ef33b
- Parents:
- 8c92187
- git-author:
- Sajith Sasidharan <sajith@…> (2020-04-06 23:01:22)
- git-committer:
- Sajith Sasidharan <sajith@…> (2020-04-17 19:25:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/web/storage.py ¶
r8c92187 r3e7dea7 39 39 @renderer 40 40 def nickname(self, req, tag): 41 return self._nickname41 return tag(self._nickname) 42 42 43 43 @renderer 44 44 def nodeid(self, req, tag): 45 return idlib.nodeid_b2a(self._storage.my_nodeid)45 return tag(idlib.nodeid_b2a(self._storage.my_nodeid)) 46 46 47 47 def _get_storage_stat(self, key): … … 111 111 def accepting_immutable_shares(self, req, tag): 112 112 accepting = self._get_storage_stat("storage_server.accepting_immutable_shares") 113 return {True: "Yes", False: "No"}[bool(accepting)]113 return tag({True: "Yes", False: "No"}[bool(accepting)]) 114 114 115 115 @renderer … … 118 118 count = s.get("last-complete-bucket-count") 119 119 if count is None: 120 return "Not computed yet"121 return str(count)120 return tag("Not computed yet") 121 return tag(str(count)) 122 122 123 123 @renderer 124 124 def count_crawler_status(self, req, tag): 125 125 p = self._storage.bucket_counter.get_progress() 126 return self.format_crawler_progress(p)126 return tag(self.format_crawler_progress(p)) 127 127 128 128 def format_crawler_progress(self, p):
Note: See TracChangeset
for help on using the changeset viewer.