code: def view_class2(self, fatherid=''):
          '''
          Publishing from 2ed range category.
          '''
  
          if self.is_admin():
              pass
          else:
              return False
  
          kwd = {'class1str': self.format_class2(fatherid),
                 'parentid': '0',
                 'parentlist': MCategory.get_parent_list()}
  
          if fatherid.endswith('00'):
              self.render('misc/publish/publish2.html',
                          userinfo=self.userinfo,
                          kwd=kwd)
          else:
              catinfo = MCategory.get_by_uid(fatherid)
              self.redirect('/{1}/_cat_add/{0}'.format(fatherid, router_post[catinfo.kind])f view_class2(self, fatherid=''):
          '''
          Publishing from 2ed range category.
          '''
  
          if self.is_admin():
              pass
          else:
              return False
  
          kwd = {'class1str': self.format_class2(fatherid),
                 'parentid': '0',
                 'parentlist': MCategory.get_parent_list()}
  
          if fatherid.endswith('00'):
              self.render('misc/publish/publish2.html',
                          userinfo=self.userinfo,
                          kwd=kwd)
          else:
              catinfo = MCategory.get_by_uid(fatherid)
              self.redirect('/{1}/_cat_add/{0}'.format(fatherid, router_post[catinfo.kind]))
docs: Publishing from 2ed range category.