Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cgscop_alfresco
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Confédération Générale des SCOP
cgscop_alfresco
Commits
552287a6
Commit
552287a6
authored
5 years ago
by
Benjamin - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[clean] clean code
parent
74003c27
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
models/alfresco_partner_files.py
+0
-2
0 additions, 2 deletions
models/alfresco_partner_files.py
tests/__init__.py
+0
-3
0 additions, 3 deletions
tests/__init__.py
tests/test_connector_alfresco.py
+0
-47
0 additions, 47 deletions
tests/test_connector_alfresco.py
with
0 additions
and
52 deletions
models/alfresco_partner_files.py
+
0
−
2
View file @
552287a6
...
@@ -31,5 +31,3 @@ class AlfrescoPartnerFiles(models.TransientModel):
...
@@ -31,5 +31,3 @@ class AlfrescoPartnerFiles(models.TransientModel):
doc
.
file_id
,
),
doc
.
file_id
,
),
'
target
'
:
'
self
'
,
'
target
'
:
'
self
'
,
}
}
This diff is collapsed.
Click to expand it.
tests/__init__.py
deleted
100644 → 0
+
0
−
3
View file @
74003c27
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from
.
import
test_connector_alfresco
This diff is collapsed.
Click to expand it.
tests/test_connector_alfresco.py
deleted
100644 → 0
+
0
−
47
View file @
74003c27
# © 2019 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import
logging
import
base64
from
odoo.tests
import
tagged
,
common
_logger
=
logging
.
getLogger
(
__name__
)
@tagged
(
'
post_install
'
,
'
-at_install
'
)
class
TestApiAlfresco
(
common
.
TransactionCase
):
def
test_read
(
self
):
print
(
"
---------- tests alfresco ----------------
"
)
alfresco
=
self
.
env
[
'
cgscop.alfresco
'
]
print
(
"
_________ Liste docs Filament _______
"
)
print
(
alfresco
.
alfresco_list_docs
(
'
LeFilament
'
))
print
(
"
_________ Liste Type _______
"
)
list_type
=
alfresco
.
alfresco_list_type
()
print
(
list_type
)
print
(
"
_________ Ajoute un dossier _______
"
)
partner
=
self
.
env
[
'
res.partner
'
].
browse
(
11
)
folder
=
alfresco
.
alfresco_create_organism
(
partner
)
print
(
folder
)
print
(
"
_________ Ajoute un fichier _______
"
)
doc_id
=
self
.
env
[
'
ir.attachment
'
].
browse
(
695
)
print
(
doc_id
)
doc
=
alfresco
.
alfresco_upload
(
doc_id
.
datas
.
decode
(
'
utf-8
'
)
)
print
(
doc
)
print
(
"
_________ Get fichier _______
"
)
print
(
alfresco
.
alfresco_get_doc
(
doc
))
print
(
"
_________ Suppression d
'
un fichier _______
"
)
print
(
alfresco
.
alfresco_remove
(
doc
))
print
(
"
_________ Suppression d
'
un dossier _______
"
)
print
(
alfresco
.
alfresco_remove
(
folder
))
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