equal
deleted
inserted
replaced
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 |