Changeset 572:51800c42bcda in documentViewer


Ignore:
Timestamp:
Oct 15, 2012, 11:03:37 AM (12 years ago)
Author:
casties
Branch:
default
Message:

deal with empty repositoryType

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r570 r572  
    5656    def getRepositoryType(self):
    5757        """returns the repository type, e.g. 'production'"""
    58         return self.repositoryType
     58        return getattr(self, 'repositoryType', None)
    5959
    6060    def getTextDownloadUrl(self, type='xml', docinfo=None):
  • MpiwgXmlTextServer.py

    r570 r572  
    5656    def getRepositoryType(self):
    5757        """returns the repository type, e.g. 'production'"""
    58         return self.repositoryType
     58        return getattr(self, 'repositoryType', None)
    5959
    6060    def getTextDownloadUrl(self, type='xml', docinfo=None):
Note: See TracChangeset for help on using the changeset viewer.