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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-07-04 05:14:00 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090704051400-fdgehanenjw26uxr
Collapse route existence check.

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
 
238
238
            routenames = self.fmap[type(obj)]
239
239
 
240
 
            routebits = routenames.get(todo[0])
241
 
 
242
 
            if routebits is not None:
243
 
                route, argc = routebits
 
240
            if todo[0] in routenames:
 
241
                route, argc = routenames[todo[0]]
244
242
                # The first path segment is the route identifier, so we skip
245
243
                # it when identifying arguments.
246
244
                argoffset = 1