示例#1
0
文件: html.py 项目: mfkaptan/spynepi
 def index(ctx):
     return [
         Index(
             Updated=package.package_cdate,
             Package=AnyUri.Value(text=package.package_name,
                                  href=package.latest_release.rdf_about),
             Description=html.fromstring(package.package_description),
         ) for package in ctx.udc.session.query(Package)
     ]
示例#2
0
 def some_call():
     return C(c=AnyUri.Value(_link, text=_text))