equal
deleted
inserted
replaced
146 msgs = [msg for msg in (self._cw.get_shared_data('sources_error', pop=True), |
146 msgs = [msg for msg in (self._cw.get_shared_data('sources_error', pop=True), |
147 self._cw.message) if msg] |
147 self._cw.message) if msg] |
148 self.w(u'<div id="appMsg" onclick="%s" class="%s">\n' % |
148 self.w(u'<div id="appMsg" onclick="%s" class="%s">\n' % |
149 (toggle_action('appMsg'), (msgs and ' ' or 'hidden'))) |
149 (toggle_action('appMsg'), (msgs and ' ' or 'hidden'))) |
150 for msg in msgs: |
150 for msg in msgs: |
151 self.w(u'<div class="message" id="%s">%s</div>' % ( |
151 self.w(u'<div class="message" id="%s">%s</div>' % (self.domid, msg)) |
152 self.div_id(), msg)) |
|
153 self.w(u'</div>') |
152 self.w(u'</div>') |
154 |
153 |
155 |
154 |
156 class ApplicationName(component.Component): |
155 class ApplicationName(component.Component): |
157 """display the instance name""" |
156 """display the instance name""" |