I wouldn't even do that. Just have shouldDrawNoderefBox() return false, and
have both drawAddPeerBox and drawNoderefBox conditional on it. That's
cleanest.
On Thursday 03 January 2008 16:53, you wrote:
> Author: nextgens
> Date: 2008-01-03 16:53:28 +0000 (Thu, 03 Jan 2008)
> New Revision: 16858
>
> Modified:
> trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
> trunk/freenet/src/freenet/clients/http/OpennetConnectionsToadlet.java
> Log:
> ConnectionToadlet: same fix with different code
>
> Modified: trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
> ===================================================================
> --- trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
2008-01-03 16:23:39 UTC (rev 16857)
> +++ trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
2008-01-03 16:53:28 UTC (rev 16858)
> @@ -467,8 +467,7 @@
> // END PEER TABLE
> }
>
> - if(!isOpennet())
> - drawAddPeerBox(contentNode, ctx);
> + drawAddPeerBox(contentNode, ctx);
>
> // our reference
> if(shouldDrawNoderefBox(advancedModeEnabled))
>
> Modified:
trunk/freenet/src/freenet/clients/http/OpennetConnectionsToadlet.java
> ===================================================================
> --- trunk/freenet/src/freenet/clients/http/OpennetConnectionsToadlet.java
2008-01-03 16:23:39 UTC (rev 16857)
> +++ trunk/freenet/src/freenet/clients/http/OpennetConnectionsToadlet.java
2008-01-03 16:53:28 UTC (rev 16858)
> @@ -27,6 +27,10 @@
> PeerNodeStatus peerNodeStatus, boolean
> fProxyJavascriptEnabled) {
> // Do nothing - no private notes either (no such thing as
> negative trust
in cyberspace)
> }
> +
> + protected void drawAddPeerBox(HTMLNode contentNode, ToadletContext ctx)
> {
> + // Do nothing - we don't want opennet-refs dealing
> + }
>
> protected boolean hasNameColumn() {
> return false;
>
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080103/a615dff7/attachment.pgp>