Show
Ignore:
Timestamp:
04/16/10 02:56:51 (14 years ago)
Author:
jerome
Message:

Backported the improvement of the fix for #52. References #52.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/branches/1.26_fixes/pykota/storage.py

    r3444 r3525  
    594594        """Ensures that the database connection is closed.""" 
    595595        self.close() 
     596 
     597    def hasWildCards(self, pattern) : 
     598        """Returns True if the pattern contains wildcards, else False.""" 
     599        specialchars = "*?[!" # no need to check for ] since [ would be there first 
     600        for specialchar in specialchars : 
     601            if specialchar in pattern : 
     602                return True 
     603        return False 
    596604 
    597605    def getFromCache(self, cachetype, key) :