Skip to content

10.0 mig external file location - #926

Closed
cmsalmeida wants to merge 18 commits into
OCA:10.0from
thinkopensolutions:10.0-mig-external_file_location
Closed

10.0 mig external file location#926
cmsalmeida wants to merge 18 commits into
OCA:10.0from
thinkopensolutions:10.0-mig-external_file_location

Conversation

@cmsalmeida

@cmsalmeida cmsalmeida commented Aug 6, 2017

Copy link
Copy Markdown

something went terrible wrong old #856

@cmsalmeida
cmsalmeida force-pushed the 10.0-mig-external_file_location branch 2 times, most recently from e623d92 to 516094a Compare August 6, 2017 01:29
@cmsalmeida cmsalmeida closed this Aug 6, 2017
@cmsalmeida
cmsalmeida force-pushed the 10.0-mig-external_file_location branch from 516094a to 0bced7b Compare August 6, 2017 01:36
Conflicts:
	external_file_location/README.rst
	external_file_location/__manifest__.py
	external_file_location/data/cron.xml
	external_file_location/demo/task_demo.xml
	external_file_location/models/attachment.py
	external_file_location/models/location.py
	external_file_location/models/task.py
	external_file_location/tests/common.py
	external_file_location/tests/mock_server.py
	external_file_location/tests/test_ftp.py
	external_file_location/tests/test_sftp.py
	external_file_location/views/attachment_view.xml
	external_file_location/views/location_view.xml
	external_file_location/views/menu.xml
	external_file_location/views/task_view.xml
@cmsalmeida cmsalmeida reopened this Aug 6, 2017
@cmsalmeida cmsalmeida closed this Aug 7, 2017
@lasley

lasley commented Aug 17, 2017

Copy link
Copy Markdown
Contributor

Hi @cmsalmeida - why close?

@eugen-don

eugen-don commented Aug 17, 2017

Copy link
Copy Markdown
Member

@cmsalmeida
I was trying to fork your fork/branch for this pr to test it on a local instance.
Can you reopen this PR

@lasley lasley reopened this Aug 17, 2017
@eugen-don

Copy link
Copy Markdown
Member

@cmsalmeida
thaks for the effort.

Gues sftpfs is changed to maybe ftpfs?

Heres some error i get when i install it:
/opt/Software/10/custom/testing/external_file_location/tasks/sftp.py", line 14, in
class SftpTask(sftpfs.SFTPFS):

Error Log:
Software Server Error
Traceback (most recent call last):
File "/opt/Software/10/srv/Software/http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/Software/10/srv/Software/http.py", line 675, in dispatch
result = self._call_function(**self.params)
File "/opt/Software/10/srv/Software/http.py", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/Software/10/srv/Software/service/model.py", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/Software/10/srv/Software/http.py", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/Software/10/srv/Software/http.py", line 933, in call
return self.method(*args, **kw)
File "/opt/Software/10/srv/Software/http.py", line 504, in response_wrap
response = f(*args, **kw)
File "/opt/Software/10/srv/addons/web/controllers/main.py", line 889, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/Software/10/srv/addons/web/controllers/main.py", line 877, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/Software/10/srv/Software/api.py", line 681, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/Software/10/srv/Software/api.py", line 672, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/Software/10/srv/Software/addons/base/module/module.py", line 410, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/Software/10/srv/Software/addons/base/module/module.py", line 484, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/opt/Software/10/srv/Software/modules/registry.py", line 82, in new
Software.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/Software/10/srv/Software/modules/loading.py", line 339, in load_modules
loaded_modules, update_module)
File "/opt/Software/10/srv/Software/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/Software/10/srv/Software/modules/loading.py", line 122, in load_module_graph
load_openerp_module(package.name)
File "/opt/Software/10/srv/Software/modules/module.py", line 367, in load_openerp_module
import('Software.addons.' + module_name)
File "/opt/Software/10/local/lib/python2.7/site-packages/gevent/builtins.py", line 93, in import
result = _import(*args, **kwargs)
File "/opt/Software/10/srv/Software/modules/module.py", line 81, in load_module
execfile(modfile, new_mod.dict)
File "/opt/Software/10/custom/testing/external_file_location/init.py", line 3, in
from . import models
File "/opt/Software/10/local/lib/python2.7/site-packages/gevent/builtins.py", line 93, in import
result = _import(*args, **kwargs)
File "/opt/Software/10/custom/testing/external_file_location/models/init.py", line 5, in
from . import location
File "/opt/Software/10/local/lib/python2.7/site-packages/gevent/builtins.py", line 93, in import
result = _import(*args, **kwargs)
File "/opt/Software/10/custom/testing/external_file_location/models/location.py", line 6, in
from ..tasks.filestore import FileStoreTask
File "/opt/Software/10/local/lib/python2.7/site-packages/gevent/builtins.py", line 93, in import
result = _import(*args, **kwargs)
File "/opt/Software/10/custom/testing/external_file_location/tasks/init.py", line 2, in
from . import sftp
File "/opt/Software/10/local/lib/python2.7/site-packages/gevent/builtins.py", line 93, in import
result = _import(*args, **kwargs)
File "/opt/Software/10/custom/testing/external_file_location/tasks/sftp.py", line 14, in
class SftpTask(sftpfs.SFTPFS):
NameError: name 'sftpfs' is not defined

@florian-dacosta

Copy link
Copy Markdown
Contributor

@eugen-don which version of python-fs are you using?
Like indicated in README file, you need "fs python module at version 0.5.4 or under"
It won't work if it is more than 0.5.4.

@eugen-don

Copy link
Copy Markdown
Member

@florian-dacosta

thanks, you were right, i had the wrong version of fs.

@lasley

lasley commented Aug 18, 2017

Copy link
Copy Markdown
Contributor

It won't work if it is more than 0.5.4.

This seems like a pretty far out of date version to require in a new migration, which is supposed to upgrade all code.

@florian-dacosta

Copy link
Copy Markdown
Contributor

@lasley
Actually, there are kind of 2 fs lib.
pyfilesystem is up to version 0.5.4 and then pyfilesystem2 jumed to version 2.0.0.
This new pyfilesystem2 does not implement as much features as its predecessor for now, for example, sftp is not handled by this latest version. Maybe later it will...
The migration make the odoo module up to date, but not the lib it depends on. It would be better if it would, but it does not seem feasible for now (at least not without a huge amount of work)

@florian-dacosta

florian-dacosta commented Apr 4, 2018

Copy link
Copy Markdown
Contributor

@cmsalmeida Do you still plan to work on this PR?
There are some flake8 issues, can you fix it?
Also it could be nice to squash your commits a little bit

@github-actions

github-actions Bot commented Sep 4, 2022

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 4, 2022
@github-actions github-actions Bot closed this Oct 9, 2022
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (15.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants