Commit c58163c5 authored by Andrew Gerrand's avatar Andrew Gerrand

misc/dashboard: remove remnants of package dashboard

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5847070
parent 7905faae
...@@ -6,6 +6,7 @@ ...@@ -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>
......
...@@ -22,7 +22,6 @@ class Project(db.Model): ...@@ -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): ...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment