webmcp

diff framework/env/auth/openid/xrds_document.lua @ 23:3a6fe8663b26

Code cleanup and documentation added; Year in copyright notice changed to 2009-2010

Details:
- Changed quoting style in auth.openid.xrds_document{...}
- Fixed documentation for auth.openid.initiate{...}
- Added documentation for mondelefant
- Code-cleanup in mondelefant:
-- removed unneccessary lines "rows = PQntuples(res); cols = PQnfields(res);"
-- avoided extra copy of first argument (self) in mondelefant_conn_query
-- no rawget in meta-method "__index" of database result lists and objects
-- removed unreachable "return 0;" in meta-method "__newindex" of database result lists and objects
- Year in copyright notice changed to 2009-2010
- Version string changed to "1.1.1"
author jbe
date Fri Jun 04 19:00:34 2010 +0200 (2010-06-04)
parents 47ddf0f86009
children
line diff
     1.1 --- a/framework/env/auth/openid/xrds_document.lua	Thu Apr 22 20:46:29 2010 +0200
     1.2 +++ b/framework/env/auth/openid/xrds_document.lua	Fri Jun 04 19:00:34 2010 +0200
     1.3 @@ -13,20 +13,20 @@
     1.4  function auth.openid.xrds_document(args)
     1.5    slot.set_layout(nil, "application/xrds+xml")
     1.6    slot.put_into("data",
     1.7 -    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
     1.8 -    "<xrds:XRDS xmlns:xrds=\"xri://$xrds\" xmlns=\"xri://$xrd*($v*2.0)\">\n",
     1.9 -    "  <XRD>\n",
    1.10 -    "    <Service>\n",                                                   
    1.11 -    "      <Type>http://specs.openid.net/auth/2.0/return_to</Type>\n",
    1.12 -    "      <URI>",
    1.13 +    '<?xml version="1.0" encoding="UTF-8"?>\n',
    1.14 +    '<xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)">\n',
    1.15 +    '  <XRD>\n',
    1.16 +    '    <Service>\n',                                                   
    1.17 +    '      <Type>http://specs.openid.net/auth/2.0/return_to</Type>\n',
    1.18 +    '      <URI>',
    1.19      encode.url{
    1.20        base   = request.get_absolute_baseurl(),
    1.21        module = args.return_to_module,
    1.22        view   = args.return_to_view
    1.23      },
    1.24 -    "</URI>\n",
    1.25 -    "    </Service>\n",
    1.26 -    "  </XRD>\n",
    1.27 -    "</xrds:XRDS>\n"
    1.28 +    '</URI>\n',
    1.29 +    '    </Service>\n',
    1.30 +    '  </XRD>\n',
    1.31 +    '</xrds:XRDS>\n'
    1.32    )
    1.33  end

Impressum / About Us