code: def _view_or_add(self, uid):
          '''
          Try to get the post. If not, to add the wiki.
          '''
          postinfo = MPost.get_by_uid(uid)
          if postinfo:
              self.viewinfo(postinfo)
          elif self.userinfo:
              self._to_add(uid=uid)
          else:
              self.show404(f _view_or_add(self, uid):
          '''
          Try to get the post. If not, to add the wiki.
          '''
          postinfo = MPost.get_by_uid(uid)
          if postinfo:
              self.viewinfo(postinfo)
          elif self.userinfo:
              self._to_add(uid=uid)
          else:
              self.show404()
docs: Try to get the post. If not, to add the wiki.