Some notifiers cleanup

This commit is contained in:
JonnyWong16 2016-05-15 10:15:59 -07:00
parent 06b684c899
commit 325fa19e46
3 changed files with 36 additions and 130 deletions

View file

@ -2629,25 +2629,6 @@ class WebInterface(object):
logger.warn('Unable to retrieve browser notifications.')
return None
@cherrypy.expose
@requireAuth(member_of("admin"))
def twitterStep1(self):
cherrypy.response.headers['Cache-Control'] = "max-age=0,no-cache,no-store"
tweet = notifiers.TwitterNotifier()
return tweet._get_authorization()
@cherrypy.expose
@requireAuth(member_of("admin"))
def twitterStep2(self, key):
cherrypy.response.headers['Cache-Control'] = "max-age=0,no-cache,no-store"
tweet = notifiers.TwitterNotifier()
result = tweet._get_credentials(key)
# logger.info(u"result: " + str(result))
if result:
return "Key verification successful"
else:
return "Unable to verify key"
@cherrypy.expose
@requireAuth(member_of("admin"))
def facebookStep1(self):