Mailinglist Archive: yast-devel (126 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] <rest-service> master : fix default registration context, cleanup show templates
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Wed, 18 Nov 2009 17:19:58 +0100
  • Message-id: <20091118161958.GB24164@xxxxxxxxxxxxxxxx>
On Sat, Nov 14, 2009 at 02:52:32AM +0100, J.Daniel Schmidt wrote:
ref: refs/heads/master
commit ab0b5faedefc16ca3523c2d4ed496b41741d17f3
Author: J. Daniel Schmidt <jdsn@xxxxxxx>
Date: Sat Nov 14 02:52:32 2009 +0100

fix default registration context, cleanup show templates
---

diff --git
a/plugins/registration/app/views/registration/registration/show.html.erb
b/plugins/registration/app/views/registration/registration/show.html.erb
index 50e8aac..bbba3c0 100644
--- a/plugins/registration/app/views/registration/registration/show.html.erb
+++ b/plugins/registration/app/views/registration/registration/show.html.erb
@@ -1,11 +1 @@
-<%= # @register == nil ? "@register is nil - FIXME" : @register.to_xml
- -%>
-<%= case @register.class.to_s
- when 'NilClass'
- "@register is nil"
- when 'String'
- @register.to_s
- when 'Register'
- @register.to_xml
- end
- -%>
+<%= @register.to_xml if @register -%>

You should not claim HTML and send XML. Simply don't support HTML,
the browsers show XML just fine.
http://lists.opensuse.org/yast-devel/2009-10/msg00136.html

--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
< Previous Next >
This Thread
  • No further messages