Looks like the old code missed a 'self.'.
Simplified a bit.
This commit is contained in:
parent
c0d3b06ea3
commit
b0f4accdce
@ -297,10 +297,8 @@ class SyncApp(object):
|
|||||||
self.collection_manager = getCollectionManager()
|
self.collection_manager = getCollectionManager()
|
||||||
|
|
||||||
# make sure the base_url has a trailing slash
|
# make sure the base_url has a trailing slash
|
||||||
if len(self.base_url) == 0:
|
if not self.base_url.endswith('/'):
|
||||||
self.base_url = '/'
|
self.base_url += '/'
|
||||||
elif self.base_url[-1] != '/':
|
|
||||||
self.base_url = base_url + '/'
|
|
||||||
|
|
||||||
def generateHostKey(self, username):
|
def generateHostKey(self, username):
|
||||||
"""Generates a new host key to be used by the given username to identify their session.
|
"""Generates a new host key to be used by the given username to identify their session.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user