Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 304322 Details for
Bug 444903
[PATCH] Can't generate policy for user application
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Fix traceback when generating policy for user application
policycoreutils-2.0.46-get_name.patch (text/plain), 1.20 KB, created by
Lubomir Rintel
on 2008-05-01 17:15:48 UTC
(
hide
)
Description:
Fix traceback when generating policy for user application
Filename:
MIME Type:
Creator:
Lubomir Rintel
Created:
2008-05-01 17:15:48 UTC
Size:
1.20 KB
patch
obsolete
>existing_user_radiobutton is active upon initialization, therefore get_name >would throw an exception even in case it's not pertinent (creating a policy >for application). Even if it wasn't, user could have activated it and then >hit back button and choose different policy type. > >Lubomir Rintel <lkundrak@v3.sk> > >--- policycoreutils-2.0.46/gui/polgengui.py.orig 2008-05-01 18:59:48.000000000 +0200 >+++ policycoreutils-2.0.46/gui/polgengui.py 2008-05-01 19:10:28.000000000 +0200 >@@ -348,11 +348,12 @@ class childWindow: > dlg.destroy() > > def get_name(self): >- if self.existing_user_radiobutton.get_active(): >- store, iter = self.existing_user_treeview.get_selection().get_selected() >- if iter == None: >- raise(_("You must select a user")) >- return store.get_value(iter, 0) >+ if self.type == polgen.EUSER: >+ if self.existing_user_radiobutton.get_active(): >+ store, iter = self.existing_user_treeview.get_selection().get_selected() >+ if iter != None: >+ return store.get_value(iter, 0) >+ raise(_("You must select a user")) > else: > return self.name_entry.get_text() >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 444903
: 304322 |
304324
|
304325