Cosmetics

This commit is contained in:
Bernardo Damele 2010-12-07 17:16:21 +00:00
parent ecd4a5a532
commit 81e7465ed2

View File

@ -12,8 +12,11 @@ from lib.request.connect import Connect as Request
def getPageTemplate(payload, place): def getPageTemplate(payload, place):
retVal = kb.originalPage retVal = kb.originalPage
if payload and place: if payload and place:
if (payload, place) not in kb.pageTemplates: if (payload, place) not in kb.pageTemplates:
kb.pageTemplates[(payload, place)], _ = Request.queryPage(payload, place, content=True) kb.pageTemplates[(payload, place)], _ = Request.queryPage(payload, place, content=True)
retVal = kb.pageTemplates[(payload, place)] retVal = kb.pageTemplates[(payload, place)]
return retVal return retVal