def __init__(self, wnsEnviron): wnsOperation.__init__(self, wnsEnviron) self.not_id = None if len(wnsEnviron['pathinfo']) > 2: self.not_id = wnsEnviron['pathinfo'][2] print(self.not_id) self.setData("")
def __init__(self, wnsEnviron): wnsOperation.__init__(self, wnsEnviron) self.not_id = None if len(wnsEnviron['pathinfo']) > 2: self.not_id = wnsEnviron['pathinfo'][2] print self.not_id self.setData("")
def __init__(self, wnsEnviron): """ """ wnsOperation.__init__(self, wnsEnviron) pathinfo = wnsEnviron['pathinfo'] self.not_id = None if pathinfo[1] == 'response': try: self.not_id = pathinfo[2] except Exception: raise Exception("Please define a notification id") else: raise Exception("Resource is not identified, check the URL")
def __init__(self, wnsEnviron): wnsOperation.__init__(self, wnsEnviron) pathinfo = wnsEnviron['pathinfo'] print pathinfo self.user_id = None self.notification = None if pathinfo[1] == 'user': self.user_id = pathinfo[2] else: raise Exception("Resource is not identified, check the URL") if len(pathinfo) > 4: if pathinfo[3] == 'notification': self.notification = pathinfo[4] else: raise Exception("Resource is not identified, check the URL") self.setData("")
def __init__(self, wnsEnviron): wnsOperation.__init__(self, wnsEnviron) pathinfo = wnsEnviron['pathinfo'] print(pathinfo) self.user_id = None self.notification = None if pathinfo[1] == 'user': self.user_id = pathinfo[2] else: raise Exception("Resource is not identified, check the URL") if len(pathinfo) > 4: if pathinfo[3] == 'notification': self.notification = pathinfo[4] else: raise Exception("Resource is not identified, check the URL") self.setData("")
def __init__(self, wnsEnviron): wnsOperation.__init__(self, wnsEnviron)
def __init__(self, wnsEnviron): wnsOperation.__init__(self, wnsEnviron) self.userid = None if len(wnsEnviron['pathinfo']) > 2: self.userid = wnsEnviron['pathinfo'][2] self.setData("")