Changeset 14171 in genesis for tools


Ignore:
Timestamp:
May 22, 2018, 7:53:23 PM (7 years ago)
Author:
www
Message:

Fix regression r14170 /config/ not parsed anymore

Leading slash was stripped causing split to fail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r14170 r14171  
    15181518    # URL must be of format <prefix>/config/<path>
    15191519    base_uri = environ['REQUEST_URI']
    1520     uri = filter(None, base_uri.strip('/').split('/config')[1].strip('/').split('/'))
     1520    uri = filter(None, base_uri.split('/config/')[1].strip('/').split('/'))
    15211521
    15221522    output = "Template Holder"
Note: See TracChangeset for help on using the changeset viewer.