Changes between Version 35 and Version 36 of BluePrintRESTImplementation


Ignore:
Timestamp:
01/17/09 18:46:46 (16 years ago)
Author:
Fran Boon
Comment:

bugfix for s3.deletable/listonly

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintRESTImplementation

    v35 v36  
    7777    """
    7878   
    79     table=db['%s_%s' % (module,resource)]
     79    _table='%s_%s' % (module,resource)
     80    table=db[_table]
    8081    if resource=='setting':
    8182        s3.crud_strings=shn_crud_strings_lookup(resource)
     
    8384        s3.crud_strings=shn_crud_strings_lookup(table)
    8485    try:
    85         s3.deletable=not s3.undeletable['%s' % table]
     86        s3.deletable=not s3.undeletable[_table]
    8687    except:
    8788        s3.deletable=True
    8889    try:
    89         s3.listadd=not s3.listonly['%s' % table]
     90        s3.listadd=not s3.listonly[_table]
    9091    except:
    9192        s3.listadd=True