we pass base_path, not object_path (clearification)

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2011-11-09 18:41:46 +01:00
parent b3337a18b9
commit c7d0d581b1

View file

@ -132,9 +132,9 @@ class Object(object):
"""
type_path = self.type.base_path
object_path = self.base_path
base_path = self.base_path
type_name, object_id = self.split_name(object_name)
return self.__class__(self.type.__class__(type_path, type_name), object_path, object_id=object_id)
return self.__class__(self.type.__class__(type_path, type_name), base_path, object_id=object_id)
# FIXME: still needed?
@property