def as_text(self):
        '''Fetch and render all regions

        For search and test purposes

        just a prototype
        '''
        from leonardo.templatetags.leonardo_tags import _render_content

        request = get_anonymous_request(self)

        content = ''

        try:

            for region in [region.key
                           for region in self._feincms_all_regions]:
                content += ''.join(
                    _render_content(content, request=request, context={})
                    for content in getattr(self.content, region))
        except PermissionDenied:
            pass
        except Exception as e:
            LOG.exception(e)

        return content
def as_text ( self ) : from leonardo . templatetags . leonardo_tags import _render_content request = get_anonymous_request ( self ) content = '' try : for region in [ region . key for region in self . _feincms_all_regions ] : content += '' . join ( _render_content ( content , request = request , context = { } ) for content in getattr ( self . content , region ) ) except PermissionDenied : pass except Exception as e : LOG . exception ( e ) return content
Fetch and render all regions

        For search and test purposes

        just a prototype