PEATDB/zodbtest.py
def checkdb(server=None, project=None, local=None):
    """test basic ops for the db"""
    if server != None:
        DB = PDatabase(server=server, port=8080,
                  username='farrell',
                  password='123',
                  project=project)
    else:
        DB = PDatabase(local=local)

    print DB
    #DB.listRecs()
    '''first = DB.data.keys()[0]
    rec = DB.data[first]    
    for k in rec.keys():
        print type(rec[k])'''
    print DB['userfields']
    print DB.meta

    DB.close()
    return
test basic ops for the db
test basic ops for the db
test basic ops for the db
def checkdb(server=None, project=None, local=None):
    if server != None:
        DB = PDatabase(server=server, port=8080,
                  username='farrell',
                  password='123',
                  project=project)
    else:
        DB = PDatabase(local=local)
    print DB
    print DB['userfields']
    print DB.meta
    DB.close()
    return
def checkdb ( server = None , project = None , local = None ) : if server != None : DB = PDatabase ( server = server , port = 8080 , username = 'farrell' , password = '123' , project = project ) else : DB = PDatabase ( local = local ) print DB '''first = DB.data.keys()[0]
    rec = DB.data[first]    
    for k in rec.keys():
        print type(rec[k])''' print DB [ 'userfields' ] print DB . meta DB . close ( ) return
test basic ops for the db
test basic ops for the db
"""test basic ops for the db""" #DB.listRecs() '''first = DB.data.keys()[0]
    rec = DB.data[first]    
    for k in rec.keys():
        print type(rec[k])'''
server
project
local