Code

Changes between Version 31 and Version 32 of GoFlow


Ignore:
Timestamp:
02/08/08 13:07:06 (6 years ago)
Author:
goflow@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GoFlow

    v31 v32  
    100100INSTALLED_APPS = ( 
    101101    .... 
    102     #'django.contrib.workflow',    # uses the workflow engine as a django contrib 
    103     'django_contrib.workflow',     # alternative if workflow engine is not installed as a contrib 
    104     'leavedemo.leave',            # the leave application 
     102    'leavedemo.leave',     # the leave application 
     103    'goflow.workflow',     # goflow workflow engine 
    105104) 
    106105}}} 
     
    146145{{{ 
    147146    (r'^leavedemo/request/$', 
    148      'django.contrib.workflow.applications.start_application', 
     147     'goflow.workflow.applications.start_application', 
    149148     {'process_name':'leave', 'form_class':RequestForm, 'template':'start_leave.html'}), 
    150149}}} 
     
    155154Some urls are workflow standard tasks,  managed by the engine itself; like CRUD urls managed by admin,  the workflow standard tasks  are available with the following line in the ''urls.py'' file: 
    156155{{{ 
    157     (r'^leavedemo/', include('django.contrib.workflow.urls')), 
     156    (r'^leavedemo/', include('goflow.workflow.urls')), 
    158157}}} 
    159158 
    160159So the workflow engine provides handlers and default templates below: 
    161160{{{ 
    162     (r'^mywork/$', 'django.contrib.workflow.views.mywork', {'template':'mywork.html'}), 
    163     (r'^otherswork/$', 'django.contrib.workflow.views.otherswork', {'template':'otherswork.html'}), 
    164     (r'^otherswork/instancehistory/$', 'django.contrib.workflow.views.instancehistory', {'template':'instancehistory.html'}), 
    165     (r'^myrequests/$', 'django.contrib.workflow.views.myrequests', {'template':'myrequests.html'}), 
    166     (r'^myrequests/instancehistory/$', 'django.contrib.workflow.views.instancehistory', {'template':'instancehistory.html'}), 
    167     (r'^mywork/activate/$', 'django.contrib.workflow.views.activate', {'template':'activate.html'}), 
    168     (r'^mywork/complete/$', 'django.contrib.workflow.views.complete', {'template':'complete.html'}), 
     161    (r'^mywork/$', 'goflow.workflow.views.mywork', {'template':'mywork.html'}), 
     162    (r'^otherswork/$', 'goflow.workflow.views.otherswork', {'template':'otherswork.html'}), 
     163    (r'^otherswork/instancehistory/$', 'goflow.workflow.views.instancehistory', {'template':'instancehistory.html'}), 
     164    (r'^myrequests/$', 'goflow.workflow.views.myrequests', {'template':'myrequests.html'}), 
     165    (r'^myrequests/instancehistory/$', 'goflow.workflow.views.instancehistory', {'template':'instancehistory.html'}), 
     166    (r'^mywork/activate/$', 'goflow.workflow.views.activate', {'template':'activate.html'}), 
     167    (r'^mywork/complete/$', 'goflow.workflow.views.complete', {'template':'complete.html'}), 
    169168    (r'^cron/$','django.contrib.workflow.views.cron'), 
    170169}}}