
-----------------------------------
murrdawg
Sun Apr 05, 2009 3:41 pm

not having links to work properly
-----------------------------------
This is my dilemma, and yes, I did post it in another forum too cause I'm not sure where it belongs... But basically, I have a database that I want to be able to access the account information...



#!/usr/bin/env python
# -*- coding: utf-8 -*-
import cherrypy
import sqlite3

class Root(object):
	def index(self, lang='fr', *args):
		return """
			   
			   
			   Bank DB
			   
			   Bank DB
			   What do you want to do?
			   Branches
                           Clients
			   
			   """
	index.exposed = True

	def branch(self, branchno=None, accountno=None):
		query = "SELECT * FROM branch"
		if branchno:
			query = "SELECT * FROM account"
			query += " WHERE branchno=\"" + branchno+"\""
		cherrypy.response.headers

The attached link is the code I have for this program... basically the user will see the list of branches, then click on a branch to see accounts in the branch... but when i click on an account, it doesn't show up the account information and I have no idea why. So how would I modify it so that clicking on the accountno will show the account information?
