code: def view_or_add(self, slug):
          '''
          When access with the slug, It will add the page if there is no record in database.
          '''
          rec_page = MWiki.get_by_uid(slug)
  
          if rec_page:
              if rec_page.kind == self.kind:
                  self.view(rec_page)
              else:
                  return False
          else:
              self.to_add(slugf view_or_add(self, slug):
          '''
          When access with the slug, It will add the page if there is no record in database.
          '''
          rec_page = MWiki.get_by_uid(slug)
  
          if rec_page:
              if rec_page.kind == self.kind:
                  self.view(rec_page)
              else:
                  return False
          else:
              self.to_add(slug)
docs: When access with the slug, It will add the page if there is no record in database.