equal
deleted
inserted
replaced
150 if not date : |
150 if not date : |
151 date = self.now() |
151 date = self.now() |
152 |
152 |
153 return date.strftime(self.ctx['prefs'][preferences.date_format]) |
153 return date.strftime(self.ctx['prefs'][preferences.date_format]) |
154 |
154 |
155 def build_url (self, url, **params) : |
155 def url (self, url, **params) : |
156 """ |
156 """ |
157 Build URL with our request object |
157 Build URL with our request object |
158 """ |
158 """ |
159 |
159 |
160 return url.build(self.ctx['req'], **params) |
160 return url.build(self.ctx['req'], **params) |
161 |
161 |
|
162 # old name |
|
163 build_url = url |
|
164 |
162 def utc_timestamp (self, dtz) : |
165 def utc_timestamp (self, dtz) : |
163 """ |
166 """ |
164 Build an UTC timestamp from the given datetime |
167 Build an UTC timestamp from the given datetime |
165 """ |
168 """ |
166 |
169 |