~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 08:57:39 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-20090704085739-8z6an02se7gs32uc
Implement deep view generation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
 
197
197
            # Generate nice URLs for the default route, if it is the last.
198
198
            if viewname != self.default:
199
 
                names += [viewname]
 
199
                # Deep views may have multiple segments in their name.
 
200
                if isinstance(viewname, basestring):
 
201
                    names += [viewname]
 
202
                else:
 
203
                    names += viewname
200
204
 
201
205
        if subpath is not None:
202
206
            if isinstance(subpath, basestring):