web/ldt/ldt_utils/utils.py
changeset 41 a5719dcb742a
parent 40 509e30b9f5c9
child 62 39b2dab4f939
equal deleted inserted replaced
40:509e30b9f5c9 41:a5719dcb742a
    28         return False
    28         return False
    29     if bool is True or bool is False:
    29     if bool is True or bool is False:
    30         return bool
    30         return bool
    31     key = str(bool).lower()
    31     key = str(bool).lower()
    32     return __BOOLEAN_DICT.get(key, False)
    32     return __BOOLEAN_DICT.get(key, False)
       
    33 
       
    34 def generate_uuid():
       
    35     return unicode(uuid.uuid1())
    33 
    36 
    34 class LdtSearch(object):
    37 class LdtSearch(object):
    35 
    38 
    36     def query(self, field, query):
    39     def query(self, field, query):
    37         indexSearcher = lucene.IndexSearcher(STORE)
    40         indexSearcher = lucene.IndexSearcher(STORE)