Projet

Général

Profil

« Précédent | Suivant » 

Révision 1fb323b3

Ajouté par Thomas Noël il y a plus de 9 ans

pfconfigxml: accept #comments in textarea params

Voir les différences:

usr/local/univnautes/sp/sp/pfconfigxml.py
130 130
    else:
131 131
        defaultidps = defaultidps.text or ''
132 132
        defaultidps = defaultidps.decode('base64').decode('iso-8859-1').splitlines()
133
        defaultidps = [ l for l in defaultidps if not re.match('^\s*$', l) ]
133
        defaultidps = [ l for l in defaultidps if not re.match('^\s*(#|$)', l) ]
134 134

  
135 135
    geolocations = sp.find('geolocations')
136 136
    if geolocations is None:
......
138 138
    else:
139 139
        geolocations = geolocations.text or ''
140 140
        geolocations = geolocations.decode('base64').decode('iso-8859-1').splitlines()
141
        geolocations = [ l for l in geolocations if not re.match('^\s*$', l) ]
141
        geolocations = [ l for l in geolocations if not re.match('^\s*(#|$)', l) ]
142 142
    geoinitialbounds = sp.find('geoinitialbounds')
143 143
    if geoinitialbounds is not None:
144 144
        geoinitialbounds = geoinitialbounds.text

Formats disponibles : Unified diff