예제 #1
0
파일: s3model.py 프로젝트: rullmanmike/eden
    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)