- # os.path.join ignore other paths if one starts with a slash
- filename = os.path.join(data_path, self.path[1:])
+ # XXX this tweak is only needed for old DB format, where
+ # article's paths started with a slash
+ path = self.path
+ if path.startswith('/'):
+ path = path[1:]
+ filename = os.path.join(data_path, path)