Mercurial > libervia-web
comparison src/browser/contact.py @ 459:36f27d1e64b2
browser_side: avoid warning "list comprehension redefines 'group' from line XXX"
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 29 May 2014 17:53:53 +0200 |
parents | 05e98b8d9f02 |
children |
comparison
equal
deleted
inserted
replaced
458:1eeed8028199 | 459:36f27d1e64b2 |
---|---|
110 def add(self, group): | 110 def add(self, group): |
111 _item = GroupLabel(self._parent.host, group) | 111 _item = GroupLabel(self._parent.host, group) |
112 _item.addMouseListener(self._parent) | 112 _item.addMouseListener(self._parent) |
113 DOM.setStyleAttribute(_item.getElement(), "cursor", "pointer") | 113 DOM.setStyleAttribute(_item.getElement(), "cursor", "pointer") |
114 index = 0 | 114 index = 0 |
115 for group_ in [group.group for group in self.getChildren()]: | 115 for group_ in [child.group for child in self.getChildren()]: |
116 if group_ > group: | 116 if group_ > group: |
117 break | 117 break |
118 index += 1 | 118 index += 1 |
119 VerticalPanel.insert(self, _item, index) | 119 VerticalPanel.insert(self, _item, index) |
120 | 120 |