Permalink
Browse files

Fixed deprecated import paths to the taskqueue

  • Loading branch information...
1 parent a1c1d6e commit 8aa8fd063fb70361ca518452765a9f255554d081 @kumar303 kumar303 committed Jan 6, 2011
Showing with 4 additions and 4 deletions.
  1. +3 −3 errors/middleware.py
  2. +1 −1 playlists/tasks.py
View
@@ -28,20 +28,20 @@
from google.appengine.api.datastore_errors import Timeout
from google.appengine.api.datastore_errors import TransactionFailedError
from google.appengine.runtime.apiproxy_errors import CapabilityDisabledError
-import google.appengine.api.labs.taskqueue
+import google.appengine.api.taskqueue
import google.appengine.runtime
# each tuple item contains:
# (exception type, readable exception name, status code for response)
CATCHABLE = (
(Timeout, 'datastore_errors.Timeout', 503),
(InternalError, 'datastore_errors.InternalError', 500),
- (google.appengine.api.labs.taskqueue.TransientError,
+ (google.appengine.api.taskqueue.TransientError,
'taskqueue.TransientError', 503),
(CapabilityDisabledError, 'CapabilityDisabledError', 503),
(google.appengine.runtime.DeadlineExceededError,
'runtime.DeadlineExceededError', 503),
- (google.appengine.api.labs.taskqueue.InternalError,
+ (google.appengine.api.taskqueue.InternalError,
'taskqueue.InternalError', 500),
(TransactionFailedError, 'TransactionFailedError', 503),
)
View
@@ -22,7 +22,7 @@
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from google.appengine.ext import webapp
-from google.appengine.api.labs import taskqueue
+from google.appengine.api import taskqueue
from common import dbconfig, in_dev
from playlists.models import PlaylistEvent
from common.utilities import as_encoded_str

0 comments on commit 8aa8fd0

Please sign in to comment.