Permalink
Browse files

fir for author creation

  • Loading branch information...
1 parent d90581c commit b4fa4df2faaf46a948b449e0a375bede9eca15b9 @emirotin emirotin committed Nov 2, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/py_etherpad.py
View
@@ -31,7 +31,6 @@ def call(self, function, arguments=None):
params.update({'apikey': self.apiKey})
query = urllib.urlencode(params, True)
url = '%s/%d/%s?%s' % (self.baseUrl, self.API_VERSION, function, query)
- result = None
try:
opener = urllib2.build_opener()
@@ -117,7 +116,9 @@ def createAuthor(self, name=''):
def createAuthorIfNotExistsFor(self, authorMapper, name=''):
"""this functions helps you to map your application author ids to etherpad lite author ids"""
- params = {}
+ params = {
+ 'authorMapper': authorMapper
+ }
if name:
params['name'] = name
return self.call("createAuthorIfNotExistsFor", params)

0 comments on commit b4fa4df

Please sign in to comment.