Changeset 80fc4e5 in osmose-frontend


Ignore:
Timestamp:
Oct 31, 2012 4:45:10 PM (5 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
e5466bd
Parents:
c537e71
Message:

Support no item selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • map.py

    rc537e71 r80fc4e5  
    2828 
    2929def check_items(items, all_items): 
    30     if not items or items == 'xxxx': 
     30    if items == None or items == 'xxxx': 
    3131        return all_items 
    3232    else: 
     
    172172        sources2 = " OR ".join(source2) 
    173173        where = "(%s)" % sources2 
    174     elif item: 
    175         if item == 'xxxx': 
     174    elif item != None: 
     175        if item == '': 
     176            where = "1=2" 
     177        elif item == 'xxxx': 
    176178            where = "1=1" 
    177179        else: 
Note: See TracChangeset for help on using the changeset viewer.