<?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:15:49 -0500 (CDT)
Return-Path: &lt;jgoerzen@excelhustler.com&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 5B3F218320DD; Thu, 28 Aug 2003 14:15:48 -0500 (CDT)
Received: from gatekeeper.elmer.external.excelhustler.com
 (gatekeeper.excelhustler.com [68.99.114.105])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(Client CN &quot;gatekeeper.elmer.external.excelhustler.com&quot;,
 Issuer &quot;excelhustler.com&quot; (not verified))
	by gesundheit.complete.org (Postfix) with ESMTP
	id 8D7D118320D4; Thu, 28 Aug 2003 14:15:46 -0500 (CDT)
Received: from chatterbox.elmer.internal.excelhustler.com (unknown
 [192.168.0.12])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(Client CN &quot;chatterbox.elmer.internal.excelhustler.com&quot;,
 Issuer &quot;excelhustler.com&quot; (verified OK))
	by gatekeeper.elmer.external.excelhustler.com (Postfix) with ESMTP
	id 55CD8E0169; Thu, 28 Aug 2003 14:15:41 -0500 (CDT)
Received: by chatterbox.elmer.internal.excelhustler.com (Postfix,
 from userid 102)
	id F238F5C0C6; Thu, 28 Aug 2003 14:15:40 -0500 (CDT)
X-Scanned-By: AMaViS-ng/clamscan at chatterbox.elmer.internal.excelhustler.com
Received: from wile.internal.excelhustler.com (wile.internal.excelhustler.com
 [192.168.1.34])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by chatterbox.elmer.internal.excelhustler.com (Postfix) with ESMTP
	id 682C25C0C5; Thu, 28 Aug 2003 14:15:37 -0500 (CDT)
Received: by wile.internal.excelhustler.com (Postfix, from userid 1000)
	id 2B0BE7817; Thu, 28 Aug 2003 14:15:37 -0500 (CDT)
Date: Thu, 28 Aug 2003 14:15:37 -0500
From: John Goerzen &lt;jgoerzen@complete.org&gt;
To: gopher@complete.org
Subject: [gopher] Re: pygopherd &amp; ASK
Message-ID: &lt;20030828191537.GC13821@wile.excelhustler.com&gt;
References: &lt;20030828184443.GA17767@pippuri.mawhrin.net&gt;
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: &lt;20030828184443.GA17767@pippuri.mawhrin.net&gt;
User-Agent: Mutt/1.4i
X-Scanned-By: clamscan at complete.org
Content-Transfer-Encoding: 8bit
X-archive-position: 816
X-ecartis-version: Ecartis v1.0.0
Sender: gopher-bounce@complete.org
Errors-to: gopher-bounce@complete.org
X-original-sender: jgoerzen@complete.org
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>On Thu, Aug 28, 2003 at 09:44:43PM +0300, Alexey Vyskubov wrote:
&gt; I&#x27;m sorry if I&#x27;m asking a stupid questions, but I was not able to find an
&gt; answer myself.
&gt;
&gt; 1. I wonder if it is possible to use ASK with pygopherd. If it is possible
&gt; can someone give me an example of creating menu item with ASK and using
&gt; entered information afterwards?
</p>
<p>Yes and no.  PyGopherd is capable of presenting ASK blocks to a client, but
is not capable of processing the results itself (the Gopher+ handler does
not support datablocks coming in from the client.)
</p>
<p>This was never really an issue because only one client has ever supported
them, and that is UMN gopher, so they are not terribly versatile.
</p>
<p>If you want that support, it would not be too hard to add.
</p>
<p>&gt; 2. Why if I set up VIEWS in pyg module for an entry I see this view
&gt; duplicated in gopher client?
</p>
<p>Can you post your PYG code for me to take a look at?  Can I assume you are
using UMN gopher as the client?  (All the other protocols will ignore +VIEWS
since they do not support them.)
</p>
<p>As a matter of fact, I wrote all that code so long ago I&#x27;ll have to go back
and double-check it.
</p>
<p>&gt; 3. Is it possible to use few views for an item?
</p>
<p>PyGopherd does support +VIEWS.  It will return a view selection to your Pyg
as the searchrequest (protocol.searchrequest).
</p>
<p>PyGopherd does *NOT* support automatically generating multiple views based
on the contents of a directory and selecting the appropriate file when the
request comes in.  But then, I removed this from UMN gopherd some time back
too, since it is really broken and has lots of side-effects.
</p>
<p>In short, PyGopherd provides you with the framework and tools to support
+VIEWS in PYG modules you write, but does not ship with any modules that use
them.
</p>
<p>&gt; P.S. I tried to patch pygopherd to add &#x27;?&#x27; after port instead of &#x27;+&#x27; if
&gt; entry.gopherpsupport is 2; and then in pyg module using
&gt; entry.setea(&#x27;ASK&#x27;,...). I managed to get my question on screen in my
&gt; gopher client but afterwards I get an empty screen. It seems that
&gt; &#x27;write&#x27; method of entry is called, but I see nothing I write there on
&gt; screen (it works if I&#x27;m not using ASK form).
</p>
<p>I didn&#x27;t follow this paragraph, could you be a little more precise?  (Which
file were you patching, etc.)
</p>
<p></p>
</card>
</wml>
