code: def view_class1(self, kind_sig):
          '''
          Publishing from 1st range category.
          '''
          dbdata = MCategory.get_parent_list(kind=kind_sig)
          class1str = ''
          for rec in dbdata:
              class1str += '''
               <a onclick="select_sub_tag('/publish/2{0}');" class="btn btn-primary"
               style="display: inline-block;margin:3px;" >
               {1}</a>'''.format(rec.uid, rec.name)
  
          kwd = {'class1str': class1str,
                 'parentid': '0',
                 'parentlist': MCategory.get_parent_list()}
          self.render('misc/publish/publish.html',
                      userinfo=self.userinfo,
                      kwd=kwdf view_class1(self, kind_sig):
          '''
          Publishing from 1st range category.
          '''
          dbdata = MCategory.get_parent_list(kind=kind_sig)
          class1str = ''
          for rec in dbdata:
              class1str += '''
               <a onclick="select_sub_tag('/publish/2{0}');" class="btn btn-primary"
               style="display: inline-block;margin:3px;" >
               {1}</a>'''.format(rec.uid, rec.name)
  
          kwd = {'class1str': class1str,
                 'parentid': '0',
                 'parentlist': MCategory.get_parent_list()}
          self.render('misc/publish/publish.html',
                      userinfo=self.userinfo,
                      kwd=kwd)
docs: Publishing from 1st range category.