Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/a/t/atmosphere-HEAD/api/tag.py   atmosphere(Download)
            tag = CoreTag.objects.get(name__iexact=tag_slug)
        except CoreTag.DoesNotExist:
            return failure_response(status.HTTP_404_NOT_FOUND, 
                                    'Tag %s does not exist' % tag_slug)
        if tag.in_use():
        except CoreTag.DoesNotExist:
            return Response(['Tag does not exist'],
                            status=status.HTTP_404_NOT_FOUND)
        serializer = TagSerializer(tag)
        return Response(serializer.data)

src/a/t/atmosphere-HEAD/api/instance.py   atmosphere(Download)
        except NotImplemented, ne:
            return failure_response(
                status.HTTP_404_NOT_FOUND,
                "The requested action %s is not available on this provider"
                % action_params['action'])
def instance_not_found(instance_id):
    return failure_response(
        status.HTTP_404_NOT_FOUND,
        'Instance %s does not exist' % instance_id)
 

src/a/t/atmosphere-HEAD/api/bookmark.py   atmosphere(Download)
                user=user)
        if not app_bookmark:
            return failure_response(status.HTTP_404_NOT_FOUND,
                                    "Application with uuid %s does not exist "
                                    "OR has not been bookmarked" % app_uuid)
        app = Application.objects.filter(uuid=app_uuid)
        if not app:
            return failure_response(status.HTTP_404_NOT_FOUND,
                                    "No Application with uuid %s" % app_uuid)
        app = app[0]
        app = Application.objects.filter(uuid=app_uuid)
        if not app:
            return failure_response(status.HTTP_404_NOT_FOUND,
                                    "No Application with uuid %s" % app_uuid)
        app_bookmark = ApplicationBookmark.objects.filter(application=app,
                                                          user=user)
        if not app_bookmark:
            return failure_response(status.HTTP_404_NOT_FOUND,

src/d/e/deis-HEAD/controller/api/views.py   deis(Download)
            return Response(status=status.HTTP_204_NO_CONTENT)
        else:
            return Response(status=status.HTTP_404_NOT_FOUND)
 
 
        except EnvironmentError:
            return Response("No logs for {}".format(app.id),
                            status=status.HTTP_404_NOT_FOUND,
                            content_type='text/plain')
        return Response(logs, status=status.HTTP_200_OK,
        version = int(request.DATA.get('version', last_version - 1))
        if version < 1:
            return Response(status=status.HTTP_404_NOT_FOUND)
        summary = "{} rolled back to v{}".format(request.user, version)
        prev = app.release_set.get(version=version)

src/a/t/atmosphere-HEAD/api/machine_request.py   atmosphere(Download)
            return Response('No machine request with id %s'
                            % machine_request_id,
                            status=status.HTTP_404_NOT_FOUND)
 
        serializer = MachineRequestSerializer(machine_request)
            return Response('No machine request with id %s'
                            % machine_request_id,
                            status=status.HTTP_404_NOT_FOUND)
 
        data = request.DATA
            return Response('No machine request with id %s'
                            % machine_request_id,
                            status=status.HTTP_404_NOT_FOUND)
 
        serialized_data = MachineRequestSerializer(machine_request).data
            return Response('No machine request with id %s'
                            % machine_request_id,
                            status=status.HTTP_404_NOT_FOUND)
 
        serializer = MachineRequestSerializer(machine_request,
            return Response('No machine request with id %s'
                            % machine_request_id,
                            status=status.HTTP_404_NOT_FOUND)
 
        serializer = MachineRequestSerializer(machine_request,

src/a/t/atmosphere-HEAD/api/meta.py   atmosphere(Download)
            logger.exception(ne)
            return failure_response(
                status.HTTP_404_NOT_FOUND,
                'The requested resource %s is not available on this provider'
                % action)

src/a/t/atmosphere-HEAD/api/volume.py   atmosphere(Download)
def volume_not_found(volume_id):
    return failure_response(
        status.HTTP_404_NOT_FOUND,
        'Volume %s does not exist' % volume_id)
 

src/a/t/atmosphere-HEAD/api/maintenance.py   atmosphere(Download)
        except CoreMaintenanceRecord.DoesNotExist:
            return Response('No maintenance record with id %s' % record_id,
                            status=status.HTTP_404_NOT_FOUND)
        return Response(MaintenanceRecordSerializer(mach_request).data)
 
        except CoreMaintenanceRecord.DoesNotExist:
            return Response('No maintenance record with id %s' % record_id,
                            status=status.HTTP_404_NOT_FOUND)
 
        serializer = MaintenanceRecordSerializer(record, data=data, partial=True)
            return Response(
                'No maintenance record with id %s' % record_id,
                status=status.HTTP_404_NOT_FOUND)
        serializer = MaintenanceRecordSerializer(record,
                                             data=data, partial=True)

src/a/t/atmosphere-HEAD/api/machine_export.py   atmosphere(Download)
            return Response(
                'No machine request with id %s' % machine_export_id,
                status=status.HTTP_404_NOT_FOUND)
 
        serialized_data = MachineExportSerializer(mach_request).data
            return Response(
                'No machine request with id %s' % machine_export_id,
                status=status.HTTP_404_NOT_FOUND)
 
        serializer = MachineExportSerializer(mach_request,
            return Response(
                'No machine request with id %s' % machine_export_id,
                status=status.HTTP_404_NOT_FOUND)
 
        serializer = MachineExportSerializer(mach_request,

src/a/t/atmosphere-HEAD/api/application.py   atmosphere(Download)
        app = CoreApplication.objects.filter(uuid=app_uuid)
        if not app:
            return failure_response(status.HTTP_404_NOT_FOUND,
                                    "Application with uuid %s does not exist"
                                    % app_uuid)
        app = CoreApplication.objects.filter(uuid=app_uuid)
        if not app:
            return failure_response(status.HTTP_404_NOT_FOUND,
                                    "Application with uuid %s does not exist"
                                    % app_uuid)
        app = CoreApplication.objects.filter(uuid=app_uuid)
        if not app:
            return failure_response(status.HTTP_404_NOT_FOUND,
                                    "Application with uuid %s does not exist"
                                    % app_uuid)

  1 | 2 | 3 | 4 | 5  Next