diff --git a/etherpad/views.py b/etherpad/views.py index 4e6fdc7e..dcd2ea72 100644 --- a/etherpad/views.py +++ b/etherpad/views.py @@ -90,4 +90,9 @@ def create_session_group(request, group_id): ether_user = str(ether_user.user_ether_id) validUntil = int(time())+28800 result = epclient.createSession(ether_group, ether_user, validUntil) - return result['sessionID'] \ No newline at end of file + return result['sessionID'] + + +def get_pad_id(article_id): + article = EtherArticle.objects.get(article=article_id) + return article.article_ether_id \ No newline at end of file