Exemplo n.º 1
0
# -*- coding: utf-8 -*-

"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.profile.views import form, save, form_careprofessional, save_careprofessional, change_pass, add_availability
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
    (r'^$', login_check(form)), #profile form
    (r'^careprofessional/$', login_check(form_careprofessional)), #professional profile form
    (r'^client/', include('gestorpsi.profile.client_urls')),
    (r'^save/$', login_check(save)), #save new object
    (r'^save/careprofessional/$', login_check(save_careprofessional)), #save new object
    (r'^chpass/$', login_check(change_pass)), #change password
    (r'^add_availability/$', login_check(add_availability)), #change password
)
Exemplo n.º 2
0
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.authentication.views import login_check
from gestorpsi.referral.forms import ReferralForm
from gestorpsi.schedule.forms import ScheduleOccurrenceForm, ScheduleSingleOccurrenceForm, OccurrenceConfirmationForm

from gestorpsi.schedule.views import occurrence_view, schedule_settings, add_event, schedule_index, schedule_occurrence_listing_today, event_view, daily_occurrences, today_occurrences, occurrence_confirmation_form, occurrence_family_form, occurrence_employee_form, occurrence_group, week_view, week_view_table, occurrence_confirmation_form_group, diary_view, occurrence_print_receipt

urlpatterns = patterns(
    '',
    url(r'^(?:calendar/)?$',
        login_check(schedule_index),
        name='schedule-index'),
    # diary view
    url(r'^diary/$', login_check(diary_view), name='schedule-diary-view'),

    # settings of schedule
    url(r'^settings/$',
        login_check(schedule_settings),
        name='schedule-settings'),

    # index, not default place
    url(r'^place/(?P<place>([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}))/$',
        login_check(diary_view),
        name='schedule-diary-view'),

    # return JSON
Exemplo n.º 3
0
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.users.views import index, list, form, create_user, update_user, update_pwd, set_form_user, add, order, username_is_available 
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
    (r'^$', login_check(index)),
    (r'^page(?P<page>(\d)+)$', login_check(list)),
    (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$', login_check(list)), # quick filter
    (r'^filter/(?P<filter>[a-zA-Z ]+)/page(?P<page>(\d)+)/$', login_check(list)), # quick search
    (r'^filter/(?P<filter>[a-zA-Z ]+)/$', login_check(list), {'no_paging': True}), # quick search
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/add/$', login_check(form_new_user)), WILL BE DELETED
    (r'^save/$', login_check(create_user)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)),
    (r'^add/$', login_check(add)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(update_user)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/savepwd/$', login_check(update_pwd)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/setformuser/$', login_check(set_form_user)),
    (r'^(?P<profile_id>(\d)+)/order/$', login_check(order)),
    #url(r'^(?P<profile_id>(\d)+)/delete/$', login_check(delete), name='user_delete'),
    (r'^check/(?P<user>.*)/$', login_check(username_is_available)),  #check username
    # DEACTIVE
Exemplo n.º 4
0
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from gestorpsi.authentication.views import login_check
from gestorpsi.demographic.views import home, education, education_save, occupation, occupation_save

urlpatterns = patterns('',
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/$', login_check(home)),

    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/education/$', login_check(education)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/education/save/$', login_check(education_save)),

    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/occupation/$', login_check(occupation)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/occupation/(?P<occupation_id>(\d)+)/$', login_check(occupation)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/occupation/save/$', login_check(occupation_save)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/occupation/save/(?P<occupation_id>(\d)+)/$', login_check(occupation_save)),
    
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/$', login_check(socioeconomic_transportation)),
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/(?P<transportation_id>(\d)+)/$', login_check(socioeconomic_transportation)),
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/save/$', login_check(socioeconomic_transportation_save)),
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/save/(?P<transportation_id>(\d)+)/$', login_check(socioeconomic_transportation_save)),
)
Exemplo n.º 5
0
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.service.views import select_area, index, form, save, disable, list, list_professional, order, queue, client_list_index
from gestorpsi.authentication.views import login_check
from gestorpsi.service.views import group_form, group_list

urlpatterns= patterns('',
    (r'^$', login_check(index)),
    (r'^page(?P<page>(\d)+)$', login_check(list)), #list objects
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/listprofessional/$', login_check(list_professional)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$', login_check(order)),
    url(r'^add/$', login_check(select_area), name='select_area'),
    (r'^add/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(select_area)),
    url(r'^form/$', login_check(form), name='service_form'),
    (r'^form/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)),
    url(r'^save/$', login_check(save), name='save_service'),
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save), name='save_service'),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/queue/$', login_check(queue)),

    # service group
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/group/add/$', login_check(group_form)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/group/(?P<group_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/form/$', login_check(group_form)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/group/$', login_check(group_list)),    
Exemplo n.º 6
0
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
"""

from django.conf.urls.defaults import patterns, url
from gestorpsi.authentication.views import login_check
from gestorpsi.demographic.views import home, education, education_save, occupation, occupation_save

urlpatterns = patterns(
    '',
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/$',
        login_check(home),
        name='client-demographic-home'),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/education/$',
     login_check(education)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/education/save/$',
     login_check(education_save)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/occupation/$',
     login_check(occupation)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/occupation/(?P<occupation_id>(\d)+)/$',
     login_check(occupation)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/occupation/save/$',
     login_check(occupation_save)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/demographic/occupation/save/(?P<occupation_id>(\d)+)/$',
     login_check(occupation_save)),
)
Exemplo n.º 7
0
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from gestorpsi.authentication.views import login_check
from gestorpsi.ehr.views import *

urlpatterns = patterns('',
    # Session's URL
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/session/$', login_check(session_list)),
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/session/(?P<session_id>\d+)/item/$', login_check(session_item_html)),
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/session/add/$', login_check(session_form)),
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/session/(?P<session_id>\d+)/$', login_check(session_form)),

    # Diagnosis's URL
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/diagnosis/$', login_check(diagnosis_list)),
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/diagnosis/(?P<diagnosis_id>\d+)/item/$', login_check(diagnosis_item_html)),
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/diagnosis/add/$', login_check(diagnosis_form)),
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/diagnosis/(?P<diagnosis_id>\d+)/$', login_check(diagnosis_form)),
    
    # Demand's URL
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/demand/$', login_check(demand_list)),
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/demand/(?P<demand_id>\d+)/item/$', login_check(demand_item_html)),
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/demand/add/$', login_check(demand_form)),
    (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/demand/(?P<demand_id>\d+)/$', login_check(demand_form)),
Exemplo n.º 8
0
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.users.views import index, list, form, create_user, update_user, update_pwd, set_form_user, add, order, username_is_available, update_email
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
                       (r'^$', login_check(index)),
                       (r'^page(?P<page>(\d)+)$', login_check(list)),
                       # quick filter
                       (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$',
                        login_check(list)),
                       (r'^filter/(?P<filter>[a-zA-Z ]+)/page(?P<page>(\d)+)/$',
                           login_check(list)),  # quick search
                       (r'^filter/(?P<filter>[a-zA-Z ]+)/$', login_check(list),
                           {'no_paging': True}),  # quick search
                       #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/add/$', login_check(form_new_user)), WILL BE DELETED
                       (r'^save/$', login_check(create_user)),
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(
                           form)),
                       (r'^add/$', login_check(add)),
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$',
                           login_check(update_user)),
Exemplo n.º 9
0
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.employee.views import index, form, save, list, order
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    (r'^$', login_check(index), {
        'deactive': False
    }),  # list objects active
    (r'^page(?P<page>(\d)+)/$', login_check(list), {
        'deactive': False
    }),  #list objects
    (r'^add/$', login_check(form)),  # new object form
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
     login_check(form)),  # edit object form
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$',
     login_check(order)),  # edit object form
    (r'^save/$', login_check(save)),  # save new object
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$',
     login_check(save)),  # update object
    (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$',
     login_check(list)),  # quick filter
Exemplo n.º 10
0
    'view': 'referral',
}

receive_save = {
    'form_class': ReportSaveReceiveForm,
    'view': 'receive',
}

formfill_save = {
    'form_class': ReportSaveFormFillForm,
    'view': 'formfill',
}

urlpatterns = patterns(
    '',
    url(r'^$', login_check(index)),
    url(r'^date/$', login_check(report_date)),

    # statistics views
    url(r'^admission/$', login_check(admission_data),
        {'template': 'report/report_table.html'}),
    url(r'^admission/demographic/$', login_check(demographic_data),
        {'view': 'admission'}),
    url(r'^referral/$', login_check(referral_data),
        {'template': 'report/report_table.html'}),
    url(r'^receive/$', login_check(receive_data)),
    url(r'^event/$', login_check(event_data)),
    url(r'^formfill/$', login_check(formfill_data)),

    # list of clients from admissions
    url(r'^admission/client/overview/total/$',
Exemplo n.º 11
0
student_index = {'template_name': 'careprofessional/student_list.html'}
student_index_deactive = {
    'template_name': 'careprofessional/student_list.html',
    'deactive': True
}
student_list = {'is_student': True}
student_list_deactive = {'is_student': True, 'deactive': True}
student_form = {
    'template_name': 'careprofessional/student_form.html',
    'is_student': True
}
student_save = {'is_student': True}

urlpatterns = patterns(
    '',
    url(r'^$', login_check(index), professional_index),
    url(r'^page(?P<page>(\d)+)$', login_check(list)),
    url(r'^deactive/$', login_check(index), professional_list_deactive),
    url(r'^page(?P<page>(\d)+)/deactive/$', login_check(list),
        professional_list_deactive),
    url(r'^add/$', login_check(form), professional_form),
    url(r'^save/$', login_check(save)),
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
        login_check(form),
        professional_form,
        name='professional_form'),  # noqa
    url(
        r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$',
        login_check(save)),  # noqa
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$',
        login_check(order),
Exemplo n.º 12
0
# -*- coding: utf-8 -*-
"""
    Copyright (C) 2008 GestorPsi

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
"""

from django.conf.urls.defaults import patterns, url, include
from gestorpsi.profile.views import form, save, form_careprofessional, save_careprofessional, change_pass
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    url(r'^$', login_check(form), name='profile-form'),  #profile form
    (r'^careprofessional/$',
     login_check(form_careprofessional)),  #professional profile form
    (r'^client/', include('gestorpsi.profile.client_urls')),
    (r'^save/$', login_check(save)),  #save new object
    (r'^save/careprofessional/$',
     login_check(save_careprofessional)),  #save new object
    (r'^chpass/$', login_check(change_pass)),  #change password
)
Exemplo n.º 13
0
# -*- coding: utf-8 -*-
"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.support.views import ticket_form
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    (r'^ticket/form/$', login_check(ticket_form)),  #form
    (r'^ticket/sent/$', 'django.views.generic.simple.direct_to_template', {
        'template': 'support/ticket_sent.html'
    }),  #form sent
)
Exemplo n.º 14
0
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import patterns, url
from gestorpsi.organization.views import form, save, shortname_is_available, make_second_copy, signature_save, suspension
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    (r'^$', login_check(form)),
    (r'^save/$', login_check(save)),
    (r'^check/(?P<short>.*)/$', (shortname_is_available)),  #check short name
    (r'^second_copy/(?P<invoice>.*)/$', (make_second_copy)),
    url(r'^signature/$',
        login_check(signature_save),
        name='organization-signature'),
    url(r'^suspension/$',
        login_check(suspension),
        name='organization-suspension'),
)
Exemplo n.º 15
0
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.contact.views import index, list, save_mini, save_mini_professional
from gestorpsi.contact.views import contact_organization_form, contact_professional_form
from gestorpsi.contact.views import contact_organization_save, contact_professional_save
from gestorpsi.contact.views import contact_organization_order, contact_professional_order
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    # local contacts
    (r'^$', login_check(index)),
    url(r'^page(?P<page>(\d)+)$', login_check(list)),  #list objects
    url(r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$',
        login_check(list)),  # quick filter
    url(r'^filter/(?P<filter>\w+)/page(?P<page>(\d)+)/$',
        login_check(list)),  # quick search

    # external contacts
    url(r'^external/$', login_check(index),
        {'template': 'contact/contact_list_external.html'}),
    url(r'^external/page(?P<page>(\d)+)$', login_check(list),
        {'filter_type': 'external'}),  #list objects
    url(r'^external/initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$',
        login_check(list), {'filter_type': 'external'}),  # quick filter
    url(r'^external/filter/(?P<filter>\w+)/page(?P<page>(\d)+)/$',
        login_check(list), {'filter_type': 'external'}),  # quick search
Exemplo n.º 16
0
"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import patterns, url
from gestorpsi.organization.views import form, save, shortname_is_available, make_second_copy, signature_save, suspension
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
                       (r'^$', login_check(form)),
                       (r'^save/$', login_check(save)),
                       # check short name
                       (r'^check/(?P<short>.*)/$', (shortname_is_available)),
                       (r'^second_copy/(?P<invoice>.*)/$', (make_second_copy)),

                       url(r'^signature/$', login_check(signature_save),
                           name='organization-signature'),
                       url(r'^suspension/$', login_check(suspension),
                           name='organization-suspension'),
                       )
Exemplo n.º 17
0
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.device.views import index, form, save, save_device, index_type, form_type, list, list_types, order
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    (r'^$', login_check(index)),  # list objects
    (r'^page(?P<page>(\d)+)$', login_check(list)),  #list objects
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
     login_check(form)),  # edit object form
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$',
     login_check(order)),  # edit object form
    (r'^add/$', login_check(form)),  # new object form
    #(r'^add/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)), # edit object form
    (r'^save/$', login_check(save)),  # save new object
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$',
     login_check(save)),  # update object
    (r'^save_device/$',
     login_check(save_device)),  # save device from device_mini form
    (r'^type/$', login_check(index_type)),  # list types
    (r'^type/page(?P<page>(\d)+)$',
     login_check(list_types)),  #list type objects
Exemplo n.º 18
0
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.frontend.views import start
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    "",
    url(r"^$", login_check(start), name="frontend-home"),  # list objects
    # url(r'^(?P<month>\d+)/month/$', login_check(start), name="frontend-month"), # list objects
    # (r'^page(?P<page>(\d)+)$', login_check(list)), #list objects
    # (r'^add/$', login_check(form)), #new object form
    # (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)),
    # (r'^save/$', login_check(save)), #save new object
    # (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save)),  #update object
    # (r'^(?P<object_id>\d+)/delete/$', login_check(delete)), # delete object
    # (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/delete/$', login_check(delete)),  #delete object
    # (r'^print/$', login_required(print_list)), # print client list
    # (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/print/$', login_required(print_record)),  # print record
)
Exemplo n.º 19
0
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
"""

from django.conf.urls.defaults import patterns, url
from gestorpsi.users.views import index, list, form, update_pwd, order, username_is_available, update_email
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    url(r'^$', login_check(index), name='user-index'),
    # search
    (r'^page(?P<page>(\d)+)$', login_check(list)),
    (r'^page(?P<page>(\d)+)/permission/(?P<permission>[a-z]+)/$',
     login_check(list)),  # filter permission
    (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$',
     login_check(list)),  # quick filter
    (r'^initial/(?P<initial>[a-zA-Z])/permission/(?P<permission>[a-z]+)/page(?P<page>(\d)+)/$',
     login_check(list)),  # quick filter
    (r'^filter/(?P<filter>[a-zA-Z ]+)/page(?P<page>(\d)+)/$',
     login_check(list)),  # quick search
    (r'^filter/(?P<filter>[a-zA-Z ]+)/permission/(?P<permission>[a-z]+)/page(?P<page>(\d)+)/$',
     login_check(list)),  # quick search and permission
    # form
    (r'^check/(?P<user>.*)/$', login_check(username_is_available)
     ),  # check if username are available
Exemplo n.º 20
0
student_list = {
    'is_student': True,
}
student_list_deactive = {'is_student': True, 'deactive': True}
student_form = {
    'template_name': 'careprofessional/student_form.html',
    'is_student': True,
}
student_save = {
    'is_student': True,
}

urlpatterns = patterns(
    '',
    url(r'^$',
        login_check(index),
        professional_index,
        name='careprofessional-index'),
    url(r'^page(?P<page>(\d)+)/$', login_check(list)),
    url(r'^deactive/$',
        login_check(index),
        professional_list_deactive,
        name='careprofessional-deactive'),
    url(r'^page(?P<page>(\d)+)/deactive/$', login_check(list),
        professional_list_deactive),
    url(r'^add/$',
        login_check(form),
        professional_form,
        name='careprofessional-add'),
    url(r'^save/$', login_check(save), name='careprofessional-save-new'),
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
Exemplo n.º 21
0
from django.conf.urls.defaults import patterns, url
from django.contrib.auth.decorators import login_required
from gestorpsi.client.views import index, list, form, save, client_print, \
        organization_clients, home, order, referral_list, referral_home, \
        referral_form, referral_discharge_form, schedule_daily, schedule_add, \
        occurrence_view, referral_occurrences, referral_int_form, referral_queue, \
        referral_queue_save, referral_queue_remove, referral_ext_form, referral_ext_save, family, family_form, \
        company_related, company_related_form, referral_occurrences_action
from gestorpsi.online_messages.views import referral_messages, occurrence_chat, chat_message, update_chat_message, exit_chat, new_message_topic, topic_messages, new_topic_message, chat_messages_history
from gestorpsi.authentication.views import login_check
from gestorpsi.organization.views import list_prof_org

urlpatterns = patterns('',

    # section
    url(r'^$', login_check(index), name='client-index'), # index
    (r'^list/$', login_check(list)), #list objects
    (r'^page(?P<page>(\d)+)$', login_check(list)), #list objects
    #(r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$', login_check(list)), # quick filter
    url(r'^deactive/$', login_check(index), {'deactive': True}, name='client-list-deactive' ), #list objects
    url(r'^list/deactive/$', login_check(list), {'deactive': True}), #list objects
    # client search person family, return JSON
    #(r'^filter/(?P<filter>\w+)/page(?P<page>(\d)+)/$', login_check(list), {'no_paging': True, 'retrn':'json'}), # quick search
    (r'^filter/(?P<filter>\w+)/$', login_check(list), {'no_paging': True, 'retrn':'json'}), # quick search
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$', login_check(order)),
    # client form
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/home/$', login_check(home), name='client-home'),
    url(r'^add/$', login_check(form), name='client-form-new'), #new object form
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/form/$', login_check(form), name='client-form'), #render form
    url(r'^save/$', login_check(save), name='client-form-save'), #save new object
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save), name='client-form-save'), #update client
Exemplo n.º 22
0
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.upload.views import send, attach_form, attach_save
from gestorpsi.referral.models import ReferralAttach, Referral
from django.contrib.auth.decorators import login_required
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    (r'^send/$', login_required(send)),
    # new attach
    (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/referral/(?P<referral_id>\d+)/$',
     login_check(attach_form)),
    # update attach
    (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/referral/(?P<referral_id>\d+)/attach/(?P<attach_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
     login_check(attach_form)),
    # save post form, new or update
    (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/referral/(?P<referral_id>\d+)/save/$',
     login_check(attach_save)),
    (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/referral/(?P<referral_id>\d+)/attach/(?P<attach_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$',
     login_check(attach_save)),
)
Exemplo n.º 23
0
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.employee.views import index, form, save, list, order
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
                       # list objects active
                       (r'^$', login_check(index), {'deactive': False}),
                       (r'^page(?P<page>(\d)+)/$', login_check(list),
                        {'deactive': False}),  # list objects
                       (r'^add/$', login_check(form)),  # new object form
                       # edit object form
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(
                           form)),
                       # edit object form
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$', login_check(
                           order)),
                       (r'^save/$', login_check(save)),  # save new object
                       # update object
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(
                           save)),

                       # quick filter
Exemplo n.º 24
0
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import patterns, url
from gestorpsi.frontend.views import start, settings
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
    # index
    url(r'^$',
        login_check(start),
        name='frontend-home'), #list objects

    # settings of schedule
    url(
        r'^settings/$', 
        login_check(settings), 
        name='frontend-settings'
    ),
)
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.profile.client_views import *
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
                       url(r'^referral/$', login_check(referral_list),
                           name='profile-client-referral-list'),
                       url(r'^referral/(?P<object_id>\d+)/$', login_check(referral_home),
                           name='profile-client-referral-home'),
                       url(r'^referral/(?P<referral_id>\d+)/(?P<type>upcoming)/$',
                           login_check(referral_occurrences)),  # upcoming occurences
                       url(r'^referral/(?P<referral_id>\d+)/(?P<type>past)/$',
                           login_check(referral_occurrences)),  # past occurences
                       url(r'^referral/(?P<referral_id>\d+)/messages/$',
                           login_check(referral_messages)),  # referral messages
                       url(r'^messages/chat/(?P<object_id>\d+)/$',
                           login_check(occurrence_chat), name='profile-client-occurrence-chat'),
                       url(r'^messages/chat/update/(?P<messagetopic_id>\d+)/(?P<lastmessage_id>\d+)/$',
                           login_check(update_chat_message)),
                       url(r'^messages/chat/exit/(?P<messagetopic_id>\d+)/$',
                           login_check(exit_chat)),
Exemplo n.º 26
0
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.authentication.views import login_check
from gestorpsi.referral.forms import ReferralForm
from gestorpsi.schedule.forms import ScheduleOccurrenceForm, ScheduleSingleOccurrenceForm, OccurrenceConfirmationForm

from gestorpsi.schedule.views import occurrence_view, schedule_settings, add_event, schedule_index, schedule_occurrence_listing_today, event_view, daily_occurrences, today_occurrences, occurrence_confirmation_form, occurrence_family_form, occurrence_employee_form, occurrence_group, week_view, week_view_table, occurrence_confirmation_form_group, diary_view, occurrence_print_receipt

urlpatterns = patterns('',
    url(
        r'^(?:calendar/)?$', 
        login_check(schedule_index), 
        name='schedule-index'
    ),
    # diary view
    url(
        r'^diary/$', 
        login_check(diary_view),
        name='schedule-diary-view'
    ),

    # settings of schedule
    url(
        r'^settings/$', 
        login_check(schedule_settings), 
        name='schedule-settings'
    ),
Exemplo n.º 27
0
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.service.views import select_area, index, form, save, disable, list, list_professional, order, queue, client_list_index
from gestorpsi.authentication.views import login_check
from gestorpsi.service.views import group_form, group_list

urlpatterns = patterns(
    '',
    (r'^$', login_check(index)),
    (r'^page(?P<page>(\d)+)$', login_check(list)),  #list objects
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/listprofessional/$',
     login_check(list_professional)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$',
     login_check(order)),
    (r'^add/$', login_check(select_area)),
    (r'^add/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
     login_check(select_area)),
    (r'^form/$', login_check(form)),
    (r'^form/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
     login_check(form)),
    (r'^save/$', login_check(save)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$',
     login_check(save)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/queue/$',
Exemplo n.º 28
0
# -*- coding: utf-8 -*-

"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import patterns, url
from gestorpsi.authentication.views import login_check
from gestorpsi.financial.views import receive_form

urlpatterns = patterns('',
    url(r'^receive/(?P<obj>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(receive_form), name='financial-receive-form'), 
)
Exemplo n.º 29
0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.place.views import index, form, save, list,\
    room_form, room_save, room_list, room_index, room_order, place_order
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    # places
    (r'^$', login_check(index)),
    (r'^page(?P<page>(\d)+)/$', login_check(list),
        {'deactive': False}),  # list objects
    (r'^add/$', login_check(form)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$', login_check(place_order)),
    (r'^save/$', login_check(save)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save)),
    (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$',
     login_check(list)),  # quick filter
    (r'^filter/(?P<filter>\w+)/page(?P<page>(\d)+)/$',
     login_check(list)),  # quick search
    (r'^filter/(?P<filter>\w+)/$', login_check(list),
     {'no_paging': True}),  # quick search

    # deactivated places
Exemplo n.º 30
0
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.users.views import index, list, form, create_user, update_user, update_pwd, set_form_user, add, order, username_is_available, update_email
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
    (r'^$', login_check(index)),
    (r'^page(?P<page>(\d)+)$', login_check(list)),
    (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$', login_check(list)), # quick filter
    (r'^filter/(?P<filter>[a-zA-Z ]+)/page(?P<page>(\d)+)/$', login_check(list)), # quick search
    (r'^filter/(?P<filter>[a-zA-Z ]+)/$', login_check(list), {'no_paging': True}), # quick search
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/add/$', login_check(form_new_user)), WILL BE DELETED
    (r'^save/$', login_check(create_user)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)),
    (r'^add/$', login_check(add)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(update_user)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/savepwd/$', login_check(update_pwd)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/saveemail/$', login_check(update_email)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/setformuser/$', login_check(set_form_user)),
    (r'^(?P<profile_id>(\d)+)/order/$', login_check(order)),
    #url(r'^(?P<profile_id>(\d)+)/delete/$', login_check(delete), name='user_delete'),
    (r'^check/(?P<user>.*)/$', login_check(username_is_available)),  #check username
Exemplo n.º 31
0
# -*- coding: utf-8 -*-

"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.authentication.views import login_check
from gestorpsi.referral.views import referral_off, client_referrals


urlpatterns = patterns('gestorpsi.referral.views',
    (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(client_referrals)), ## MOVED TO CLIENT VIEW
    (r'^(?P<object_id>\d+)/off/$', login_check(referral_off)),
)
Exemplo n.º 32
0
from gestorpsi.careprofessional.views import index, form, list, order, save, client_list
from gestorpsi.authentication.views import login_check

professional_index = { 'template_name':'careprofessional/careprofessional_list.html' }
professional_list_deactive = { 'deactive':True }
professional_form = { 'template_name':'careprofessional/careprofessional_form.html', }

student_index = { 'template_name':'careprofessional/student_list.html', }
student_index_deactive = { 'template_name':'careprofessional/student_list.html', 'deactive':True }
student_list = { 'is_student':True, }
student_list_deactive = { 'is_student':True, 'deactive':True }
student_form = { 'template_name':'careprofessional/student_form.html', 'is_student':True, }
student_save = { 'is_student':True, }

urlpatterns = patterns('',
    url(r'^$', login_check(index), professional_index, name='careprofessional-index'),
    url(r'^page(?P<page>(\d)+)$', login_check(list)),
    url(r'^deactive/$', login_check(index), professional_list_deactive, name='careprofessional-deactive' ),
    url(r'^page(?P<page>(\d)+)/deactive/$', login_check(list), professional_list_deactive ),
    url(r'^add/$', login_check(form), professional_form, name='careprofessional-add'),
    url(r'^save/$', login_check(save), name='careprofessional-save-new'),
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form), professional_form, name='careprofessional-form'),
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save), name='careprofessional-save-update'),
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$', login_check(order), name='professional_order'),
    url(r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$', login_check(list)),
    url(r'^initial/(?P<initial>[a-zA-Z])/deactive/$', login_check(list), {'deactive':True} ),
    url(r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/deactive/$', login_check(list), professional_list_deactive ),
    url(r'^filter/(?P<filter>\w+)/$', login_check(list)),
    url(r'^filter/(?P<filter>\w+)/page(?P<page>(\d)+)/$', login_check(list)),
    url(r'^filter/(?P<filter>\w+)/deactive/$', login_check(list), {'no_paging': True, 'deactive':True } ),
    url(r'^filter/(?P<filter>\w+)/page(?P<page>(\d)+)/deactive/$', login_check(list), {'deactive':True} ),
Exemplo n.º 33
0
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.authentication.views import login_check

from gestorpsi.covenant.views import index, form, list_filter, list_json, order

urlpatterns = patterns('',
    url(r'^$', login_check(index), name='covenant-index'), # index, active list
    url(r'^deactive/$', login_check(index), {'active':False}, name='covenant-list-deactive'), # deactive list
    url(r'^add/$', login_check(form), name='covenant-add'), # add
    url(r'^(?P<obj>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form), name='covenant-edit'), # edit 
    # list
    url(r'^list/active/$', login_check(list_filter)), # return all ACTIVE covenant of organization
    url(r'^list/deactive/$', login_check(list_filter), {'active':False}), # return all DEACTIVE covenant of organization
    # quick search
    url(r'^list/active/(?P<filter>\w+)/$', login_check(list_filter)), # search method get
    url(r'^list/deactive/(?P<filter>\w+)/$', login_check(list_filter)), # search method get
    # active or deactive
    url(r'^(?P<obj>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$', login_check(order), name='covenant-order' ), # return all covenant of service

    # json
    # referral form client
    url(r'^list/service/(?P<service>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(list_json) ), # return all covenant of service
Exemplo n.º 34
0
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.authentication.views import login_check

from gestorpsi.covenant.views import index, form, list_filter, list_json

urlpatterns = patterns('',
    url(r'^$', login_check(index), name='covenant-index'), # index, active list
    url(r'^deactive/$', login_check(index), {'active':False}, name='covenant-list-deactive'), # deactive list
    url(r'^add/$', login_check(form), name='covenant-add'), # add
    url(r'^(?P<obj>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form), name='covenant-edit'), # edit 
    # list
    url(r'^list/active/$', login_check(list_filter)), # return all ACTIVE covenant of organization
    url(r'^list/deactive/$', login_check(list_filter), {'active':False}), # return all DEACTIVE covenant of organization
    # quick search
    url(r'^list/active/(?P<filter>\w+)/$', login_check(list_filter)), # search method get
    url(r'^list/deactive/(?P<filter>\w+)/$', login_check(list_filter)), # search method get
    # referral form client
    url(r'^list/service/(?P<service>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(list_json) ), # return all covenant of service
)
Exemplo n.º 35
0
"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.frontend.views import start
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
                       (r'^$', login_check(start)),  # list objects
                       #(r'^page(?P<page>(\d)+)$', login_check(list)), #list objects
                       #(r'^add/$', login_check(form)), #new object form
                       #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)),
                       #(r'^save/$', login_check(save)), #save new object
                       #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save)),  #update object
                       #(r'^(?P<object_id>\d+)/delete/$', login_check(delete)), # delete object
                       #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/delete/$', login_check(delete)),  #delete object
                       #(r'^print/$', login_required(print_list)), # print client list
                       #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/print/$', login_required(print_record)),  # print record
                       )
Exemplo n.º 36
0
# -*- coding: utf-8 -*-

"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.authentication.views import login_check
from gestorpsi.referral.views import referral_off, client_referrals


urlpatterns = patterns('gestorpsi.referral.views',
    (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',  # noqa
        login_check(client_referrals)),  # MOVED TO CLIENT VIEW
    (r'^(?P<object_id>\d+)/off/$', login_check(referral_off)),
)
Exemplo n.º 37
0
# -*- coding: utf-8 -*-

"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from gestorpsi.socioeconomic.views import socioeconomic_home, socioeconomic_transportation, socioeconomic_transportation_save
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
    (r'^$', login_check(index)), #list objects
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/$', login_check(socioeconomic_home)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/$', login_check(socioeconomic_transportation)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/(?P<transportation_id>(\d)+)/$', login_check(socioeconomic_transportation)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/save/$', login_check(socioeconomic_transportation_save)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/save/(?P<transportation_id>(\d)+)/$', login_check(socioeconomic_transportation_save)),
)
Exemplo n.º 38
0
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.upload.views import send, attach_form, attach_save
from gestorpsi.referral.models import ReferralAttach, Referral
from django.contrib.auth.decorators import login_required
from gestorpsi.authentication.views import login_check


urlpatterns = patterns('',
                       (r'^send/$', login_required(send)),
                       # new attach
                       (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/referral/(?P<referral_id>\d+)/$', login_check(
                           attach_form)),
                       # update attach
                       (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/referral/(?P<referral_id>\d+)/attach/(?P<attach_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(attach_form)),
                       # save post form, new or update
                       (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/referral/(?P<referral_id>\d+)/save/$', login_check(
                           attach_save)),
                       (r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/referral/(?P<referral_id>\d+)/attach/(?P<attach_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(attach_save)),
                       )
Exemplo n.º 39
0
from django.conf.urls.defaults import patterns, url
from django.contrib.auth.decorators import login_required
from gestorpsi.client.views import index, list, form, save, client_print, \
        organization_clients, home, order, referral_list, referral_home, \
        referral_form, referral_discharge_form, schedule_daily, schedule_add, \
        occurrence_view, referral_occurrences, referral_int_form, referral_queue, \
        referral_queue_save, referral_queue_remove, referral_ext_form, referral_ext_save, family, family_form, \
        company_related, company_related_form, referral_occurrences_action, list_by_filter
from gestorpsi.online_messages.views import referral_messages, occurrence_chat, chat_message, update_chat_message, exit_chat, new_message_topic, topic_messages, new_topic_message, chat_messages_history
from gestorpsi.authentication.views import login_check
from gestorpsi.organization.views import list_prof_org

urlpatterns = patterns('',

    # client list index and paginator
    url(r'^$', login_check(index), name='client-index'),
    url(r'^list/$', login_check(list), name='client-list'), #list objects
    url(r'^page(?P<page>(\d)+)$', login_check(list), name='client-list-pagination'), #list objects
    #(r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$', login_check(list)), # quick filter
    url(r'^deactive/$', login_check(index), {'deactive': True}, name='client-list-deactive' ), #list objects
    url(r'^list/deactive/$', login_check(list), {'deactive': True}), #list objects
    # client search person family, return JSON
    (r'^filter/(?P<filter>\w+)/$', login_check(list), {'no_paging': True, 'retrn':'json'}), # quick search
    (r'^filterby/$', login_check(list_by_filter)), # filter by URL, pre-formated filter by url, link.
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$', login_check(order)),
    # client form
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/home/$', login_check(home), name='client-home'),
    url(r'^add/$', login_check(form), name='client-form-new'), #new object form
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/form/$', login_check(form), name='client-form'), #render form
    url(r'^save/$', login_check(save), name='client-form-save'), #save new object
    url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save), name='client-form-save'), #update client
Exemplo n.º 40
0
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.authentication.views import login_check

from gestorpsi.covenant.views import index, form, list_filter, list_json, order

urlpatterns = patterns('',
                       # index, active list
                       url(r'^$', login_check(index), name='covenant-index'),
                       url(r'^deactive/$', login_check(index),
                           {'active': False}, name='covenant-list-deactive'),  # deactive list
                       url(r'^add/$', login_check(form),
                           name='covenant-add'),  # add
                       url(r'^(?P<obj>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
                           login_check(form), name='covenant-edit'),  # edit
                       # list
                       # return all ACTIVE covenant of organization
                       url(r'^list/active/$', login_check(list_filter)),
                       # return all DEACTIVE covenant of organization
                       url(r'^list/deactive/$',
                           login_check(list_filter), {'active': False}),
                       # quick search
                       url(r'^list/active/(?P<filter>\w+)/$',
                           login_check(list_filter)),  # search method get
Exemplo n.º 41
0
from django.contrib.auth.decorators import login_required
from gestorpsi.client.views import index, list, form, save, client_print, \
        organization_clients, add, home, order, referral_save, referral_list, referral_home, \
        referral_form, referral_discharge_form, schedule_daily, schedule_add, \
        occurrence_view, referral_occurrences, referral_plus_form, referral_plus_save, referral_queue, \
        referral_queue_save, referral_queue_remove, referral_ext_form, referral_ext_save, family, family_form, \
        add_company, company_related, company_related_form
from gestorpsi.online_messages.views import referral_messages, occurrence_chat, chat_message, update_chat_message, exit_chat, client_messages, new_message_topic, topic_messages, new_topic_message, chat_messages_history
from gestorpsi.authentication.views import login_check
from gestorpsi.organization.views import list_prof_org

urlpatterns = patterns(
    '',

    # client list index and paginator
    (r'^$', login_check(index)),  #index
    (r'^list/$', login_check(list)),  #list objects
    (r'^page(?P<page>(\d)+)$', login_check(list)),  #list objects
    #(r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$', login_check(list)), # quick filter
    url(r'^deactive/$', login_check(index), {'deactive': True}),  #list objects
    url(r'^list/deactive/$', login_check(list),
        {'deactive': True}),  #list objects

    # client search person family, return JSON
    #(r'^filter/(?P<filter>\w+)/page(?P<page>(\d)+)/$', login_check(list), {'no_paging': True, 'retrn':'json'}), # quick search
    (r'^filter/(?P<filter>\w+)/$', login_check(list), {
        'no_paging': True,
        'retrn': 'json'
    }),  # quick search
    (r'^add/$', login_check(add)),  #new object form
    (r'^add/company/$', login_check(add_company)),  #new object form
Exemplo n.º 42
0
# -*- coding: utf-8 -*-

"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import patterns, url
from gestorpsi.organization.views import form, save, shortname_is_available, signature_save, suspension
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
    (r'^$', login_check(form)),
    (r'^save/$', login_check(save)),
    (r'^check/(?P<short>.*)/$', (shortname_is_available)),  #check short name in the registration

    url(r'^signature/$', login_check(signature_save), name='organization-signature'),
    url(r'^suspension/$', login_check(suspension), name='organization-suspension'),
)
Exemplo n.º 43
0
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.frontend.views import start
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    url(r'^$', login_check(start), name='frontend-home'),  #list objects
    #url(r'^(?P<month>\d+)/month/$', login_check(start), name="frontend-month"), # list objects
    #(r'^page(?P<page>(\d)+)$', login_check(list)), #list objects
    #(r'^add/$', login_check(form)), #new object form
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)),
    #(r'^save/$', login_check(save)), #save new object
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save)),  #update object
    #(r'^(?P<object_id>\d+)/delete/$', login_check(delete)), # delete object
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/delete/$', login_check(delete)),  #delete object
    #(r'^print/$', login_required(print_list)), # print client list
    #(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/print/$', login_required(print_record)),  # print record
)
Exemplo n.º 44
0
    'template_name': 'careprofessional/careprofessional_list.html'}
professional_list_deactive = {'deactive': True}
professional_form = {
    'template_name': 'careprofessional/careprofessional_form.html', }

student_index = {'template_name': 'careprofessional/student_list.html', }
student_index_deactive = {
    'template_name': 'careprofessional/student_list.html', 'deactive': True}
student_list = {'is_student': True, }
student_list_deactive = {'is_student': True, 'deactive': True}
student_form = {
    'template_name': 'careprofessional/student_form.html', 'is_student': True, }
student_save = {'is_student': True, }

urlpatterns = patterns('',
                       url(r'^$', login_check(index), professional_index),
                       url(r'^page(?P<page>(\d)+)$', login_check(list)),
                       url(r'^deactive/$', login_check(index),
                           professional_list_deactive),
                       url(r'^page(?P<page>(\d)+)/deactive/$',
                           login_check(list), professional_list_deactive),
                       url(r'^add/$', login_check(form), professional_form),
                       url(r'^save/$', login_check(save)),
                       url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
                           login_check(form), professional_form, name='professional_form'),
                       url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(
                           save)),
                       url(r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$',
                           login_check(order), name='professional_order'),
                       url(r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$',
                           login_check(list)),
Exemplo n.º 45
0
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.place.views import index, form, save, list, room_form, room_save, room_list, room_index, room_order, place_order
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    # places
    (r'^$', login_check(index)),
    (r'^page(?P<page>(\d)+)/$', login_check(list), {
        'deactive': False
    }),  #list objects
    (r'^add/$', login_check(form)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
     login_check(form)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$',
     login_check(place_order)),
    (r'^save/$', login_check(save)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$',
     login_check(save)),
    (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$',
     login_check(list)),  # quick filter
    (r'^filter/(?P<filter>\w+)/page(?P<page>(\d)+)/$',
     login_check(list)),  # quick search
Exemplo n.º 46
0
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.place.views import index, form, save, list, room_form, room_save, room_list, room_index, room_order, place_order
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
                       # places
                       (r'^$', login_check(index)),
                       (r'^page(?P<page>(\d)+)/$', login_check(list),
                        {'deactive': False}),  # list objects
                       (r'^add/$', login_check(form)),
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(
                           form)),
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$',
                           login_check(place_order)),
                       (r'^save/$', login_check(save)),
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(
                           save)),
                       # quick filter
                       (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$',
                           login_check(list)),
                       (r'^filter/(?P<filter>\w+)/page(?P<page>(\d)+)/$',
                           login_check(list)),  # quick search
Exemplo n.º 47
0
from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from gestorpsi.client.views import index, list, form, save, client_print, \
    organization_clients, add, home, order, referral_save, referral_list, referral_home, \
    referral_form, referral_discharge_form, schedule_daily, schedule_add, \
    occurrence_view, referral_occurrences, referral_plus_form, referral_plus_save, referral_queue, \
    referral_queue_save, referral_queue_remove, referral_ext_form, referral_ext_save, family, family_form, \
    add_company, company_related, company_related_form, referral_occurrences_action
from gestorpsi.online_messages.views import referral_messages, occurrence_chat, chat_message, update_chat_message, exit_chat, client_messages, new_message_topic, topic_messages, new_topic_message, chat_messages_history
from gestorpsi.authentication.views import login_check
from gestorpsi.organization.views import list_prof_org

urlpatterns = patterns('',

                       # client list index and paginator
                       (r'^$', login_check(index)),  # index
                       (r'^list/$', login_check(list)),  # list objects
                       (r'^page(?P<page>(\d)+)$', login_check(list)),  # list objects
                       #(r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$', login_check(list)), # quick filter
                       url(r'^deactive/$', login_check(index),
                           {'deactive': True}),  # list objects
                       url(r'^list/deactive/$', login_check(list),
                           {'deactive': True}),  # list objects

                       # client search person family, return JSON
                       #(r'^filter/(?P<filter>\w+)/page(?P<page>(\d)+)/$', login_check(list), {'no_paging': True, 'retrn':'json'}), # quick search
                       (r'^filter/(?P<filter>\w+)/$', login_check(list),
                           {'no_paging': True, 'retrn': 'json'}),  # quick search

                       (r'^add/$', login_check(add)),  # new object form
                       # new object form
Exemplo n.º 48
0
"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.profile.views import form, save, form_careprofessional, save_careprofessional, change_pass, add_availability
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    (r'^$', login_check(form)),  #profile form
    (r'^careprofessional/$',
     login_check(form_careprofessional)),  #professional profile form
    (r'^client/', include('gestorpsi.profile.client_urls')),
    (r'^save/$', login_check(save)),  #save new object
    (r'^save/careprofessional/$',
     login_check(save_careprofessional)),  #save new object
    (r'^chpass/$', login_check(change_pass)),  #change password
    (r'^add_availability/$', login_check(add_availability)),  #change password
)
Exemplo n.º 49
0
    'form_class': ReportSaveAdmissionForm,
    'view': 'admission',
}

referral_save = {
    'form_class': ReportSaveReferralForm,
    'view': 'referral',
}

receive_save = {
    'form_class': ReportSaveReceiveForm,
    'view': 'receive',
}

urlpatterns = patterns('',
    url(r'^$', login_check(index)),
    url(r'^date/$', login_check(report_date)),
    
    # statistics views
    url(r'^admission/$', login_check(admission_data), {'template':'report/report_table.html'}),
    url(r'^admission/demographic/$', login_check(demographic_data), {'view':'admission'}),
    #url(r'^admission/chart/$', login_check(chart), {'view':'admission'}),
    #url(r'^referral/chart/$', login_check(chart), {'view':'referral'}),
    url(r'^referral/$', login_check(referral_data), {'template':'report/report_table.html'}),
    url(r'^receive/$', login_check(receive_data) ),
    url(r'^event/$', login_check(event_data) ),

    ## list of clients from admissions
    url(r'^admission/client/overview/total/$', login_check(report_client_list), {'report_class': ReportAdmission, 'view':'overview', 'filter':'total'}, name='admission_client_overview_total'),
    url(r'^admission/client/overview/individuals/$', login_check(report_client_list), {'report_class': ReportAdmission, 'view':'overview', 'filter':'individuals'}, name='admission_client_overview_individuals'),
    url(r'^admission/client/overview/companies/$', login_check(report_client_list), {'report_class': ReportAdmission, 'view':'overview', 'filter':'companies', }, name='admission_client_overview_companies'),
Exemplo n.º 50
0
# -*- coding: utf-8 -*-
"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import patterns, url
from gestorpsi.authentication.views import login_check
from gestorpsi.financial.views import receive_form

urlpatterns = patterns(
    '',
    url(r'^receive/(?P<obj>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
        login_check(receive_form),
        name='financial-receive-form'),
)
Exemplo n.º 51
0
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from gestorpsi.socioeconomic.views import socioeconomic_home, socioeconomic_transportation, socioeconomic_transportation_save
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    (r'^$', login_check(index)),  #list objects
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/$',
     login_check(socioeconomic_home)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/$',
     login_check(socioeconomic_transportation)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/(?P<transportation_id>(\d)+)/$',
     login_check(socioeconomic_transportation)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/save/$',
     login_check(socioeconomic_transportation_save)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/socioeconomic/transportation/save/(?P<transportation_id>(\d)+)/$',
     login_check(socioeconomic_transportation_save)),
)
Exemplo n.º 52
0
# -*- coding: utf-8 -*-
"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.authentication.views import login_check
from gestorpsi.referral.views import referral_off, client_referrals

urlpatterns = patterns(
    'gestorpsi.referral.views',
    (
        r'^client/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',  # noqa
        login_check(client_referrals)),  # MOVED TO CLIENT VIEW
    (r'^(?P<object_id>\d+)/off/$', login_check(referral_off)),
)
Exemplo n.º 53
0
# -*- coding: utf-8 -*-

"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.support.views import ticket_form
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
    (r'^ticket/form/$', login_check(ticket_form)), #form
    (r'^ticket/sent/$', 'django.views.generic.simple.direct_to_template', {'template': 'support/ticket_sent.html'}), #form sent
)
Exemplo n.º 54
0
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from gestorpsi.authentication.views import login_check
from gestorpsi.ehr.views import *

urlpatterns = patterns('',
                       # Session's URL
                       (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/session/$', login_check(
                           session_list)),
                       (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/session/(?P<session_id>\d+)/item/$',
                           login_check(session_item_html)),
                       (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/session/add/$',
                           login_check(session_form)),
                       (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/session/(?P<session_id>\d+)/$', login_check(
                           session_form)),

                       # Diagnosis's URL
                       (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/diagnosis/$',
                           login_check(diagnosis_list)),
                       (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/diagnosis/(?P<diagnosis_id>\d+)/item/$',
                           login_check(diagnosis_item_html)),
                       (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/diagnosis/add/$',
                           login_check(diagnosis_form)),
                       (r'^(?P<client_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/(?P<referral_id>\d+)/diagnosis/(?P<diagnosis_id>\d+)/$', login_check(
Exemplo n.º 55
0
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.profile.client_views import *
from gestorpsi.authentication.views import login_check

urlpatterns = patterns(
    '',
    url(r'^referral/$',
        login_check(referral_list),
        name='profile-client-referral-list'),
    url(r'^referral/(?P<object_id>\d+)/$',
        login_check(referral_home),
        name='profile-client-referral-home'),
    url(r'^referral/(?P<referral_id>\d+)/(?P<type>upcoming)/$',
        login_check(referral_occurrences)),  # upcoming occurences
    url(r'^referral/(?P<referral_id>\d+)/(?P<type>past)/$',
        login_check(referral_occurrences)),  # past occurences
    url(r'^referral/(?P<referral_id>\d+)/messages/$',
        login_check(referral_messages)),  # referral messages
    url(r'^messages/chat/(?P<object_id>\d+)/$',
        login_check(occurrence_chat),
        name='profile-client-occurrence-chat'),
    url(
        r'^messages/chat/update/(?P<messagetopic_id>\d+)/(?P<lastmessage_id>\d+)/$',
Exemplo n.º 56
0
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.authentication.views import login_check
from gestorpsi.service.views import select_area, index, form, save, disable, list, list_professional, order, queue, client_list_index, list_filter_covenant, group_form, group_list

urlpatterns = patterns('',
                       (r'^$', login_check(index)),
                       (r'^page(?P<page>(\d)+)$', login_check(list)),  # list objects
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/listprofessional/$',
                        login_check(list_professional)),
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$', login_check(
                           order)),
                       (r'^add/$', login_check(select_area)),
                       (r'^add/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$',
                           login_check(select_area)),
                       (r'^form/$', login_check(form)),
                       (r'^form/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(
                           form)),
                       (r'^save/$', login_check(save)),
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(
                           save)),
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/queue/$', login_check(
Exemplo n.º 57
0
# -*- coding: utf-8 -*-

"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.admission.views import form, save, attach_save
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('gestorpsi.admission.views',
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(
                           form)),
                       # update object
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(
                           save)),
                       (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/attach/$',
                           login_check(attach_save)),  # attach save
                       )
Exemplo n.º 58
0
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.employee.views import index, form, save, list, order
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('',
    (r'^$', login_check(index), {'deactive':False}), # list objects active
    (r'^page(?P<page>(\d)+)/$', login_check(list), {'deactive':False}), #list objects
    (r'^add/$', login_check(form)), # new object form
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)), # edit object form
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/order/$', login_check(order)), # edit object form
    (r'^save/$', login_check(save)), # save new object
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save)), # update object

    (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/$', login_check(list)), # quick filter
    (r'^filter/(?P<filter>[a-zA-Z ]+)/page(?P<page>(\d)+)/$', login_check(list)), # quick search
    (r'^filter/(?P<filter>[a-zA-Z ]+)/$', login_check(list), {'no_paging': True}), # quick search

    # DEACTIVE
    (r'^initial/(?P<initial>[a-zA-Z])/page(?P<page>(\d)+)/deactive/$', login_check(list), {'deactive':True} ), # quick filter
    (r'^initial/(?P<initial>[a-zA-Z])/deactive/$', login_check(list), {'deactive':True} ), # quick filter
    (r'^filter/(?P<filter>[a-zA-Z]+)/page(?P<page>(\d)+)/deactive/$', login_check(list), {'deactive':True} ), # quick search
Exemplo n.º 59
0
# -*- coding: utf-8 -*-

"""
Copyright (C) 2008 GestorPsi

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
"""

from django.conf.urls.defaults import *
from gestorpsi.admission.views import form, save, attach_save
from gestorpsi.authentication.views import login_check

urlpatterns = patterns('gestorpsi.admission.views',
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)),
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save)),  #update object
    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/attach/$', login_check(attach_save)),  #attach save
)