# Path: appcivist/views.py
# def convert_to_utf8_str(arg):
# def _get_timezone_aware_datetime(datetime):
# def get_api_obj(assembly):
# def get_appcivist_data(assembly, api_method, method_params=None, pag_params=None):
# def cru_author(author_id, assembly, author_info=None):
# def cu_campaigns(assembly):
# def cru_campaign(campaign_id, assembly):
# def cru_idea(idea_id, assembly, idea_obj=None):
# def get_parent_comment(parent_type, parent_id, assembly):
# def cru_comment(comment_id, assembly, comment_obj=None):
# def get_parent_feedback(parent_type, parent_id, assembly):
# def cru_feedback(feedback_id, assembly, feedback_obj):
# def find_obj_id(obj_raw):
#     def get(self, request, assembly, format=None):
#     def post(self, request, assembly, format=None):
#     def get(self, request, obj_id, format=None):
#     def delete(self, request, obj_id, format=None):
#     def get(self, request, format=None):
#     def get(self, request, format=None):
#     def get(self, request, initiative_id, format=None):
#     def get(self, request, initiative_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def get(self, request, idea_id, format=None):
#     def delete(self, request, idea_id, format=None):
#     def get(self, request, initiative_id, format=None):
#     def get(self, request, user_id, format=None):
#     def delete(self, request, author_id, format=None):
#     def get_assembly(self, initiative_id):
#     def get(self, request, initiative_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def get(self, request, idea_id, format=None):
#     def post(self, request, idea_id, format=None):
#     def get_assembly(self, comment):
#     def get(self, request, comment_id, format=None):
#     def post(self, request, comment_id, format=None):
#     def get_assembly(self, comment):
#     def get(self, request, comment_id, format=None):
#     def delete(self, request, comment_id, format=None):
#     def get(self, request, initiative_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def get(self, request, initiative_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def get(self, request, idea_id, format=None):
#     def post(self, request, idea_id, format=None):
#     def get_assembly(self, comment):
#     def get(self, request, comment_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def delete(self, request, vote_id, format=None):
# def index(request):
# class AppCivistObject(APIView):
# class AppCivistObjectDetail(APIView):
# class TestingParams(APIView):
# class Assemblies(APIView):
# class Campaigns(APIView):
# class Ideas(AppCivistObject):
# class IdeaDetail(AppCivistObjectDetail):
# class Authors(AppCivistObject):
# class AuthorDetail(AppCivistObjectDetail):
# class Comments(AppCivistObject):
# class CommentsIdea(AppCivistObject):
# class CommentsComment(AppCivistObject):
# class CommentDetail(AppCivistObjectDetail):
# class FeedbacksIdeas(AppCivistObject):
# class FeedbacksComments(AppCivistObject):
# class FeedbacksIdea(AppCivistObject):
# class FeedbacksComment(AppCivistObject):
# class FeedbackDetail(AppCivistObjectDetail):
#     PAGE_SIZE = 25
#     PAGE_NUMBER = 0


from appcivist import views
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns


re_url = '(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)'

urlpatterns = [
    # ex: /assemblies/
    url(r'^assemblies/$', views.Assemblies.as_view()), 
    # ex: /campaigns/initiative_id
    url(r'^campaigns/(?P<initiative_id>[0-9]+)$', views.Campaigns.as_view()), 
    # ex: /ideas/initiative_id
    url(r'^ideas/(?P<initiative_id>[0-9]+)$', views.Ideas.as_view()), 
    # ex: /idea/idea_id
    url(r'^idea/(?P<idea_id>[0-9]+)$', views.IdeaDetail.as_view()), 
    # ex: /authors/initiative_id
    url(r'^authors/(?P<initiative_id>[0-9]+)$', views.Authors.as_view()), 
    # ex: /author/user_id

# Path: appcivist/views.py
# def convert_to_utf8_str(arg):
# def _get_timezone_aware_datetime(datetime):
# def get_api_obj(assembly):
# def get_appcivist_data(assembly, api_method, method_params=None, pag_params=None):
# def cru_author(author_id, assembly, author_info=None):
# def cu_campaigns(assembly):
# def cru_campaign(campaign_id, assembly):
# def cru_idea(idea_id, assembly, idea_obj=None):
# def get_parent_comment(parent_type, parent_id, assembly):
# def cru_comment(comment_id, assembly, comment_obj=None):
# def get_parent_feedback(parent_type, parent_id, assembly):
# def cru_feedback(feedback_id, assembly, feedback_obj):
# def find_obj_id(obj_raw):
#     def get(self, request, assembly, format=None):
#     def post(self, request, assembly, format=None):
#     def get(self, request, obj_id, format=None):
#     def delete(self, request, obj_id, format=None):
#     def get(self, request, format=None):
#     def get(self, request, format=None):
#     def get(self, request, initiative_id, format=None):
#     def get(self, request, initiative_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def get(self, request, idea_id, format=None):
#     def delete(self, request, idea_id, format=None):
#     def get(self, request, initiative_id, format=None):
#     def get(self, request, user_id, format=None):
#     def delete(self, request, author_id, format=None):
#     def get_assembly(self, initiative_id):
#     def get(self, request, initiative_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def get(self, request, idea_id, format=None):
#     def post(self, request, idea_id, format=None):
#     def get_assembly(self, comment):
#     def get(self, request, comment_id, format=None):
#     def post(self, request, comment_id, format=None):
#     def get_assembly(self, comment):
#     def get(self, request, comment_id, format=None):
#     def delete(self, request, comment_id, format=None):
#     def get(self, request, initiative_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def get(self, request, initiative_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def get(self, request, idea_id, format=None):
#     def post(self, request, idea_id, format=None):
#     def get_assembly(self, comment):
#     def get(self, request, comment_id, format=None):
#     def post(self, request, initiative_id, format=None):
#     def delete(self, request, vote_id, format=None):
# def index(request):
# class AppCivistObject(APIView):
# class AppCivistObjectDetail(APIView):
# class TestingParams(APIView):
# class Assemblies(APIView):
# class Campaigns(APIView):
# class Ideas(AppCivistObject):
# class IdeaDetail(AppCivistObjectDetail):
# class Authors(AppCivistObject):
# class AuthorDetail(AppCivistObjectDetail):
# class Comments(AppCivistObject):
# class CommentsIdea(AppCivistObject):
# class CommentsComment(AppCivistObject):
# class CommentDetail(AppCivistObjectDetail):
# class FeedbacksIdeas(AppCivistObject):
# class FeedbacksComments(AppCivistObject):
# class FeedbacksIdea(AppCivistObject):
# class FeedbacksComment(AppCivistObject):
# class FeedbackDetail(AppCivistObjectDetail):
#     PAGE_SIZE = 25
#     PAGE_NUMBER = 0


# Path: appcivist/urls.py
from appcivist import views
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns



re_url = '(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)'

urlpatterns = [
    # ex: /assemblies/
    url(r'^assemblies/$', views.Assemblies.as_view()), 
    # ex: /campaigns/initiative_id
    url(r'^campaigns/(?P<initiative_id>[0-9]+)$', views.Campaigns.as_view()), 
    # ex: /ideas/initiative_id
    url(r'^ideas/(?P<initiative_id>[0-9]+)$', views.Ideas.as_view()), 
    # ex: /idea/idea_id
    url(r'^idea/(?P<idea_id>[0-9]+)$', views.IdeaDetail.as_view()), 
    # ex: /authors/initiative_id
    url(r'^authors/(?P<initiative_id>[0-9]+)$', views.Authors.as_view()), 
    # ex: /author/user_id

    url(r'^author/(?P<user_id>[0-9]+)$', views.AuthorDetail.as_view()), 