Re: [Spacewalk-devel] Dropping i386 for Spacewalk Server?
On 03/25/2011 08:16 PM, Luc de Louw wrote: The other question that arises is: How would this affect RHN-Satellite? I got this idea for Spacewalk. It is still my personal idea. When and if we do this for Spacewalk, then we may start thinking about RHN Satellite. But that is far future. -- Miroslav Suchy Red Hat Satellite Engineering ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
[Spacewalk-devel] Satellite to Spacewalk
Hi, Is it possible to migrate from Satellite server to Spacewalk? Also migrating 30 plus Redhat 5.X (which are managed by satellite) to CentOS 5.X around the same time. Thanks Colin ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
[Spacewalk-devel] [PATCH] Do not show success message when passwords don't match
Hello, I found it to be confusing, that if you go to the account preferences page of a user (/rhn/account/UserDetails.do) and change the user's confirm password only (e.g. remove one of the dots), the message when you hit the 'Update' button states: 'User information updated' I'm not 100% sure about the expected behavior there, but I think if both passwords don't match we actually shouldn't display a success message (even if one of the passwords is the placeholder). The attached patch refines the class UserEditActionHelper and adds the password mismatch error as soon as both passwords don't match. Greetings, Johannes -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) From 5c07c2b9824ff125a0d5f66426b3fe996d94a213 Mon Sep 17 00:00:00 2001 From: Johannes Renner jren...@suse.de Date: Mon, 28 Mar 2011 13:45:25 +0200 Subject: [PATCH] Do not show success message when passwords don't match --- .../frontend/action/user/UserEditActionHelper.java | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/java/code/src/com/redhat/rhn/frontend/action/user/UserEditActionHelper.java b/java/code/src/com/redhat/rhn/frontend/action/user/UserEditActionHelper.java index 68f6ce0..c455642 100644 --- a/java/code/src/com/redhat/rhn/frontend/action/user/UserEditActionHelper.java +++ b/java/code/src/com/redhat/rhn/frontend/action/user/UserEditActionHelper.java @@ -40,16 +40,18 @@ public abstract class UserEditActionHelper extends RhnAction { //get validation errors ActionErrors errors = RhnValidationHelper.validateDynaActionForm(this, form); -//Make sure password and passwordConfirm are equal +//Add an error in case of password mismatch +String pw = (String)form.get(UserActionHelper.DESIRED_PASS); +String conf = (String)form.get(UserActionHelper.DESIRED_PASS_CONFIRM); +if (!pw.equals(conf)) { +errors.add(ActionMessages.GLOBAL_MESSAGE, +new ActionMessage(error.password_mismatch)); +} + +//Make sure password is not the placeholder if (!UserActionHelper.PLACEHOLDER_PASSWORD.equals( form.get(UserActionHelper.DESIRED_PASS))) { -String pw = (String)form.get(UserActionHelper.DESIRED_PASS); -String conf = (String)form.get(UserActionHelper.DESIRED_PASS_CONFIRM); -if (!pw.equals(conf)) { -errors.add(ActionMessages.GLOBAL_MESSAGE, -new ActionMessage(error.password_mismatch)); -} -else if (errors.isEmpty()) { +if (errors.isEmpty()) { //Set the password only if there are no errors at all targetUser.setPassword(pw); } -- 1.7.3.4 ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
[Spacewalk-devel] [Patch] List repos from spacecmd
I needed to list repos from spacecmd. See attached. Also, it would be nice if repos could be associated etc. from spacecmd. Thanks, Trent --- old//usr/lib/python2.6/site-packages/spacecmd/softwarechannel.py 2011-03-28 07:45:40.062935272 -0500 +++ /usr/lib/python2.6/site-packages/spacecmd/softwarechannel.py 2011-03-28 07:40:13.962940058 -0500 @@ -67,6 +67,21 @@ print '\n'.join(sorted(channels)) +def help_softwarechannel_listrepos(self): +print 'softwarechannel_listrepos: List all available user repos' +print 'usage: softwarechannel_listrepos' + +def do_softwarechannel_listrepos(self, args, doreturn=False): +repos = self.client.channel.software.listUserRepos(self.session) +repos = [c.get('label') for c in repos] + +if doreturn: +return repos +else: +if len(repos): +print '\n'.join(sorted(repos)) + + def help_softwarechannel_listbasechannels(self): print 'softwarechannel_listbasechannels: List all base software channels' @@ -260,6 +275,38 @@ +def help_softwarechannel_repodetails(self): +print 'softwarechannel_repodetails: Show the details of a user repo' +print 'usage: softwarechannel_repodetails repo ...' + +def complete_softwarechannel_repodetails(self, text, line, beg, end): +return tab_completer(self.do_softwarechannel_listrepos('', True), text) + +def do_softwarechannel_repodetails(self, args): +(args, options) = parse_arguments(args) + +if not len(args): +self.help_softwarechannel_repodetails() +return + +# allow globbing of software channel names +repos = filter_results(self.do_softwarechannel_listrepos('', True), args) + +add_separator = False + +for repo in repos: +details = self.client.channel.software.getRepoDetails(\ +self.session, repo) + +if add_separator: print self.SEPARATOR +add_separator = True + +print 'Repository Label: %s' % details.get('label') +print 'Repository Url: %s' % details.get('sourceUrl') +print 'Repository Type:%s' % details.get('type') + + + def help_softwarechannel_listerrata(self): print 'softwarechannel_listerrata: List the errata associated with a' print 'software channel' ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [Patch] List repos from spacecmd
Trent, Thanks for the patch. I created a new module for repos, so the repo functions are now repo_list and repo_details; softwarechannel was getting a bit cluttered. They should be there in versions = 1.4.5. I don't use repos in Spacewalk, but I'd be more than happy to commit any patches that implement this functionality. Aron Parsons, RHCA Senior Consultant Red Hat Consulting - Original Message - Date: Mon, 28 Mar 2011 08:30:52 -0500 From: Trent Johnson tljoh...@oreillyschool.com To: spacewalk-devel@redhat.com Subject: [Spacewalk-devel] [Patch] List repos from spacecmd Message-ID: 4d908d8c.8060...@oreillyschool.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed I needed to list repos from spacecmd. See attached. Also, it would be nice if repos could be associated etc. from spacecmd. Thanks, Trent --- old//usr/lib/python2.6/site-packages/spacecmd/softwarechannel.py 2011-03-28 07:45:40.062935272 -0500 +++ /usr/lib/python2.6/site-packages/spacecmd/softwarechannel.py 2011-03-28 07:40:13.962940058 -0500 @@ -67,6 +67,21 @@ print '\n'.join(sorted(channels)) +def help_softwarechannel_listrepos(self): +print 'softwarechannel_listrepos: List all available user repos' +print 'usage: softwarechannel_listrepos' + +def do_softwarechannel_listrepos(self, args, doreturn=False): +repos = self.client.channel.software.listUserRepos(self.session) +repos = [c.get('label') for c in repos] + +if doreturn: +return repos +else: +if len(repos): +print '\n'.join(sorted(repos)) + + def help_softwarechannel_listbasechannels(self): print 'softwarechannel_listbasechannels: List all base software channels' @@ -260,6 +275,38 @@ +def help_softwarechannel_repodetails(self): +print 'softwarechannel_repodetails: Show the details of a user repo' +print 'usage: softwarechannel_repodetails repo ...' + +def complete_softwarechannel_repodetails(self, text, line, beg, end): +return tab_completer(self.do_softwarechannel_listrepos('', True), text) + +def do_softwarechannel_repodetails(self, args): +(args, options) = parse_arguments(args) + +if not len(args): +self.help_softwarechannel_repodetails() +return + +# allow globbing of software channel names +repos = filter_results(self.do_softwarechannel_listrepos('', True), args) + +add_separator = False + +for repo in repos: +details = self.client.channel.software.getRepoDetails(\ +self.session, repo) + +if add_separator: print self.SEPARATOR +add_separator = True + +print 'Repository Label: %s' % details.get('label') +print 'Repository Url: %s' % details.get('sourceUrl') +print 'Repository Type:%s' % details.get('type') + + + def help_softwarechannel_listerrata(self): print 'softwarechannel_listerrata: List the errata associated with a' print 'software channel' -- ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel End of Spacewalk-devel Digest, Vol 34, Issue 28 *** ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel