Ignore:
Timestamp:
Oct 2, 2008, 8:18:40 AM (16 years ago)
Author:
broder
Message:

Update (at least some of) the web code to work with newer a SQLAlchemy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/templates/functions.tmpl

    r864 r1001  
    2121#def cdromList($default="", $onchange=None)
    2222#filter None
    23 $databaseList(sorted($database.CDROM.select(), key=lambda x: x.description),
     23$databaseList(sorted($database.CDROM.query(), key=lambda x: x.description),
    2424              default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description')
    2525#end filter
     
    2828#def autoList($default="", $onchange=None)
    2929#filter None
    30 $databaseList(sorted($database.Autoinstall.select(), key=lambda x: x.description),
     30$databaseList(sorted($database.Autoinstall.query(), key=lambda x: x.description),
    3131              default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description')
    3232#end filter
Note: See TracChangeset for help on using the changeset viewer.