How to use the py4web.core.Field function in py4web

To help you get started, we’ve selected a few py4web examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github web2py / py4web / py4web / utils / auth_plugins / oauth2server.py View on Github external
def define_tables(self):
        db = self.auth.db
        db.define_table(
            "oauth2",
            Field("registrant_id", "reference auth_user"),
            Field("client_secret"),
        )
        db.commit()
github web2py / py4web / py4web / utils / auth_plugins / oauth2server.py View on Github external
def define_tables(self):
        db = self.auth.db
        db.define_table(
            "oauth2",
            Field("registrant_id", "reference auth_user"),
            Field("client_secret"),
        )
        db.commit()