~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/submit/__init__.py

  • Committer: Matt Giuca
  • Date: 2009-04-07 10:12:53 UTC
  • Revision ID: matt.giuca@gmail.com-20090407101253-0z2sup35f9qam7st
submit: Fixed URL matching (now allows a path without a trailing '/').

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    tab = 'files'
40
40
    permission = 'submit_project'
41
41
 
42
 
    def __init__(self, req, name, path):
 
42
    def __init__(self, req, name, path=""):
43
43
        # We need to work out which entity owns the repository, so we look
44
44
        # at the first two path segments. The first tells us the type.
45
45
        self.context = self.get_repository_owner(req.store, name)
142
142
 
143
143
class Plugin(ViewPlugin):
144
144
    urls = [
 
145
        ('+submit/users/:name', UserSubmitView),
 
146
        ('+submit/groups/:name', GroupSubmitView),
145
147
        ('+submit/users/:name/*path', UserSubmitView),
146
148
        ('+submit/groups/:name/*path', GroupSubmitView),
147
149
    ]