Esempio n. 1
0
 def render(self, ctx, req):
     if ISource.providedBy(ctx):
         ctx = ctx.bibtex()
     elif IDataTable.providedBy(ctx):
         ctx = Database([s.bibtex() for s in ctx.get_query()])
     return ctx.format(self.extension)
Esempio n. 2
0
File: biblio.py Progetto: clld/clld
 def render(self, ctx, req):
     if ISource.providedBy(ctx):
         ctx = ctx.bibtex()
     elif IDataTable.providedBy(ctx):
         ctx = Database([s.bibtex() for s in ctx.get_query()])
     return ctx.format(self.extension)