code: def get_rendered_fields(self, ctx=None):
          '''
          :param ctx: rendering context in which the method was called
          :return: ordered list of the fields that will be rendered
          '''
          if ctx is None:
              ctx = RenderContext()
          ctx.push(self)
          result = []
          for f in self._fields:
              if len(f.render(ctx)):
                  result.append(f)
          ctx.pop()
          return resulf get_rendered_fields(self, ctx=None):
          '''
          :param ctx: rendering context in which the method was called
          :return: ordered list of the fields that will be rendered
          '''
          if ctx is None:
              ctx = RenderContext()
          ctx.push(self)
          result = []
          for f in self._fields:
              if len(f.render(ctx)):
                  result.append(f)
          ctx.pop()
          return result
docs: :param ctx: rendering context in which the method was called
          :return: ordered list of the fields that will be rendered