Beispiel #1
0
def testTemplates():
    print "here"
    tAdapter = templateAdapter(*dbManager.getDBConfig())

    tAdapter.connect()

    clientId = "204de18f-ed4f-11e5-8824-8c89a5c59145"

    data = {
        "name": "dummyTemplate",
        "description": "dummyTemplateDescription",
        "templateText": "dummy html webpage",
        "createDate": str(datetime.now()),
        "creator": clientId,
    }

    tAdapter.StoreTemplate(data, clientId)

    print tAdapter.ListAvaliableTemplates(clientId)
    tAdapter.disconnect()
Beispiel #2
0
def testCheckIfColumnExists():
    tAdapter = templateAdapter(*dbManager.getDBConfig())
    tAdapter.connect()
    print tAdapter.checkIfColumnExists("abcd")
    print tAdapter.checkIfColumnExists("description")
    tAdapter.disconnect()
Beispiel #3
0
def testGetColumnValueIfExistsForClient():
    tAdapter = templateAdapter(*dbManager.getDBConfig())
    tAdapter.connect()
    print tAdapter.GetColumnValueIfExistsForClient("TemplateText", "204de18f-ed4f-11e5-8824-8c89a5c59145")
    tAdapter.disconnect()