/ahrm/main/urls.py

https://github.com/allweb/AHRM · Python · 202 lines · 88 code · 45 blank · 69 comment · 0 complexity · bf75aac9ab036b82658dd3be64a7d324 MD5 · raw file

  1. #####################################################################
  2. # Project: A*HRM
  3. # Title: URL patterns
  4. # Version: 0001
  5. # Last-Modified: 2009-02-26 05:36:39 (Thu, 26 April 2009)
  6. # Author: Sokha, Sin , Sanya, Mesa , Kanel (ALLWEB DEVELOPERS)
  7. # Status: Active
  8. # Type: Process
  9. # Created: 03-April-2009
  10. # Post-History: 20-April-2009
  11. ######################################################################
  12. import reports,employees_controller,departments_controller,companies_controller,users_controller,\
  13. experiences_controller,positions_controller, mainpage_controller
  14. from django.conf.urls.defaults import *
  15. urlpatterns = patterns(
  16. #MainPage
  17. 'ahrm.main',
  18. (r'^tinymce/', include('tinymce.urls')),
  19. (r'^$', 'mainpage_controller.index'),
  20. (r'index^$', 'mainpage_controller.index'),
  21. (r'^mainpage$', 'mainpage_controller.goto_mainpage'),
  22. #About AHRM
  23. (r'^about_ahrm$', 'mainpage_controller.about_ahrm'),
  24. #...more below here
  25. #Users
  26. #AUTHENTICATION
  27. (r'^logout$', 'users_controller.user_logout'),
  28. (r'^accounts/login', 'users_controller.control_login'),
  29. (r'^login/verification$', 'users_controller.submit_login'),
  30. #(CRUD)
  31. (r'^user/create/save$', 'users_controller.user_create'),
  32. (r'^user/delete/(?P<user_id>\d+)$', 'users_controller.user_delete'),
  33. (r'^user/edit/save/(?P<user_id>\d+)$', 'users_controller.user_edit'),
  34. (r'^user/changpwd$', 'users_controller.change_password'),
  35. (r'^user/pwd/update/(?P<user_id>\d+)$', 'users_controller.user_update_pwd'),
  36. #DISPLAY
  37. (r'^users/list$', 'users_controller.users_list'),
  38. (r'^user/new$', 'users_controller.user_create'),
  39. (r'^user/detail/(?P<user_id>\d+)$', 'users_controller.user_edit'),
  40. #...more below here
  41. #Companies
  42. #CRUD
  43. (r'^company/edit/(?P<com_id>\d+)$', 'companies_controller.company_edit'),
  44. (r'^company/enter/(?P<com_id>\d+)$', 'companies_controller.enter_company'),
  45. (r'^company/delete/(?P<com_id>\d+)$', 'companies_controller.company_delete'),
  46. (r'^company/new$', 'companies_controller.company_new'),
  47. (r'^company/change$', 'companies_controller.change_company'),
  48. #DISPLAY
  49. (r'^movenode/$', 'companies_controller.movenode'),
  50. (r'^viewdetail/$', 'companies_controller.viewdetail'),
  51. (r'^companies/list$', 'companies_controller.companies_list'),
  52. (r'^companies/show$', 'companies_controller.companies_show'),
  53. (r'^treedata/(?P<id>\d+)/?$', 'companies_controller.treedata'),
  54. (r'^company/structure/', 'companies_controller.company_structure'),
  55. (r'^company/initialize$', 'companies_controller.company_inititialize'),
  56. #...more below here
  57. #Employee
  58. #CRUD
  59. (r'^employee/edit/(?P<employee_id>\d+)$', 'employees_controller.employee_edit'),
  60. (r'^employee/delete/(?P<employee_id>\d+)$', 'employees_controller.employee_delete'),
  61. (r'^employee/new', 'employees_controller.employee_create'),
  62. (r'^employee/addnewpage', 'employees_controller.goto_newemployee'),
  63. #DISPLAY
  64. (r'^employees/contacts_list/pdf$', 'reports.contacts_list'),
  65. (r'^employee/search$', 'employees_controller.search_employee'),
  66. (r'^employee/personal$', 'employees_controller.goto_newemployee'),
  67. (r'^employee/contactlist$', 'employees_controller.employees_contacts_list'),
  68. #...more below here
  69. #Employee(EXPERIENCE)
  70. #CRUD
  71. (r'^employee/experience/new$', 'experiences_controller.experience_new'),
  72. (r'^employee/experience_edit/(?P<exp_id>\d+)$', 'experiences_controller.experience_edit'),
  73. (r'^employee/experience/save$', 'experiences_controller.employee_save_experience'),
  74. (r'^employee/experience_delete/(?P<exp_id>\d+)$', 'experiences_controller.experience_delete'),
  75. #DISPLAY
  76. (r'^employee/experience$', 'experiences_controller.employee_create_experience'),
  77. #...more below here
  78. #Employee(EMERGENCY)
  79. #CRUD
  80. (r'^employee/emergency/new$', 'employees_controller.employee_new_emergency'),
  81. (r'^employee/emergency/save$', 'employees_controller.employee_save_emergency'),
  82. (r'^employee/emergency/edit/(?P<emergency_id>\d+)$', 'employees_controller.employee_edit_emergency'),
  83. (r'^employee/emergency/delete/(?P<emergency_id>\d+)$', 'employees_controller.employee_delete_emergency'),
  84. #DISPLAY
  85. (r'^employee/emergency$', 'employees_controller.employee_create_emergency'),
  86. #...more below here
  87. #Employee(EDUCATION)
  88. #CRUD
  89. (r'^employee/education/new$', 'employees_controller.employee_new_education'),
  90. (r'^employee/education/save$', 'employees_controller.employee_save_education'),
  91. (r'^employee/education/delete/(?P<education_id>\d+)$', 'employees_controller.employee_delete_education'),
  92. (r'^employee/education/edit/(?P<education_id>\d+)$', 'employees_controller.employee_edit_education'),
  93. #DISPLAY
  94. (r'^employee/education$', 'employees_controller.employee_create_education'),
  95. #...more below here
  96. #Employee(REPORT)
  97. #DISPLAY
  98. (r'^employee/report/csv/(?P<id>\d+)/?$', 'reports.outputting_csv'),
  99. (r'^employee/report/pdf/(?P<id>\d+)/?$', 'reports.employee_report'),
  100. #...more below here
  101. #Employee(SKILL)
  102. #CRUD
  103. (r'^employee/skill/new$', 'employees_controller.employee_new_skill'),
  104. (r'^employee/skill/save$', 'employees_controller.employee_save_skill'),
  105. (r'^employee/skill/edit/(?P<skill_id>\d+)$', 'employees_controller.employee_edit_skill'),
  106. (r'^employee/skill/delete/(?P<skill_id>\d+)$', 'employees_controller.employee_delete_skill'),
  107. #DISPLAY
  108. (r'^employee/skill$', 'employees_controller.employee_create_skill'),
  109. #...more below here
  110. #Employee(LANGUAGES)
  111. #CRUD
  112. (r'^employee/languages/new$', 'employees_controller.employee_new_language'),
  113. (r'^employee/languages/save$', 'employees_controller.employee_save_language'),
  114. (r'^employee/languages/edit/(?P<emp_lang_id>\d+)$', 'employees_controller.employee_edit_language'),
  115. (r'^employee/languages/delete/(?P<emp_lang_id>\d+)$', 'employees_controller.employee_delete_language'),
  116. #DISPLAY
  117. (r'^employee/languages$', 'employees_controller.employee_create_language'),
  118. #...more below here
  119. #Employee(DEPARTMENT)
  120. #CRUD
  121. (r'^employee/department/new$', 'employees_controller.employee_department_new'),
  122. (r'^employee/department/save$', 'employees_controller.employee_department_save'),
  123. (r'^employee/department/edit/(?P<emp_dep_id>\d+)/?$', 'employees_controller.employee_department_edit'),
  124. (r'^employee/department/delete/(?P<emp_dep_id>\d+)/?$', 'employees_controller.employee_department_delete'),
  125. #DISPLAY
  126. (r'^employee/department$', 'employees_controller.employee_department'),
  127. #...more below here
  128. #Employee(ATTACHMENT)
  129. #CRUD
  130. (r'^employee/attachment/new$', 'employees_controller.employee_new_attachment'),
  131. (r'^employee/attachment/save$', 'employees_controller.employee_save_attachment'),
  132. (r'^employee/attachment/edit/(?P<atch_id>\d+)$', 'employees_controller.employee_edit_attachment'),
  133. (r'^employee/attachment/delete/(?P<atch_id>\d+)$', 'employees_controller.employee_delete_attachment'),
  134. #DISPLAY
  135. (r'^employee/attachment$', 'employees_controller.employee_create_attachment'),
  136. #...more below here
  137. #Departments
  138. #CRUD
  139. #(r'^$', 'departments_controller.companies_list'),
  140. (r'^department/save/$', 'departments_controller.department_save'),
  141. (r'^department/add/$', 'departments_controller.department_process'),
  142. #(r'^department/delete/$', 'departments_controller.department_delete'),
  143. (r'^department/update/$', 'departments_controller.department_update'),
  144. #DISPLAY
  145. (r'^department/(?P<dept_id>\d+)$', 'departments_controller.department_display'),
  146. #...more below here
  147. #Positions
  148. #CRUD
  149. (r'^position/save$', 'positions_controller.position_save'),
  150. (r'^position/new$', 'positions_controller.position_detail'),
  151. #(r'^position/save/edit/(?P<pos_id>\d+)$', 'views.position_save_edit'),
  152. (r'^position/edit/(?P<pos_id>\d+)$', 'positions_controller.position_edit'),
  153. (r'^position/delete/(?P<pos_id>\d+)$', 'positions_controller.position_delete'),
  154. #DISPLAY
  155. (r'^position$', 'positions_controller.positions_list'),
  156. #...more below here
  157. )