'Create New Incident Report'

@staticmethod
def _create_ireport(lat, lon, text):

    s3db = current.s3db
    rtable = s3db.irs_ireport
    gtable = s3db.gis_location
    info = text.split('    ')
    name = info[(len(info) - 1)]
    category = ''
    for a in range(0, (len(info) - 1)):
        category = ((category + info[a]) + '    ')
    location_id = gtable.insert(name=('Incident:%s' % name), lat=lat, lon=lon)
    rtable.insert(name=name, message=text, category=category, location_id=location_id)
    reply = 'Incident    Report    Logged!'
    return reply
