~mattbrown/sahana-eden/haiti-dev

« back to all changes in this revision

Viewing changes to controllers/admin.py

  • Committer: Matt Brown
  • Date: 2010-01-25 01:21:50 UTC
  • Revision ID: matt@mattb.net.nz-20100125012150-4kn9tmghbh5l3ksi
* Add cron script to import lines.
* Fix validation bugs in the processing cron job
  - Don't pass a session or the code will expect a matching formkey.
  - Pass in matching formname parameters.
* Display list of lines and their states for failed jobs.
* Add view for imported jobs with details of each line's state.

Show diffs side-by-side

added added

removed removed

Lines of Context:
569
569
        num_lines = db(query).count()
570
570
        return dict(num_lines=num_lines, update_speed=60)
571
571
 
572
 
    if job.status == 'processed':
 
572
    if job.status in ['processed', 'failed', 'imported']:
573
573
        def _include_field(f):
574
574
            if f in ['import_job']:
575
575
                return False