Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
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/z/a/zamboni-HEAD/mkt/developers/api_payments.py   zamboni(Download)
            self.object.get_provider().account_update(self.object,
                                                      form.cleaned_data)
            return Response(status=status.HTTP_204_NO_CONTENT)
 
        return Response(form.errors, status=status.HTTP_400_BAD_REQUEST)
                            status=status.HTTP_409_CONFLICT)
        log.info('Account cancelled: %s' % account.pk)
        return Response(status=status.HTTP_204_NO_CONTENT)
 
 

src/a/t/atmosphere-HEAD/api/project.py   atmosphere(Download)
        application = application[0]
        project.add_object(application)
        response = Response(status=status.HTTP_204_NO_CONTENT)
        return response
 
        application = application[0]
        project.remove_object(application)
        response = Response(status=status.HTTP_204_NO_CONTENT)
        return response
 
        instance = instance[0]
        project.add_object(instance)
        response = Response(status=status.HTTP_204_NO_CONTENT)
        return response
 
        instance = instance[0]
        project.remove_object(instance)
        response = Response(status=status.HTTP_204_NO_CONTENT)
        return response
 
        volume = volume[0]
        project.add_object(volume)
        response = Response(status=status.HTTP_204_NO_CONTENT)
        return response
 

src/d/e/deis-HEAD/controller/api/views.py   deis(Download)
    def destroy(self, request, *args, **kwargs):
        obj = self.request.user
        obj.delete()
        return Response(status=status.HTTP_204_NO_CONTENT)
 
            remove_perm(self.perm, user, app)
            models.log_event(app, "User {} was revoked access to {}".format(user, app))
            return Response(status=status.HTTP_204_NO_CONTENT)
        else:
            return Response(status=status.HTTP_404_NOT_FOUND)
    def destroy(self, request, **kwargs):
        user = get_object_or_404(User, username=kwargs['username'])
        user.is_superuser = user.is_staff = False
        user.save(update_fields=['is_superuser', 'is_staff'])
        return Response(status=status.HTTP_204_NO_CONTENT)
        except EnvironmentError as e:
            return Response(str(e), status=status.HTTP_400_BAD_REQUEST)
        return Response(status=status.HTTP_204_NO_CONTENT,
                        content_type='application/json')
 

src/z/a/zamboni-HEAD/mkt/comm/views.py   zamboni(Download)
        if val:
            self.mark_as_read(request.amo_user)
            return Response(status=status.HTTP_204_NO_CONTENT)
        else:
            return Response('Requested update operation not supported',
 
        return Response("Successfully un-cc'ed from thread.",
                        status=status.HTTP_204_NO_CONTENT)
 
 

src/z/a/zamboni-HEAD/mkt/collections/views.py   zamboni(Download)
        # Store the hash of the original image data sent.
        obj.update(image_hash=hash_)
        return Response(status=status.HTTP_204_NO_CONTENT)
 
    def destroy(self, request, *args, **kwargs):
        obj = self.get_object()
        if obj.has_image:
            storage.delete(obj.image_path())
            obj.update(image_hash=None)
        return Response(status=status.HTTP_204_NO_CONTENT)

src/m/o/movide-HEAD/api/views.py   movide(Download)
        message.save()
 
        return Response(status=status.HTTP_204_NO_CONTENT)
 
class UserView(QueryView):
        user.classgroups.remove(classgroup_model)
 
        return Response(status=status.HTTP_204_NO_CONTENT)
 
class EmailSubscription(APIView):
        resource.delete()
 
        return Response(status=status.HTTP_204_NO_CONTENT)
 
    def post(self, request, pk):
        instance.delete()
 
        return Response(status=status.HTTP_204_NO_CONTENT)
 
 
        instance.delete()
 
        return Response(status=status.HTTP_204_NO_CONTENT)
 
class GradingQueueView(QueryView):

src/a/t/atmosphere-HEAD/api/tag.py   atmosphere(Download)
                             % (instance_count, app_count))
        tag.delete()
        return Response(status=status.HTTP_204_NO_CONTENT)
 
    def get(self, request, tag_slug, *args, **kwargs):

src/a/t/atmosphere-HEAD/api/bookmark.py   atmosphere(Download)
                    application=app, user=user)
                app_bookmark.delete()
                return Response(status=status.HTTP_204_NO_CONTENT)
            else:
                return failure_response(status.HTTP_400_BAD_REQUEST,
                                    "No Bookmark for Application: uuid %s" % app_uuid)
        app_bookmark.delete()
        return Response(status=status.HTTP_204_NO_CONTENT)
 
 

src/d/j/django-services-0.0.8/django_services/api/api.py   django-services(Download)
    def destroy(self, request, *args, **kwargs):
        obj = self.get_object()
        self.service.delete(obj)
        return Response(status=status.HTTP_204_NO_CONTENT)
 

src/d/j/django-user-management-1.1.2/user_management/api/views.py   django-user-management(Download)
        else:
            token.delete()
        return response.Response(status=status.HTTP_204_NO_CONTENT)
 
 
 
        msg = _('Password reset request successful. Please check your email.')
        return response.Response(msg, status=status.HTTP_204_NO_CONTENT)
 
    def send_email(self, user):

  1 | 2 | 3 | 4  Next