bugGNU Health - Bugs: bug #57147, Client 3.6 does not respect system...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #57147: Client 3.6 does not respect system folder for plugins

Submitter:  Axel Braun <coogor>
Submitted:  Thu 31 Oct 2019 05:37:44 PM UTC
   
 
Category:  GUI / Frontend Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  3.5.0
Module:  gnuhealth-client Component:  None

Thu 31 Oct 2019 11:44:40 PM UTC, comment #2: 

Federation Resource Locator icon path location fixed in changeset:

http://hg.savannah.gnu.org/hgweb/health/rev/8714dec41129

Luis Falcon <meanmicio>
Group administrator
Thu 31 Oct 2019 11:00:10 PM UTC, comment #1: 

Hi Axel

original submission:

> In client versions up to 3.4 the plugins were located in
> $PYTHON_PATH/site-packages/tryton/plugins
>
> Client 3.6 ignores this path and introduces a path for each local user. Result: Plugins are not found


Thanks for the feedback !

No. GH client 3.6 respect the system folders and does not ignore the path . Result: All plugins are found :)

In fact

>   File "/usr/lib/python3.6/site-packages/tryton/plugins/frl/__init__.py", line 325, in frl_main


Here you can see that it finds the Federation Resource Locator ("FRL") plugin on
/usr/lib/python3.6/site-packages/tryton/plugins/frl/


> Error: g-file-error-quark: Failed to open file '/home/test/gnuhealth_plugins/frl/icons/federation.svg': Datei oder Verzeichnis nicht gefunden (4)


This is an issue specific to Federation Resource Locator. I'll send the patch tomorrow.

In the meantime, please check the other plugins in any of the available directories, as described in the developer's corner plugins section (https://en.wikibooks.org/wiki/GNU_Health/Developer%27s_corner#Plugins)

Best
Luis

Luis Falcon <meanmicio>
Group administrator
Thu 31 Oct 2019 05:37:44 PM UTC, original submission:  

In client versions up to 3.4 the plugins were located in
$PYTHON_PATH/site-packages/tryton/plugins

That was working fine.

Client 3.6 ignores this path and introduces a path for each local user. Result: Plugins are not found

 File "/usr/lib/python3.6/site-packages/tryton/gui/window/form.py", line 698, in <lambda>
    if self.screen.current_record else None),
  File "/usr/lib/python3.6/site-packages/tryton/plugins/frl/__init__.py", line 325, in frl_main
    frl = FederationResourceLocator()
  File "/usr/lib/python3.6/site-packages/tryton/plugins/frl/__init__.py", line 242, in _init_
    self.window.set_icon_from_file(icon)

Error: g-file-error-quark: Failed to open file '/home/test/gnuhealth_plugins/frl/icons/federation.svg': Datei oder Verzeichnis nicht gefunden (4)

Axel Braun <coogor>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by coogor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-02 meanmicio StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2019-10-31 meanmicio StatusNeed Info Ready For Test
    2019-10-31 meanmicio StatusNone Need Info
        Assigned toNone meanmicio
        ReleaseNone 3.5.0

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code