Mercurial > hg > purlService
comparison restService/redirector.py @ 12:0287aed01f2b
config and minor bugs
author | dwinter |
---|---|
date | Tue, 06 Nov 2012 08:41:18 +0100 |
parents | fad73212354b |
children | a2bcca6539fd |
comparison
equal
deleted
inserted
replaced
11:fad73212354b | 12:0287aed01f2b |
---|---|
51 if flavour not in self.viewers.keys(): | 51 if flavour not in self.viewers.keys(): |
52 raise web.notfound("no viewer for %s"%flavour) | 52 raise web.notfound("no viewer for %s"%flavour) |
53 | 53 |
54 formats = self.viewers[flavour] | 54 formats = self.viewers[flavour] |
55 | 55 |
56 viewerWithIndexMetaFormatString = formats[0]; | 56 |
57 viewerWithImagePathFormatString = formats[1]; | 57 viewerWithIndexMetaFormatString = formats[0].rstrip().lstrip().replace("\n",'') |
58 viewerWithImagePathFormatString = formats[1].lstrip().lstrip().replace("\n",'') | |
59 | |
58 | 60 |
59 | 61 |
60 # checke ob es einen Image path gibt | 62 # checke ob es einen Image path gibt |
61 path,validity = self.purlHandler.getImagePathValidity(purl) | 63 path,validity = self.purlHandler.getImagePathValidity(purl) |
62 if path is not None and path!="": | 64 if path is not None and path!="": |