Changes between Initial Version and Version 1 of Ticket #24871, comment 10


Ignore:
Timestamp:
06/08/2015 03:03:06 AM (4 years ago)
Author:
Tomáš Pecina
Comment:

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}}} function with taking whatever the superclass' {{{render}}} returns and replacing the newline after the first ">" with an empty string, like this:
     1The 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:
    22{{{
    33    def render(self, *args, **kwargs):
Back to Top