[doc] Short down the `blog running in less ten nimutes` section to remove duplicated content.
# custom application viewsfrommx.DateTimeimportDateTimefromcubicweb.web.viewsimportbaseviewsfromcubicweb.web.views.boxesimportBoxTemplatefromcubicweb.web.views.calendarimportMONTHNAMESfromcubicweb.web.htmlwidgetsimportBoxLink,BoxWidget_=unicodeclassBlogEntryPrimaryView(baseviews.PrimaryView):accepts=('BlogEntry',)defcell_call(self,row,col):entity=self.entity(row,col)self.w(u'<h1>%s</h1>'%entity.dc_title())entity.view('metadata',w=self.w)self.w(entity.printable_value('text'))classBlogArchiveBox(BoxTemplate):"""side box usually displaying some related entities in a primary view"""id='blog_archives_box'title=_('blog archives')defcall(self,**kwargs):"""display a list of entities by calling their <item_vid> view """_=self.req._rset=self.req.execute('Any CD ORDERBY CD DESC WHERE B is Blog, B creation_date CD')blogmonths=[]for(blogdate,)inrset:year,month=blogdate.year,blogdate.monthif(year,month)notinblogmonths:blogmonths.append((year,month))box=BoxWidget(_('Blog archives'),id=self.id)foryear,monthinblogmonths:firstday=DateTime(year,month,1)lastday=DateTime(year,month,firstday.days_in_month)rql=('Any B WHERE B is BlogEntry, B creation_date >= "%s", B creation_date <= "%s"'%(firstday.strftime('%Y-%m-%d'),lastday.strftime('%Y-%m-%d')))url=self.build_url(rql=rql)label=u'%s%s'%(_(MONTHNAMES[month-1]),year)box.append(BoxLink(url,label))box.render(self.w)