Example #1
0
 def testKeygroup(self):
     es.keygroupcreate("justice")
     x = es.keygroupgetpointer("justice")
     self.keytest2(x)
     es.keygroupdelete("justice2")
     es.keygroupcreate("justice2")
     x = es.keygroupgetpointer("justice2")
     self.keytest3(x)
     import keyvalues
     y = keyvalues.getKeyGroup("justice2")
     es.keygroupdelete("justice2")
 def testKeygroup(self):
     es.keygroupcreate("justice")
     x = es.keygroupgetpointer("justice")
     self.keytest2(x)
     es.keygroupdelete("justice2")
     es.keygroupcreate("justice2")
     x = es.keygroupgetpointer("justice2")
     self.keytest3(x)
     import keyvalues
     y = keyvalues.getKeyGroup("justice2")
     es.keygroupdelete("justice2")
Example #3
0
def getKeyGroup(name):
    '''
    Returns a KeyValues class for a keygroup created with es.keygroupcreate.
    '''
    x = es.keygroupgetpointer(name)
    if x is not None and x != 0:
        k = KeyValues(existingid=x)
        k._parent_ = 0
        return k
    else:
        return None
def getKeyGroup(name):
    '''
    Returns a KeyValues class for a keygroup created with es.keygroupcreate.
    '''
    x = es.keygroupgetpointer(name)
    if x is not None and x != 0:
        k = KeyValues(existingid=x)
        k._parent_ = 0
        return k
    else:
        return None