示例#1
0
 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("")
示例#2
0
 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("")
示例#3
0
    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")
示例#4
0
    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("")
示例#5
0
    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("")
示例#6
0
文件: setup.py 项目: rom1Bv/istsos2
 def __init__(self, wnsEnviron):
     wnsOperation.__init__(self, wnsEnviron)
示例#7
0
 def __init__(self, wnsEnviron):
     wnsOperation.__init__(self, wnsEnviron)
     self.userid = None
     if len(wnsEnviron['pathinfo']) > 2:
         self.userid = wnsEnviron['pathinfo'][2]
     self.setData("")
示例#8
0
 def __init__(self, wnsEnviron):
     wnsOperation.__init__(self, wnsEnviron)
示例#9
0
 def __init__(self, wnsEnviron):
     wnsOperation.__init__(self, wnsEnviron)
     self.userid = None
     if len(wnsEnviron['pathinfo']) > 2:
         self.userid = wnsEnviron['pathinfo'][2]
     self.setData("")