Mercurial > libervia-backend
comparison src/tmp/wokkel/rsm.py @ 1781:0158ab00afea
tmp (wokkel.rsm): fixed incorrect behaviour which was adding max_items attribute
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 07 Jan 2016 23:03:15 +0100 |
parents | 4beb613d277c |
children | 514ade866261 |
comparison
equal
deleted
inserted
replaced
1780:4beb613d277c | 1781:0158ab00afea |
---|---|
169 @type element: L{domish.Element} | 169 @type element: L{domish.Element} |
170 | 170 |
171 @return: RSM request element. | 171 @return: RSM request element. |
172 @rtype: L{domish.Element} | 172 @rtype: L{domish.Element} |
173 """ | 173 """ |
174 if element.name == 'pubsub' and hasattr(element, 'items'): | |
175 element.items.attributes['max_items'] = unicode(self.max) | |
176 | |
177 set_elt = self.toElement() | 174 set_elt = self.toElement() |
178 element.addChild(set_elt) | 175 element.addChild(set_elt) |
179 | 176 |
180 return set_elt | 177 return set_elt |
181 | 178 |