1
0
mirror of https://github.com/golang/go synced 2024-11-25 02:57:57 -07:00

misc/dashboard: remove remnants of package dashboard

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5847070
This commit is contained in:
Andrew Gerrand 2012-03-20 13:35:31 +11:00
parent 7905faaee2
commit c58163c572
2 changed files with 1 additions and 6 deletions

View File

@ -6,6 +6,7 @@
</head> </head>
<body> <body>
<ul class="menu"><li><a href="http://golang.org/">golang.org</a></li></ul>
<h1>Go Projects</h1> <h1>Go Projects</h1>
<p> <p>

View File

@ -22,7 +22,6 @@ class Project(db.Model):
name = db.StringProperty(indexed=True) name = db.StringProperty(indexed=True)
descr = db.StringProperty() descr = db.StringProperty()
web_url = db.StringProperty() web_url = db.StringProperty()
package = db.ReferenceProperty(Package)
category = db.StringProperty(indexed=True) category = db.StringProperty(indexed=True)
tags = db.ListProperty(str) tags = db.ListProperty(str)
approved = db.BooleanProperty(indexed=True) approved = db.BooleanProperty(indexed=True)
@ -117,11 +116,6 @@ class ProjectPage(webapp.RequestHandler):
if self.request.get("do") == "Delete": if self.request.get("do") == "Delete":
p.delete() p.delete()
else: else:
pkg_name = self.request.get("package", None)
if pkg_name:
pkg = Package.get_by_key_name("pkg-"+pkg_name)
if pkg:
p.package = pkg.key()
for f in ['name', 'descr', 'web_url', 'category']: for f in ['name', 'descr', 'web_url', 'category']:
setattr(p, f, self.request.get(f, None)) setattr(p, f, self.request.get(f, None))
p.approved = self.request.get("approved") == "1" p.approved = self.request.get("approved") == "1"