# HG changeset patch # User casties # Date 1350299017 -7200 # Node ID 51800c42bcda62bb26e497c0c895dbc7b83e92d0 # Parent f1906951be2af01cbe1b30d96456ef87ac706c2a deal with empty repositoryType diff -r f1906951be2a -r 51800c42bcda MpdlXmlTextServer.py --- a/MpdlXmlTextServer.py Fri Oct 12 17:02:40 2012 +0200 +++ b/MpdlXmlTextServer.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""" diff -r f1906951be2a -r 51800c42bcda MpiwgXmlTextServer.py --- 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"""