web/views/basecomponents.py
changeset 6140 65a619eb31c4
parent 5854 b49f58a320e6
child 6141 b8287e54b528
equal deleted inserted replaced
6139:f76599a96238 6140:65a619eb31c4
   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"""