Looks like the old code missed a 'self.'.

Simplified a bit.
This commit is contained in:
ospalh 2013-12-16 11:06:05 +01:00 committed by jdoe0
parent c0d3b06ea3
commit b0f4accdce

View File

@ -297,10 +297,8 @@ class SyncApp(object):
self.collection_manager = getCollectionManager()
# make sure the base_url has a trailing slash
if len(self.base_url) == 0:
self.base_url = '/'
elif self.base_url[-1] != '/':
self.base_url = base_url + '/'
if not self.base_url.endswith('/'):
self.base_url += '/'
def generateHostKey(self, username):
"""Generates a new host key to be used by the given username to identify their session.