comparison tincan.py @ 6:a3823da7bb45 draft

Minor tweaks.
author David Barts <n5jrn@me.com>
date Mon, 13 May 2019 15:18:02 -0700
parents 31bb8400e6e3
children 57ec65f527e9
comparison
equal deleted inserted replaced
5:31bb8400e6e3 6:a3823da7bb45
377 self._body = self._tclass(source=tfile.body) 377 self._body = self._tclass(source=tfile.body)
378 else: 378 else:
379 self._body = self._tclass(source=self._template.body) 379 self._body = self._tclass(source=self._template.body)
380 self._body.prepare() 380 self._body.prepare()
381 # Register this thing with Bottle 381 # Register this thing with Bottle
382 print("adding route:", self._origin) # debug 382 print("adding route:", self._origin, '('+','.join(methods)+')') # debug
383 self._app.route(self._origin, methods, self) 383 self._app.route(self._origin, methods, self)
384 384
385 def _splitpath(self, unsplit): 385 def _splitpath(self, unsplit):
386 return _normpath(self._subdir, unsplit) 386 return _normpath(self._subdir, unsplit)
387 387