Code

Changes between Version 33 and Version 34 of GoFlow


Ignore:
Timestamp:
02/10/08 14:43:21 (6 years ago)
Author:
spango <spango@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GoFlow

    v33 v34  
    155155}}} 
    156156 
    157 ''next soon ...'' 
     157==== Simple info application ==== 
     158the only parameter is a template; this application just shows an inf panel to a user. 
     159{{{ 
     160    (r'^leave/finalinfo/$', 'goflow.workflow.applications.simple_application', {'template':'finalinfo.html'}), 
     161}}} 
     162 
     163 
     164==== Form application ==== 
     165this application displays a form to the user: by clicking on a submit button, the activity is terminated with 
     166 the instance condition set to the submit button value (label displayed) 
     167{{{ 
     168    (r'^leave/checkstatus/$', 'goflow.workflow.applications.application_form', {'form_class':ApprovalForm, 
     169                                                                                'template':'checkstatus.html', 
     170                                                                                'submit_name':'approval'}), 
     171}}} 
     172 
     173==== Custom applications ==== 
     174for more advanced usages, you may write your own applications: for this, take a look at the application form code (see above) and copy-paste the code in your project (in an applications.py file) and customize it; one advantage is that the urls.py file can be quite simpler (less parameters on the application url line). 
     175 
    158176 
    159177=== workflow urls ===