Changeset 864 for trunk/packages/sipb-xen-www
- Timestamp:
- Aug 4, 2008, 10:28:18 PM (16 years ago)
- Location:
- trunk/packages/sipb-xen-www/code
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r863 r864 40 40 import controls 41 41 from getafsgroups import getAfsGroupMembers 42 import sipb_xen_database 43 from invirt import database 42 import sipb_xen_database as database 44 43 from sipb_xen_database import Machine, CDROM, ctx, connect, MachineAccess, Type, Autoinstall 45 44 from invirt.config import structs as config … … 86 85 return '<p>STDERR:</p><pre>' + str(addition) + '</pre>' 87 86 88 Template. sipb_xen_database = sipb_xen_database87 Template.database = database 89 88 Template.helppopup = staticmethod(helppopup) 90 89 Template.err = None … … 679 678 def __iter__(self): 680 679 start_time = time.time() 681 sipb_xen_database.clear_cache()680 database.clear_cache() 682 681 sys.stderr = StringIO() 683 682 fields = cgi.FieldStorage(fp=self.environ['wsgi.input'], environ=self.environ) -
trunk/packages/sipb-xen-www/code/templates/functions.tmpl
r515 r864 21 21 #def cdromList($default="", $onchange=None) 22 22 #filter None 23 $databaseList(sorted($ sipb_xen_database.CDROM.select(), key=lambda x: x.description),23 $databaseList(sorted($database.CDROM.select(), key=lambda x: x.description), 24 24 default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description') 25 25 #end filter … … 28 28 #def autoList($default="", $onchange=None) 29 29 #filter None 30 $databaseList(sorted($ sipb_xen_database.Autoinstall.select(), key=lambda x: x.description),30 $databaseList(sorted($database.Autoinstall.select(), key=lambda x: x.description), 31 31 default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description') 32 32 #end filter -
trunk/packages/sipb-xen-www/code/webcommon.py
r632 r864 2 2 3 3 import time 4 from sipb_xen_database import Machine, MachineAccess4 from invirt.database import Machine, MachineAccess 5 5 6 6 class MyException(Exception):
Note: See TracChangeset
for help on using the changeset viewer.