<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1313: Tweaks to captcha configuration</title>
    <link>http://localhost/ticket/1313</link>
    <description>&lt;p&gt;
Awesome to have the captcha implementation and running on thedatahub.org! Here are some further
suggestions concerning the config options, before this goes into a release:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Document "ckan.recaptcha.publickey" and "ckan.recaptcha.privatekey" in doc/configuration.rst
&lt;/li&gt;&lt;li&gt;Which one config option defines whether recaptcha is enabled? There is disagreement between the template and the lib. Maybe better to have a third option for this. When setting the syntax for this, I can see us wanting to use captcha for other operations, like package edit, package create, group create etc. so perhaps we'd want to be able to turn each one on/off separately, using the name of the logic action. e.g. &lt;tt&gt;ckan.recaptcha.enable = user_create, group_create&lt;/tt&gt;
&lt;/li&gt;&lt;li&gt;We got this exception last night from the template:
&lt;pre class="wiki"&gt;Module ?:37 in &amp;lt;Expression u'g.recaptcha_publickey'&amp;gt;
&amp;lt;&amp;lt;          &amp;lt;dd&amp;gt;&amp;lt;input type="password" name="password2" value="" /&amp;gt;&amp;lt;/dd&amp;gt;
               &amp;lt;dd py:if="g.recaptcha_publickey"&amp;gt;
                 &amp;lt;script type="text/javascript"
                   src="http://www.google.com/recaptcha/api/challenge?k=${g.recaptcha_publickey}"&amp;gt;
&amp;gt;&amp;gt;  &amp;lt;dd py:if="g.recaptcha_publickey"&amp;gt;
Module genshi.template.eval:324 in lookup_attr
&amp;lt;&amp;lt;                      val = obj[key]
                       except (KeyError, TypeError):
                           val = cls.undefined(key, owner=obj)
               return val
&amp;gt;&amp;gt;  val = cls.undefined(key, owner=obj)
Module genshi.template.eval:410 in undefined
&amp;lt;&amp;lt;          """Raise an ``UndefinedError`` immediately."""
               __traceback_hide__ = True
               raise UndefinedError(key, owner=owner)
&amp;gt;&amp;gt;  raise UndefinedError(key, owner=owner)
UndefinedError: &amp;lt;ckan.lib.app_globals.Globals object at 0xb8f1182c&amp;gt; has no member named "recaptcha_publickey"
&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
I'm not sure why - might be something to do with the maintenance on the server, but worth double checking, since we don't want exceptions, say if one or other config variable is not defined.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1313</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Mon, 26 Sep 2011 22:33:52 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1313#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1313#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;duplicate&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Error was due to maintenance. Need both config options for recaptcha to work so either one can be used to check config. Re docs see &lt;a class="assigned ticket" href="http://localhost/ticket/1358" title="enhancement: Generate configuration documentation automatically from the ... (assigned)"&gt;#1358&lt;/a&gt; (auto generation of docs on config from the config source).
&lt;/p&gt;
&lt;p&gt;
Given that only docs remain and that is part of &lt;a class="assigned ticket" href="http://localhost/ticket/1358" title="enhancement: Generate configuration documentation automatically from the ... (assigned)"&gt;#1358&lt;/a&gt; am closing as duplicate.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>