Exemplo n.º 1
0
 def concept_articles( self, symbol, filter="", sort_by="date", descending=True, page=0, limit=10 ):
   result = {
     "pageTitle": u"Concepto",
     "concept": self.backend.concept( symbol ),
     "wikipedia": helpers.wikipedia_page( symbol ),
     "base_url": "/public/concept_articles?symbol=%s" % symbol
   }
   result.update( 
     helpers.process_pager( self.backend, symbol, filter, sort_by, descending, page, limit )
   )
   return result
Exemplo n.º 2
0
 def concept_overview( self, symbol ):
   return {
     "pageTitle": u"Concepto",
     "concept": self.backend.concept( symbol ),
     "wikipedia": helpers.wikipedia_page( symbol )
   }