entity.py
changeset 8621 038d67f42061
parent 8535 268b6349baf3
child 8655 ab57000bff7b
equal deleted inserted replaced
8620:61c4bdd70dd8 8621:038d67f42061
   535             rql = 'INSERT %s X: %s' % (cls.__regid__, rql)
   535             rql = 'INSERT %s X: %s' % (cls.__regid__, rql)
   536         else:
   536         else:
   537             rql = 'INSERT %s X' % (cls.__regid__)
   537             rql = 'INSERT %s X' % (cls.__regid__)
   538         created = execute(rql, qargs).get_entity(0, 0)
   538         created = execute(rql, qargs).get_entity(0, 0)
   539         created._cw_update_attr_cache(attrcache)
   539         created._cw_update_attr_cache(attrcache)
   540         created.cw_attr_cache.update(attrcache)
       
   541         cls._cw_handle_pending_relations(created.eid, pendingrels, execute)
   540         cls._cw_handle_pending_relations(created.eid, pendingrels, execute)
   542         return created
   541         return created
   543 
   542 
   544     def __init__(self, req, rset=None, row=None, col=0):
   543     def __init__(self, req, rset=None, row=None, col=0):
   545         AppObject.__init__(self, req, rset=rset, row=row, col=col)
   544         AppObject.__init__(self, req, rset=rset, row=row, col=col)