# Path: eff_site/settings.py
# CURRENT_ABS_DIR = dirname(abspath(normpath(__file__)))
# 
# Path: eff_site/eff/views.py
# OVERTIME_FLAG = 'overtime_nav'
# MONTHLY_FLAG = 'monthly_nav'
# def __get_order_by(order_by):
# def __get_context(request):
# def __aux_mk_time(date_string):
# def __process_dates(request):
# def __process_period(request, is_prev):
# def __encFloat(lof, maxval):
# def __encList(llof, maxval):
# def __enough_perms(u):
# def __enough_perms_or_follows(view_fun):
#     def _dec(request, user_name):
# def __not_a_client(u):
# def __is_client(u):
# def __enough_perms_or_client(u):
# def chart_values(username_list, from_date, to_date, request_user):
# def index(request):
# def update_hours(request, username):
# def eff_client_home(request):
# def eff_client_projects(request):
# def eff_client_summary_period(request):
# def eff_client_summary(request, company_slug=None):
# def eff_home(request):
# def eff_check_perms(request, username):
# def eff_previous_week(request):
# def eff_current_week(request):
# def eff_current_month(request):
# def eff_last_month(request):
# def eff_horas_extras(request):
# def eff_next(request):
# def eff_prev(request):
# def eff(request):
# def eff_chart(request, username):
# def eff_charts(request):
# def eff_report(request, user_name):
# def eff_update_db(request):
# def eff_administration(request):
# def eff_client_report(request, client_slug):
# def eff_client_reports_admin(request):
# def eff_admin_add_user(request):
# def eff_admin_change_profile(request):
# def profile_detail(request, username):
# def eff_dump_csv_upload(request):
# def eff_fixed_price_client_reports(request):
#     def __init__(self, users, *args, **kwargs):
# def eff_admin_users_association(request):
# def edit_profile(request, form_class):
# def _clientform_changed(form, context_for_email, ctx_dict, send_email):
# def _handles_changed(formset_handles, context_for_email, ctx_dict, send_email):
# def add_url_for_obj(obj):
# def add_attachment_custom(request, app_label, module_name, pk,
#                           template_name='attachments/attachments.html',
#                           extra_context={}):
# def delete_attachment_custom(request, attachment_pk):
# class UserAssociationsForm(forms.Form):


from django.conf.urls.defaults import *
from django.contrib.auth.views import login, logout
from django.views.generic.simple import redirect_to
from django.conf import settings
from django.contrib import admin
from eff_site.settings import CURRENT_ABS_DIR
from eff_site.eff.views import (update_hours, eff, eff_check_perms,
    eff_previous_week, eff_current_week, eff_current_month, eff_horas_extras,
    eff_chart, eff_next, eff_prev, eff_charts, eff_report, eff_update_db,
    eff_administration, eff_client_report, eff_client_reports_admin,
    UserProfileForm, eff_last_month, eff_admin_add_user,
    eff_admin_change_profile, profile_detail, eff_dump_csv_upload,
    eff_fixed_price_client_reports, eff_admin_users_association, eff_home,
    eff_client_home, index, eff_client_projects, eff_client_summary,
    eff_client_summary_period, add_attachment_custom, delete_attachment_custom)
from os.path import join

jscalendar_dir = join(CURRENT_ABS_DIR, 'addons/jscalendar-1.0/')
js_dir = join(CURRENT_ABS_DIR, 'addons/js/')
jscalendar_lang_dir = join(CURRENT_ABS_DIR, 'addons/jscalendar-1.0/lang/')
calendar_dir = join(CURRENT_ABS_DIR, 'addons/simple-calendar/')
sortable_dir = join(CURRENT_ABS_DIR, 'addons/sortable-table/')
templates_dir = join(CURRENT_ABS_DIR, 'templates/')
images_dir = join(CURRENT_ABS_DIR, 'templates/images/')

urlpatterns = patterns('',
    url(r'^$', index, name='root'),
    url(r'^clients/home/$', eff_client_home, name='client_home'),
    url(r'^clients/projects/$', eff_client_projects, name='client_projects'),
    url(r'^clients/summary/period/$', eff_client_summary_period,
        name='client_summary_period'),
    url(r'^clients/summary/$', eff_client_summary,
        name='client_summary'),
    # django-profiles
    url(r'^accounts/login/$', login, {'template_name': 'login.html'},
        name='login'),
    url(r'^accounts/logout/$', logout, {'template_name': 'logout.html'},
        name='logout'),
    url(r'^accounts/profile/$', eff_home, name='eff_home'),
    url(r'^login/$', redirect_to, {'url': '/accounts/login/'},
        name='redir_login'),
    url(r'^logout/$', redirect_to, {'url': '/accounts/logout/'},
        name='redir_logout'),
    url(r'^checkperms/([A-Za-z_0-9]*)/$', eff_check_perms, name='checkperms'),
    url(r'^profiles/edit', 'eff.views.edit_profile',
        {'form_class': UserProfileForm, }, name='profiles_edit'),

# Path: eff_site/settings.py
# CURRENT_ABS_DIR = dirname(abspath(normpath(__file__)))
# 
# Path: eff_site/eff/views.py
# OVERTIME_FLAG = 'overtime_nav'
# MONTHLY_FLAG = 'monthly_nav'
# def __get_order_by(order_by):
# def __get_context(request):
# def __aux_mk_time(date_string):
# def __process_dates(request):
# def __process_period(request, is_prev):
# def __encFloat(lof, maxval):
# def __encList(llof, maxval):
# def __enough_perms(u):
# def __enough_perms_or_follows(view_fun):
#     def _dec(request, user_name):
# def __not_a_client(u):
# def __is_client(u):
# def __enough_perms_or_client(u):
# def chart_values(username_list, from_date, to_date, request_user):
# def index(request):
# def update_hours(request, username):
# def eff_client_home(request):
# def eff_client_projects(request):
# def eff_client_summary_period(request):
# def eff_client_summary(request, company_slug=None):
# def eff_home(request):
# def eff_check_perms(request, username):
# def eff_previous_week(request):
# def eff_current_week(request):
# def eff_current_month(request):
# def eff_last_month(request):
# def eff_horas_extras(request):
# def eff_next(request):
# def eff_prev(request):
# def eff(request):
# def eff_chart(request, username):
# def eff_charts(request):
# def eff_report(request, user_name):
# def eff_update_db(request):
# def eff_administration(request):
# def eff_client_report(request, client_slug):
# def eff_client_reports_admin(request):
# def eff_admin_add_user(request):
# def eff_admin_change_profile(request):
# def profile_detail(request, username):
# def eff_dump_csv_upload(request):
# def eff_fixed_price_client_reports(request):
#     def __init__(self, users, *args, **kwargs):
# def eff_admin_users_association(request):
# def edit_profile(request, form_class):
# def _clientform_changed(form, context_for_email, ctx_dict, send_email):
# def _handles_changed(formset_handles, context_for_email, ctx_dict, send_email):
# def add_url_for_obj(obj):
# def add_attachment_custom(request, app_label, module_name, pk,
#                           template_name='attachments/attachments.html',
#                           extra_context={}):
# def delete_attachment_custom(request, attachment_pk):
# class UserAssociationsForm(forms.Form):


# Path: eff_site/urls.py
from django.conf.urls.defaults import *
from django.contrib.auth.views import login, logout
from django.views.generic.simple import redirect_to
from django.conf import settings
from django.contrib import admin
from eff_site.settings import CURRENT_ABS_DIR
from eff_site.eff.views import (update_hours, eff, eff_check_perms,
    eff_previous_week, eff_current_week, eff_current_month, eff_horas_extras,
    eff_chart, eff_next, eff_prev, eff_charts, eff_report, eff_update_db,
    eff_administration, eff_client_report, eff_client_reports_admin,
    UserProfileForm, eff_last_month, eff_admin_add_user,
    eff_admin_change_profile, profile_detail, eff_dump_csv_upload,
    eff_fixed_price_client_reports, eff_admin_users_association, eff_home,
    eff_client_home, index, eff_client_projects, eff_client_summary,
    eff_client_summary_period, add_attachment_custom, delete_attachment_custom)
from os.path import join


jscalendar_dir = join(CURRENT_ABS_DIR, 'addons/jscalendar-1.0/')
js_dir = join(CURRENT_ABS_DIR, 'addons/js/')
jscalendar_lang_dir = join(CURRENT_ABS_DIR, 'addons/jscalendar-1.0/lang/')
calendar_dir = join(CURRENT_ABS_DIR, 'addons/simple-calendar/')
sortable_dir = join(CURRENT_ABS_DIR, 'addons/sortable-table/')
templates_dir = join(CURRENT_ABS_DIR, 'templates/')
images_dir = join(CURRENT_ABS_DIR, 'templates/images/')

urlpatterns = patterns('',
    url(r'^$', index, name='root'),
    url(r'^clients/home/$', eff_client_home, name='client_home'),
    url(r'^clients/projects/$', eff_client_projects, name='client_projects'),
    url(r'^clients/summary/period/$', eff_client_summary_period,
        name='client_summary_period'),
    url(r'^clients/summary/$', eff_client_summary,
        name='client_summary'),
    # django-profiles
    url(r'^accounts/login/$', login, {'template_name': 'login.html'},
        name='login'),
    url(r'^accounts/logout/$', logout, {'template_name': 'logout.html'},
        name='logout'),
    url(r'^accounts/profile/$', eff_home, name='eff_home'),
    url(r'^login/$', redirect_to, {'url': '/accounts/login/'},
        name='redir_login'),
    url(r'^logout/$', redirect_to, {'url': '/accounts/logout/'},
        name='redir_logout'),
    url(r'^checkperms/([A-Za-z_0-9]*)/$', eff_check_perms, name='checkperms'),
    url(r'^profiles/edit', 'eff.views.edit_profile',
        {'form_class': UserProfileForm, }, name='profiles_edit'),

    url(r'^profiles/(?P<username>[\w\._-]+)/$', profile_detail,