mirror of
https://github.com/golang/go
synced 2024-11-25 01:57:56 -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:
parent
7905faaee2
commit
c58163c572
@ -6,6 +6,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<ul class="menu"><li><a href="http://golang.org/">golang.org</a></li></ul>
|
||||
<h1>Go Projects</h1>
|
||||
|
||||
<p>
|
||||
|
@ -22,7 +22,6 @@ class Project(db.Model):
|
||||
name = db.StringProperty(indexed=True)
|
||||
descr = db.StringProperty()
|
||||
web_url = db.StringProperty()
|
||||
package = db.ReferenceProperty(Package)
|
||||
category = db.StringProperty(indexed=True)
|
||||
tags = db.ListProperty(str)
|
||||
approved = db.BooleanProperty(indexed=True)
|
||||
@ -117,11 +116,6 @@ class ProjectPage(webapp.RequestHandler):
|
||||
if self.request.get("do") == "Delete":
|
||||
p.delete()
|
||||
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']:
|
||||
setattr(p, f, self.request.get(f, None))
|
||||
p.approved = self.request.get("approved") == "1"
|
||||
|
Loading…
Reference in New Issue
Block a user