def resource(tablename, *args, **kwargs): """ Wrapper for the S3Resource constructor to realize the global s3db.resource() method """ return S3Resource(tablename, *args, **kwargs)
def resource(cls, prefix, name=None, **attr): return S3Resource(prefix, name=name, **attr)
def resource(table, **attr): return S3Resource(table, **attr)