예제 #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)
예제 #2
0
파일: biblio.py 프로젝트: 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)