@auth.s3_requires_membership(1)
def sms_smtp_channel():

    tablename = "%s_%s" % (module, resourcename)
    table = s3db[tablename]

    table.address.label = T("Address")
    table.subject.label = T("Subject")
    table.enabled.label = T("Enabled")
    table.address.comment = DIV(_class="tooltip",
                                _title="%s|%s" % (T("Address"),
                                                  T("Email Address to which to send SMS messages. Assumes sending to phonenumber@address")))
    table.subject.comment = DIV(_class="tooltip",
                                _title="%s|%s" % (T("Subject"),
                                                  T("Optional Subject to put into Email - can be used as a Security Password by the service provider")))
    table.enabled.comment = DIV(_class="tooltip",
                                _title="%s|%s" % (T("Enabled"),
                                                  T("Unselect to disable this SMTP service")))

    # CRUD Strings
    s3.crud_strings["msg_sms_outbound_gateway"] = Storage(
        label_create=T("Create SMTP to SMS Channel"),
        title_display=T("SMTP to SMS Channel Details"),
        title_list=T("SMTP to SMS Channels"),
        title_update=T("Edit SMTP to SMS Channel"),
        label_list_button=T("List SMTP to SMS Channels"),
        label_delete_button=T("Delete SMTP to SMS Channel"),
        msg_record_created=T("SMTP to SMS Channel added"),
        msg_record_modified=T("SMTP to SMS Channel updated"),
        msg_record_deleted=T("SMTP to SMS Channel deleted"),
        msg_list_empty=T("No SMTP to SMS Channels currently registered"))

    s3db.configure(tablename,
                   update_next = URL(args=[1, "update"]))

    return s3_rest_controller()

#------------------------------------------------------------------------------
Clean the cache if it's time to do so.
dataset/ETHPy150Open sahana/eden/controllers/msg.py/sms_smtp_channel--crossover with--dataset/ETHPy150Open catap/namebench/nb_third_party/dns/resolver.py/Cache.maybe_clean