Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Remove duplicate/unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulif committed Mar 17, 2010
1 parent c91d0fa commit b4dec05
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/grokui/admin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,7 @@ class Add(grok.View):
"""
grok.require('grok.ManageApplications')

def update(self, inspectapp=None, application=None):
if inspectapp is not None:
self.redirect(
"%s/%s/index" % (
self.url("docgrok"), application.replace('.', '/')))
return

def render(self, application, name, inspectapp=None):
if name is None or name == "":
self.redirect(self.url(self.context, 'applications'))
return
def render(self, application, name):
if name is None or name == "":
self.redirect(self.url(self.context, 'applications'))
return
Expand Down Expand Up @@ -186,3 +176,6 @@ def update(self, cancel=None, items=None, new_names=None):
self.flash('Renamed `%s` to `%s`.' % (oldname, newname))
self.redirect(self.url(self.context, 'applications'))
return

class MyApp(grok.Application, grok.Container):
pass

0 comments on commit b4dec05

Please sign in to comment.