Skip to content

Instantly share code, notes, and snippets.

@viksit

viksit/tb Secret

Last active December 26, 2015 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viksit/27ff99d30ac493ba4d66 to your computer and use it in GitHub Desktop.
Save viksit/27ff99d30ac493ba4d66 to your computer and use it in GitHub Desktop.
from django.http import HttpResponse
from django.views.generic.base import View
from clamp import ClampProxyMaker
import java
from java.io import Serializable
from java.util.concurrent import Callable
class MyBaseView(View, Callable, Serializable):
__proxymaker__ = ClampProxyMaker("MyBaseView")
def get(self, request):
return HttpResponse("base view from class")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment