Changeset 831

Show
Ignore:
Timestamp:
03/23/07 08:38:54
Author:
crchemist
Message:

Remove bug 'URL processing Regular Expressions'

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneGoogleSitemaps/trunk/utils.py

    r830 r831  
    2222def applyOperations(objects, operations): 
    2323    """Parse Operations """ 
    24     parse = re.compile(r'([a-zA-Z])/(.*?[^\\])/(.*?[^\\]?)/'
     24    parse = re.compile(r"(.?[^\\])/(.*[^\\]|)/(.*[^\\]|)/"
    2525    operations=[parse.match(op).groups() for op in operations] 
    2626    result={} 
     
    2828        url = ob.getURL() 
    2929        for operator, what, with in operations: 
    30             url = OPERATORS[operator](url, what, with
     30            url = OPERATORS[operator](url, what, with.replace("\\", "")
    3131        #TODO: Remove or replace following condition 
    3232        #it is senseless in the case we need intelligent