[技巧]TurboGears + xul

18 views
Skip to first unread message

KingHero Wu

unread,
Apr 26, 2008, 2:36:12 AM4/26/08
to Hong Kong Python User Group
要在firefox 直接顯示xul, 而不是download個page, 只要在 controllers.py 里的url 對應
function 前面加上

@expose(template="TestTemplates.xul", content_type="application/
vnd.mozilla.xul+xml", format="xml")
Reply all
Reply to author
Forward
0 new messages