(self, curs, name, args, eclass)
return elem_list
Fetch element(s) from db.
Fetch element(s) from db.
Fetch element ( s ) from db .
def _load_elem(self, curs, name, args, eclass):
        """Fetch element(s) from db."""
        elem_list = []
        #print "Loading %s, name=%s, args=%s" % (repr(eclass), repr(name), repr(args))
        sql = eclass.get_load_sql(curs.connection.server_version)
        curs.execute(sql % args)
        for row in curs.fetchall():
            elem_list.append(eclass(name, row))
        return elem_list
def _load_elem ( self , curs , name , args , eclass ) : elem_list = [ ] #print "Loading %s, name=%s, args=%s" % (repr(eclass), repr(name), repr(args)) sql = eclass . get_load_sql ( curs . connection . server_version ) curs . execute ( sql % args ) for row in curs . fetchall ( ) : elem_list . append ( eclass ( name , row ) ) return elem_list