Changeset 3524 for pykota/trunk/pykota/storage.py
- Timestamp:
- 04/16/10 02:11:18 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r3489 r3524 542 542 def __init__(self, pykotatool) : 543 543 """Opens the storage connection.""" 544 self.closed = 1544 self.closed = True 545 545 self.tool = pykotatool 546 546 self.usecache = pykotatool.config.getCaching() … … 571 571 """Logs a database query, where all queries are already UTF-8 encoded.""" 572 572 self.tool.logdebug(qmsg.decode("UTF-8", "replace")) 573 574 def hasWildCards(self, pattern) : 575 """Returns True if the pattern contains wildcards, else False.""" 576 specialchars = "*?[!" # no need to check for ] since [ would be there first 577 for specialchar in specialchars : 578 if specialchar in pattern : 579 return True 580 return False 573 581 574 582 def getFromCache(self, cachetype, key) :