def random_page(self, title=None, content=None, 
                    creation_date=None, tags=None):
        '''Generate random page, write it and return the corresponding \
object.'''
        if title == None:
            title = util.random_title()
        if content == None:
            content = util.random_md_page()
        if creation_date == None:
            creation_date = util.random_date()
        if tags == None:
            tags = []
        # yes, we pass self as a param. It's a ref to this site, that
        # is needed by the page
        p = s2page.Page(self, title)
        #here, set date and tags??
        # date = util.random_date()
        p.content = content
        p.creation_date = creation_date
        p.tags = tags
        p.write()
        return p
def random_page ( self , title = None , content = None , creation_date = None , tags = None ) : if title == None : title = util . random_title ( ) if content == None : content = util . random_md_page ( ) if creation_date == None : creation_date = util . random_date ( ) if tags == None : tags = [ ] p = s2page . Page ( self , title ) p . content = content p . creation_date = creation_date p . tags = tags p . write ( ) return p
Generate random page, write it and return the corresponding \
object.