Mercurial > hg > documentViewer
diff MpiwgXmlTextServer.py @ 572:51800c42bcda
deal with empty repositoryType
author | casties |
---|---|
date | Mon, 15 Oct 2012 13:03:37 +0200 |
parents | 61d53ccbdd70 |
children | 4778900ae3e2 |
line wrap: on
line diff
--- a/MpiwgXmlTextServer.py Fri Oct 12 17:02:40 2012 +0200 +++ b/MpiwgXmlTextServer.py Mon Oct 15 13:03:37 2012 +0200 @@ -55,7 +55,7 @@ def getRepositoryType(self): """returns the repository type, e.g. 'production'""" - return self.repositoryType + return getattr(self, 'repositoryType', None) def getTextDownloadUrl(self, type='xml', docinfo=None): """returns a URL to download the current text"""