Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
s3storage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
s3storage
Commits
ace8dbcb3fe0
Commit
ace8dbcb3fe0
authored
4 years ago
by
Elouan Martinet
Browse files
Options
Downloads
Patches
Plain Diff
[storages] Fix docstrings
parent
a6d52e881cdf
No related branches found
No related tags found
1 merge request
!21
Draft: Topic/default/callback precommit
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cubicweb_s3storage/storages.py
+1
-5
1 addition, 5 deletions
cubicweb_s3storage/storages.py
with
1 addition
and
5 deletions
cubicweb_s3storage/storages.py
+
1
−
5
View file @
ace8dbcb
...
@@ -137,10 +137,6 @@
...
@@ -137,10 +137,6 @@
"""
"""
Return the S3 key of the S3 object storing the content of attribute
Return the S3 key of the S3 object storing the content of attribute
attr of the entity.
attr of the entity.
If the given entity already has a key (eg. at entity creation time),
a new key is generated.
"""
"""
try
:
try
:
rset
=
entity
.
_cw
.
execute
(
rset
=
entity
.
_cw
.
execute
(
...
@@ -160,7 +156,7 @@
...
@@ -160,7 +156,7 @@
def
new_s3_key
(
self
,
entity
,
attr
):
def
new_s3_key
(
self
,
entity
,
attr
):
"""
Generate a new key for given entity attr.
"""
Generate a new key for given entity attr.
This implemenation just return a random UUID
"""
This implemen
t
ation just return
s
a random UUID
"""
return
str
(
uuid
.
uuid1
())
return
str
(
uuid
.
uuid1
())
def
suffixed_key
(
self
,
key
):
def
suffixed_key
(
self
,
key
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment