← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1625566] [NEW] Tutorial: Adding a complex action to a table

 

Public bug reported:

urlpatterns = [,
    url(r'^$',
        views.IndexView.as_view(), name='index'),
    url(r'^(?P<instance_id>[^/]+)/create_snapshot/$',
        views.CreateSnapshotView.as_view(),
        name='create_snapshot'),
]

Still gives an error for me? I removed the comma as such:

urlpatterns = [
    url(r'^$',
        views.IndexView.as_view(), name='index'),
    url(r'^(?P<instance_id>[^/]+)/create_snapshot/$',
        views.CreateSnapshotView.as_view(),
        name='create_snapshot'),
]

And it worked!

PS. This is a double thought it may as well be it's own report because
where I posted the double wasn't precisely solid imo, feel free to
correct me otherwise DS.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1625566

Title:
  Tutorial: Adding a complex action to a table

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  urlpatterns = [,
      url(r'^$',
          views.IndexView.as_view(), name='index'),
      url(r'^(?P<instance_id>[^/]+)/create_snapshot/$',
          views.CreateSnapshotView.as_view(),
          name='create_snapshot'),
  ]

  Still gives an error for me? I removed the comma as such:

  urlpatterns = [
      url(r'^$',
          views.IndexView.as_view(), name='index'),
      url(r'^(?P<instance_id>[^/]+)/create_snapshot/$',
          views.CreateSnapshotView.as_view(),
          name='create_snapshot'),
  ]

  And it worked!

  PS. This is a double thought it may as well be it's own report because
  where I posted the double wasn't precisely solid imo, feel free to
  correct me otherwise DS.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1625566/+subscriptions


Follow ups