server/sources/storages.py
changeset 9463 d62e13eba033
parent 8900 010a59e12d89
child 9468 39b7a91a3f4c
equal deleted inserted replaced
9462:375fc1868b11 9463:d62e13eba033
   234 
   234 
   235     def current_fs_path(self, entity, attr):
   235     def current_fs_path(self, entity, attr):
   236         """return the current fs_path of the attribute, or None is the attr is
   236         """return the current fs_path of the attribute, or None is the attr is
   237         not stored yet.
   237         not stored yet.
   238         """
   238         """
   239         sysource = entity._cw.cnxset.source('system')
   239         sysource = entity._cw.repo.system_source
   240         cu = sysource.doexec(entity._cw,
   240         cu = sysource.doexec(entity._cw,
   241                              'SELECT cw_%s FROM cw_%s WHERE cw_eid=%s' % (
   241                              'SELECT cw_%s FROM cw_%s WHERE cw_eid=%s' % (
   242                              attr, entity.cw_etype, entity.eid))
   242                              attr, entity.cw_etype, entity.eid))
   243         rawvalue = cu.fetchone()[0]
   243         rawvalue = cu.fetchone()[0]
   244         if rawvalue is None: # no previous value
   244         if rawvalue is None: # no previous value