source: products/qPloneGoogleMaps/tags/0.1.0/utility.py @ 1591

Last change on this file since 1591 was 1, checked in by myroslav, 15 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 289 bytes
Line 
1
2""" Utility module """
3
4def processDesc(desc):
5    """ Utility function for processing objects descriptions  """
6    import re
7    pattern1 = re.compile(r'[\r\n]', re.M|re.I)
8    pattern2 = re.compile(r'[\"]', re.M|re.I)
9    res = pattern2.sub("'", desc)
10    return pattern1.sub(' ', res)
Note: See TracBrowser for help on using the repository browser.