comparison piecrust/rendering.py @ 430:21e26ed867b6

internal: Create full route metadata in one place. Instead of combining things at different moments to make up route metadata, build it once and for all up-front and use that.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 27 Jun 2015 08:27:35 -0700
parents 3b658190c02b
children 32c7c2d219d2
comparison
equal deleted inserted replaced
429:ca5a3c970263 430:21e26ed867b6
32 self.page = page 32 self.page = page
33 self.route = route 33 self.route = route
34 self.route_metadata = route_metadata 34 self.route_metadata = route_metadata
35 35
36 def getUri(self, sub_num=1): 36 def getUri(self, sub_num=1):
37 return self.route.getUri(self.route_metadata, provider=self.page, 37 return self.route.getUri(self.route_metadata, sub_num=sub_num)
38 sub_num=sub_num)
39 38
40 def __getattr__(self, name): 39 def __getattr__(self, name):
41 return getattr(self.page, name) 40 return getattr(self.page, name)
42 41
43 42