faqts : Computers : Management Systems : TCSI : Catalant : Server Development : Python

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 11 people (100%) answered Yes
Recently 9 of 9 people (100%) answered Yes

Entry

Can Bulk module in PyOsp use queries, etc, as the C++ interface?

May 22nd, 2001 11:48
Engineer TCSI,


Yes it can.  For Bulk methods Get, Set, and Delete, the second
argument is "target".  This can be either a string SQL query fragment,
or a tuple of PyOsp stub instances.
    import Osp, <unit>, Bulk
    getList = ( <unit>.<class>._attrs['<attr name 1>'],
                <unit>.<class>._attrs['<attr name 2>']  )
    return Bulk.Get( <unit>.<class>, '<where clause>', getList, 
                     None, <tomId>)