hi guys:
sorry , I just sent an email by mistake!
the python code is as below:
urls = ('/', 'Index',
'/delete/(\d+)', 'Delete',
'/edit/(\d+)', 'Edit',
'/finish/(\d+)', 'Finish',)
render = web.template.render(settings.TEMPLATE_FOLDER, base='base')
class Index:
def GET(self):
tasks = dao.get_tasks()
return render.index(tasks)
def POST(self):
dao.add_task(web.input().get('content'))
return web.seeother('/')
class Edit:
def GET(self, id):
tasks = dao.get_tasks()
return render.edit(tasks, int(id))
def POST(self, id):
dao.edit_task(id, web.input().get('editname'))
return web.seeother('/')
and the base.html is as below:
$def with (page)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312">
<head>
<title>任务跟踪</title>
<link rel="stylesheet" rev="stylesheet" href="static/css/task.css"
type="text/css" media="all" />
</head>
<div class="content">
<body>
$:page
</body>
</div>
</html>
and there is index.html and edit.html in the templates folder.
the css file is as below:
body{MARGIN: 0px;
PADDING: 0px;
BACKGROUND:#c0c0c0;
FONT-FAMILY: 'Lucida Grande', 'Lucida Sans Unicode', '宋体', '新宋体', arial,
verdana, sans-serif;
}
.content{MARGIN: 15px;
WIDTH: 800px;
MARGIN-RIGHT: auto;
MARGIN-LEFT: auto;
PADDING: 10px;
BACKGROUND:#ffffff;}
the problem is the css works for index.html but when I click to edit, the
css doesn't work at all!
anybody could help me with that?
Thanks in advance!
Cheers!
FZhao
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.