Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/w/e/Webware-for-Python-1.1.1/MiddleKit/Tests/MKObjRef.mkmodel/TestEmpty1.py   Webware-for-Python(Download)
 
    b = Bar()
    b.setFoo(f)
    store.addObject(b)
    store.saveChanges()
 
    # Test None, set, save and retrieve
    b.setFoo(None)
    store.saveChanges()
    store.clear()
    b = BarReq()
    try:
        b.setFoo(None)
    except Exception:
        pass
    else:
        NoException('b.setFoo(None) # None not allowed')
 
    try:
        b.setFoo('x')
 
    try:
        b.setFoo(Bar())
    except Exception:
        pass