comparison MoinMoin/action/SyncPages.py @ 1352:dfed953d5e9f

Added showtags action, minor changes in SyncPages.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sun, 20 Aug 2006 17:27:56 +0200
parents 650a2dc16b19
children 8bf6e48c6236
comparison
equal deleted inserted replaced
1351:aebf6f7ab57e 1352:dfed953d5e9f
59 table = [] 59 table = []
60 60
61 for line in self.status: 61 for line in self.status:
62 macro_args = [line[1]] + list(line[2]) 62 macro_args = [line[1]] + list(line[2])
63 table.append(table_line % {"smiley": line[0][1], "message": 63 table.append(table_line % {"smiley": line[0][1], "message":
64 macro_args and u"[[GetText2(|%s)]]" % (packLine(macro_args), ), 64 line[1] and (u"[[GetText2(|%s)]]" % (packLine(macro_args), )),
65 "raw_suffix": line[3]}) 65 "raw_suffix": line[3]})
66 66
67 return "\n".join(table) 67 return "\n".join(table)
68 68
69 def parse_page(self): 69 def parse_page(self):
139 139
140 self.sync(params, local, remote) 140 self.sync(params, local, remote)
141 except ActionStatus, e: 141 except ActionStatus, e:
142 msg = u'<p class="error">%s</p>\n' % (e.args[0], ) 142 msg = u'<p class="error">%s</p>\n' % (e.args[0], )
143 else: 143 else:
144 msg = u"%s" % (_("Syncronisation finished."), ) 144 msg = u"%s" % (_("Syncronisation finished. Look below for the status messages."), )
145 145
146 self.page.saveText(self.page.get_raw_body() + "\n\n" + self.generate_log_table(), 0) 146 self.page.saveText(self.page.get_raw_body() + "\n\n" + self.generate_log_table(), 0)
147 # XXX release readlock on self.page 147 # XXX release readlock on self.page
148 148
149 self.page.send_page(self.request, msg=msg) 149 self.page.send_page(self.request, msg=msg)