Changes between Initial Version and Version 1 of Ticket #24871, comment 10
- Timestamp:
- Jun 8, 2015, 3:03:06 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24871, comment 10
initial v1 1 The problem is not with having to subclass the widget (I never use non-custom widgets in my projects anyway) but that there is currently no elegant way of doing it; as a tentative and provisional fix, I'm overriding the {{{render}}} functionwith taking whatever the superclass' {{{render}}} returns and replacing the newline after the first ">" with an empty string, like this:1 The problem is not with having to subclass the widget (I never use non-custom widgets in my projects anyway) but that there is currently no elegant way of doing it; as a tentative and provisional fix, I'm overriding the {{{render}}} method with taking whatever the superclass' {{{render}}} returns and replacing the newline after the first ">" with an empty string, like this: 2 2 {{{ 3 3 def render(self, *args, **kwargs):