Changeset 617 in tmcsimulator for branches/LCSv1/controllers/default.py.bak


Ignore:
Timestamp:
07/10/2020 02:16:04 PM (6 years ago)
Author:
jdalbey
Message:

Make branch for LCSv2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LCSv1/controllers/default.py.bak

    r612 r617  
    5656def special_validation(form): 
    5757    # Error if a lognum was given and no closure id 
    58     if (len(form.vars.lognum) > 0 and len(form.vars.closureid = 0)): 
     58    if (len(form.vars.lognum) > 0 and len(form.vars.closureid) == 0): 
    5959       form.errors.lognum = 'Must provide a closureID when specifying a log number' 
    6060# Show the item that was found in the search 
     
    7979        msg += "Start date = " + session.startdate 
    8080    if (len(session.enddate) != 0): 
    81         query = query & (db.closures.startdate <= session.enddate) 
     81        query = query & (db.closures.enddate <= session.enddate) 
    8282        msg += "End date = " + session.enddate 
    8383     
     
    9999        # Each row contains a form with two buttons and columns with fields from database 
    100100        multiform.append(TR(TD( 
    101                     XML("<button class='submit-button' onclick=showPopup(\'"),statusfields,XML("\')>View History</button>"),BR(), 
     101                    XML("<button class='submit-button' onclick=showPopup(\""),statusfields,XML("\")>View History</button>"),BR(), 
    102102                    FORM( 
    103103                          INPUT(_type='submit',_name='btn2',_value='Show Status Form',_class="submit-button" ), 
Note: See TracChangeset for help on using the changeset viewer.