Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/topics/data_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ Here is an example for a custom data type that needs to wrap a single text file:
super().__init__(**kwargs)

filename = os.path.basename(filepath) # Get the filename from the absolute path
self.put_object_from_file(filepath, filename) # Store the file in the repository under the given filename
self.base.repository.put_object_from_file(filepath, filename) # Store the file in the repository under the given filename
self.base.attributes.set('filename', filename) # Store in the attributes what the filename is

def get_content(self):
Expand Down
Loading