thirdparty/google_appengine/google/appengine/api/images/images_not_implemented_stub.py
changeset 109 620f9b141567
equal deleted inserted replaced
108:261778de26ff 109:620f9b141567
       
     1 #!/usr/bin/env python
       
     2 #
       
     3 # Copyright 2007 Google Inc.
       
     4 #
       
     5 # Licensed under the Apache License, Version 2.0 (the "License");
       
     6 # you may not use this file except in compliance with the License.
       
     7 # You may obtain a copy of the License at
       
     8 #
       
     9 #     http://www.apache.org/licenses/LICENSE-2.0
       
    10 #
       
    11 # Unless required by applicable law or agreed to in writing, software
       
    12 # distributed under the License is distributed on an "AS IS" BASIS,
       
    13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    14 # See the License for the specific language governing permissions and
       
    15 # limitations under the License.
       
    16 #
       
    17 
       
    18 """A NotImplemented Images API stub for when the PIL library is not found."""
       
    19 
       
    20 
       
    21 
       
    22 class ImagesNotImplementedServiceStub(object):
       
    23   """Stub version of images API which raises a NotImplementedError."""
       
    24 
       
    25   def MakeSyncCall(self, service, call, request, response):
       
    26     """Main entry point.
       
    27 
       
    28     Args:
       
    29       service: str, must be 'images'.
       
    30       call: str, name of the RPC to make, must be part of ImagesService.
       
    31       request: pb object, corresponding args to the 'call' argument.
       
    32       response: pb object, return value for the 'call' argument.
       
    33     """
       
    34     raise NotImplementedError("Unable to find the Python PIL library.  Please "
       
    35                               "view the SDK documentation for details about "
       
    36                               "installing PIL on your system.")