<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
Received: with ECARTIS (v1.0.0; list gopher);
 Thu, 28 Aug 2003 14:37:40 -0500 (CDT)
Return-Path: &lt;alexey@pippuri.mawhrin.net&gt;
X-Original-To: gopher@complete.org
Delivered-To: gopher@complete.org
Received: from localhost (localhost [127.0.0.1])
	by gesundheit.complete.org (Postfix) with ESMTP id E66C918320D4
	for &lt;gopher@complete.org&gt;; Thu, 28 Aug 2003 14:37:37 -0500 (CDT)
Received: from pippuri.mawhrin.net (ua180d157.elisa.omakaista.fi
 [80.186.157.180])
	by gesundheit.complete.org (Postfix) with ESMTP id B558218320E2
	for &lt;gopher@complete.org&gt;; Thu, 28 Aug 2003 14:37:36 -0500 (CDT)
Received: by pippuri.mawhrin.net (Postfix, from userid 1000)
	id 434F256B; Thu, 28 Aug 2003 22:37:31 +0300 (EEST)
Date: Thu, 28 Aug 2003 22:37:31 +0300
From: Alexey Vyskubov &lt;alexey@mawhrin.net&gt;
To: gopher@complete.org
Subject: [gopher] Re: pygopherd &amp; ASK
Message-ID: &lt;20030828193731.GA19073@pippuri.mawhrin.net&gt;
References: &lt;20030828184443.GA17767@pippuri.mawhrin.net&gt;
 &lt;20030828191537.GC13821@wile.excelhustler.com&gt;
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: &lt;20030828191537.GC13821@wile.excelhustler.com&gt;
User-Agent: Mutt/1.5.4i
X-Scanned-By: clamscan at complete.org
Content-Transfer-Encoding: 8bit
X-archive-position: 818
X-ecartis-version: Ecartis v1.0.0
Sender: gopher-bounce@complete.org
Errors-to: gopher-bounce@complete.org
X-original-sender: alexey@mawhrin.net
Precedence: bulk
Reply-to: gopher@complete.org
List-help: &lt;mailto:ecartis@complete.org?Subject=help&gt;
List-unsubscribe: &lt;mailto:gopher-request@complete.org?Subject=unsubscribe&gt;
List-software: Ecartis version 1.0.0
List-Id: Gopher &lt;gopher.complete.org&gt;
X-List-ID: Gopher &lt;gopher.complete.org&gt;
List-subscribe: &lt;mailto:gopher-request@complete.org?Subject=subscribe&gt;
List-owner: &lt;mailto:jgoerzen@complete.org&gt;
List-post: &lt;mailto:gopher@complete.org&gt;
List-archive: &lt;http://www.complete.org/mailinglists/archives/&gt;
X-list: gopher
</p>
<p>&gt; Yes and no.  PyGopherd is capable of presenting ASK blocks to a client, but
&gt; is not capable of processing the results itself (the Gopher+ handler does
&gt; not support datablocks coming in from the client.)
&gt;
&gt; This was never really an issue because only one client has ever supported
&gt; them, and that is UMN gopher, so they are not terribly versatile.
</p>
<p>Hmm. That&#x27;s what /usr/share/doc/forg/README says on my system:
++++++++++++++
---=== Features ===---
</p>
<p>Everything listed here actually does work, well at least most of the
time.
</p>
<p>[...]
</p>
<p>- ASK menus - users can interract with programs on foreign servers
  through the use of miniature questionnaires.
++++++++++++++
</p>
<p>&gt; If you want that support, it would not be too hard to add.
</p>
<p>Yes. I just was not sure: maybe I did not find how to use it :)
</p>
<p>&gt; &gt; 2. Why if I set up VIEWS in pyg module for an entry I see this view
&gt; &gt; duplicated in gopher client?
&gt;
&gt; Can you post your PYG code for me to take a look at?
</p>
<p>Yes, I&#x27;ll clean it up to localize this problem and post the code.
</p>
<p>&gt; PyGopherd does support +VIEWS.  It will return a view selection to your Pyg
&gt; as the searchrequest (protocol.searchrequest).
</p>
<p>Thanks. I did not find it myself...
</p>
<p>&gt; &gt; P.S. I tried to patch pygopherd to add &#x27;?&#x27; after port instead of &#x27;+&#x27; if
&gt; &gt; entry.gopherpsupport is 2; and then in pyg module using
&gt; &gt; entry.setea(&#x27;ASK&#x27;,...). I managed to get my question on screen in my
&gt; &gt; gopher client but afterwards I get an empty screen. It seems that
&gt; &gt; &#x27;write&#x27; method of entry is called, but I see nothing I write there on
&gt; &gt; screen (it works if I&#x27;m not using ASK form).
&gt;
&gt; I didn&#x27;t follow this paragraph, could you be a little more precise?  (Which
&gt; file were you patching, etc.)
</p>
<p>rfc1436.py. Original code is
</p>
<p>        if entry.getgopherpsupport():
            return retval + &quot;\t+\r\n&quot;
        else:
            return retval + &quot;\r\n&quot;
</p>
<p>So if I generate item inside menu generated in pyg module, it is sent
like [...] host port +, and, AFAIK, it should be [...] host port ? .
</p>
<p>I tried to use not only 0/1 for gopherpsupport, but also 2, generating
[...] host port ? in rfc1436.py for 2.
</p>
<p>Then if I create an item with gopherpsupport=2 and setea(&#x27;ASK&#x27;, &#x27;Ask: is
it something reasonable?&#x27;) I can get my question on screen in client
(and item itself is displayed as ASK form, with &lt;??&gt; mark). But I always
get an empty file as request result in a client.
</p>
<p>Maybe I was doing something completely wrong.
</p>
<p>By the way, don&#x27;t you want to put latest pygopherd on your gopher
server? subversion in Debian unstable is broken...
</p>
<p>--
Alexey Vyskubov
(at home)
Hi! I&#x27;m a .signature virus! Copy me into your ~/.signature to help me spread!
</p>
</card>
</wml>
