Bug 906498

Summary: python exception "no such file or directory" loading template on browser plugin
Product: [Fedora] Fedora Reporter: Renato Covarrubias <bugzilla>
Component: lumaAssignee: Jochen Schmitt <jochen>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: bugzilla, jochen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 04:25:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Graphical view none

Description Renato Covarrubias 2013-01-31 17:48:45 UTC
Created attachment 691136 [details]
Graphical view

Description of problem:
When I try to see a particular object in LDAP tree, luma create only a tab, without information. In the debug, I see:

>>>
[  File "/usr/lib/python2.7/site-packages/luma/plugins/browser/AdvancedObjectWidget.py", line 226, in modelChanged
    self.displayValues()
  File "/usr/lib/python2.7/site-packages/luma/plugins/browser/AdvancedObjectWidget.py", line 239, in displayValues
    self.loadTemplates()
  File "/usr/lib/python2.7/site-packages/luma/plugins/browser/AdvancedObjectWidget.py", line 185, in loadTemplates
    for objectClass, fileName in self.templateFactory.getTemplateList():
  File "/usr/lib/python2.7/site-packages/luma/plugins/browser/TemplateFactory.py", line 31, in getTemplateList
    self.templateList = self._createTemplateList()
  File "/usr/lib/python2.7/site-packages/luma/plugins/browser/TemplateFactory.py", line 45, in _createTemplateList
    for file in os.listdir(self.baseDir):
] Reason:
<type 'exceptions.OSError'>
[Errno 2] No such file or directory: '/usr/lib/python2.7/site-packages/luma/plugins/browser/templates'
<<<

Version-Release number of selected component (if applicable):
luma-3.0.7-1.fc18.noarch

How reproducible:
Try to see object attributes with browser plugin.

Steps to Reproduce:
1. Open luma
2. Go to settings and enable browser plugin.
3. In menu Edit, select "Server List", add a new server. Test connection.
4. In Plugins tab, doble click on "Browser".
5. In tab Browser, open the LDAP tree and doble click in a object.
  
Actual results:
A new tab will be open, without any information.

Expected results:
A new tab will be open, with the object information and the option to edit the attributes.

Additional info:
My laptop is a Fedora 18 fresh instalation, with all packages up-to-date.

Comment 1 Jochen Schmitt 2013-01-31 20:24:29 UTC
Thank you for reporting this bug. I think I have found the reason for the
reported bug and have fixed it. I would like to ask you,if you can
do a test with luma-3.0.7-2.fc19 from rawhide

Comment 2 Renato Covarrubias 2013-02-01 00:57:10 UTC
Jochen,

Of course!
It is not yet available?. I couldn't find it.

Comment 3 Jochen Schmitt 2013-02-01 17:58:12 UTC
It was announced in todays rawhide report.

Comment 4 Renato Covarrubias 2013-02-01 22:50:47 UTC
Jochen,

The fix works perfects.

Thanks a lost! :)

Comment 5 Fedora Update System 2013-02-02 10:37:09 UTC
luma-3.0.7-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/luma-3.0.7-2.fc18

Comment 6 Fedora Update System 2013-02-03 13:45:42 UTC
Package luma-3.0.7-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing luma-3.0.7-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1894/luma-3.0.7-2.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-02-13 04:25:36 UTC
luma-3.0.7-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.