Simplify LazrPageTemplateFile

Bug #328197 reported by Leonard Richardson
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Currently in LAZR's resource.py we render LazrPageTemplateFile objects like so:

namespace = self.WADL_TEMPLATE.pt_getContext()
namespace['context'] = self
return self.WADL_TEMPLATE.pt_render(namespace)

It should be possible to simplify this to something like the following one-liner:

return self.WADL_TEMPLATE()

Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
tags: added: api
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.