'Configure the table (e.g. CRUD strings)'

@staticmethod
def _configure(tablename):

    s3db = current.s3db
    ttable = s3db.s3_table
    query = ((ttable.name == tablename) & (ttable.deleted != True))
    row = current.db(query).select(ttable.title, ttable.settings, limitby=(0, 1)).first()
    if row:
        title = row.title
        if title:
            current.response.s3.crud_strings[tablename] = Storage(title_list=current.T(title))
        settings = row.settings
        if settings:
            config = {}
            crud_fields = settings.get('form')
            if crud_fields:
                try:
                    crud_form = S3SQLCustomForm(**crud_fields)
                except:
                    pass
                else:
                    config['crud_form'] = crud_form
            subheadings = settings.get('subheadings')
            if subheadings:
                config['subheadings'] = subheadings
            if config:
                s3db.configure(tablename, **config)
