# Path: seth/classy/base.py
# class QuerySetMixin(object):
#     model = None
#     paginate = True
#     filter_class = None
#     lookup_param = u'id'
# 
#     def get_model(self):
#         raise NotImplementedError
# 
#     def get_queryset(self, *args, **kwargs):
#         raise NotImplementedError
# 
#     def filter_queryset(self, qs):
#         if self.filter_class:
#             filter_instance = self.filter_class(qs)
#             return filter_instance.apply(self.request)
# 
#         return qs
# 
#     def paginate_queryset(self, qs):
#         settings = self.request.registry.settings
# 
#         page_param = settings.get('pagination.page_param_name', 'page')
#         default_page = settings.get('pagination.default_page', 1)
#         per_page_param = settings.get('pagination.per_page_param_name', 'per_page')
#         default_per_page = settings.get('pagination.default_per_page', 20)
# 
#         try:
#             page = int(self.request.params.get(page_param, default_page))
#         except ValueError:
#             page = default_page
# 
#         try:
#             per_page = int(self.request.params.get(per_page_param, default_per_page))
#         except ValueError:
#             per_page = default_per_page
# 
#         return paginate(qs, page, per_page)
# 
# Path: seth/classy/web/mixins.py
# class BaseFormSchemaMixin(object):
# class WTFormsSchemaMixin(BaseFormSchemaMixin):
# class ContextMixin(object):
# class ProcessFormMixin(object):
#     def get_form(self, form_data=None, obj=None, **kwargs):
#     def get_form_class(self):
#     def get_prefix(self):
#     def get_extra_args(self):
#     def validate_form(self, form, **kwargs):
#     def validate_form(self, form, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_form_data(self, **kwargs):
# 
# Path: seth/classy/web/base.py
# class WebResource(View):
# 
#     def perform_setup(self):
#         pass
# 
#     def not_allowed(self):
#         return Response("Method {0} is not allowed".format(
#             self.request_method), status=HTTPMethodNotAllowed.code
#         )
# 
#     def get_context_data(self):
#         pass


from seth.classy.base import QuerySetMixin
from seth.classy.web import mixins
from seth.classy.web.base import WebResource


class GenericWebResourceView(QuerySetMixin,
                             mixins.WTFormsSchemaMixin,
                             WebResource):
    pass



# Path: seth/classy/base.py
# class QuerySetMixin(object):
#     model = None
#     paginate = True
#     filter_class = None
#     lookup_param = u'id'
# 
#     def get_model(self):
#         raise NotImplementedError
# 
#     def get_queryset(self, *args, **kwargs):
#         raise NotImplementedError
# 
#     def filter_queryset(self, qs):
#         if self.filter_class:
#             filter_instance = self.filter_class(qs)
#             return filter_instance.apply(self.request)
# 
#         return qs
# 
#     def paginate_queryset(self, qs):
#         settings = self.request.registry.settings
# 
#         page_param = settings.get('pagination.page_param_name', 'page')
#         default_page = settings.get('pagination.default_page', 1)
#         per_page_param = settings.get('pagination.per_page_param_name', 'per_page')
#         default_per_page = settings.get('pagination.default_per_page', 20)
# 
#         try:
#             page = int(self.request.params.get(page_param, default_page))
#         except ValueError:
#             page = default_page
# 
#         try:
#             per_page = int(self.request.params.get(per_page_param, default_per_page))
#         except ValueError:
#             per_page = default_per_page
# 
#         return paginate(qs, page, per_page)
# 
# Path: seth/classy/web/mixins.py
# class BaseFormSchemaMixin(object):
# class WTFormsSchemaMixin(BaseFormSchemaMixin):
# class ContextMixin(object):
# class ProcessFormMixin(object):
#     def get_form(self, form_data=None, obj=None, **kwargs):
#     def get_form_class(self):
#     def get_prefix(self):
#     def get_extra_args(self):
#     def validate_form(self, form, **kwargs):
#     def validate_form(self, form, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_form_data(self, **kwargs):
# 
# Path: seth/classy/web/base.py
# class WebResource(View):
# 
#     def perform_setup(self):
#         pass
# 
#     def not_allowed(self):
#         return Response("Method {0} is not allowed".format(
#             self.request_method), status=HTTPMethodNotAllowed.code
#         )
# 
#     def get_context_data(self):
#         pass


# Path: seth/classy/web/generics.py
from seth.classy.base import QuerySetMixin
from seth.classy.web import mixins
from seth.classy.web.base import WebResource



class GenericWebResourceView(QuerySetMixin,
                             mixins.WTFormsSchemaMixin,
                             WebResource):
    pass



class ProcessFormView(mixins.ContextMixin,