示例#1
0
    def resource(tablename, *args, **kwargs):
        """
            Wrapper for the S3Resource constructor to realize
            the global s3db.resource() method
        """

        return S3Resource(tablename, *args, **kwargs)
示例#2
0
    def resource(cls, prefix, name=None, **attr):

        return S3Resource(prefix, name=name, **attr)
示例#3
0
    def resource(table, **attr):

        return S3Resource(table, **attr)