Received: with ECARTIS (v1.0.0; list gopher); Thu, 28 Aug 2003 14:37:40 -0500 (CDT) Return-Path: 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 ; 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 ; 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 To: gopher@complete.org Subject: [gopher] Re: pygopherd & ASK Message-ID: <20030828193731.GA19073@pippuri.mawhrin.net> References: <20030828184443.GA17767@pippuri.mawhrin.net> <20030828191537.GC13821@wile.excelhustler.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030828191537.GC13821@wile.excelhustler.com> 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: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: Gopher X-List-ID: Gopher List-subscribe: List-owner: List-post: List-archive: X-list: gopher > 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.) > > 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. Hmm. That's what /usr/share/doc/forg/README says on my system: ++++++++++++++ ---=== Features ===--- Everything listed here actually does work, well at least most of the time. [...] - ASK menus - users can interract with programs on foreign servers through the use of miniature questionnaires. ++++++++++++++ > If you want that support, it would not be too hard to add. Yes. I just was not sure: maybe I did not find how to use it :) > > 2. Why if I set up VIEWS in pyg module for an entry I see this view > > duplicated in gopher client? > > Can you post your PYG code for me to take a look at? Yes, I'll clean it up to localize this problem and post the code. > PyGopherd does support +VIEWS. It will return a view selection to your Pyg > as the searchrequest (protocol.searchrequest). Thanks. I did not find it myself... > > P.S. I tried to patch pygopherd to add '?' after port instead of '+' if > > entry.gopherpsupport is 2; and then in pyg module using > > entry.setea('ASK',...). I managed to get my question on screen in my > > gopher client but afterwards I get an empty screen. It seems that > > 'write' method of entry is called, but I see nothing I write there on > > screen (it works if I'm not using ASK form). > > I didn't follow this paragraph, could you be a little more precise? (Which > file were you patching, etc.) rfc1436.py. Original code is if entry.getgopherpsupport(): return retval + "\t+\r\n" else: return retval + "\r\n" So if I generate item inside menu generated in pyg module, it is sent like [...] host port +, and, AFAIK, it should be [...] host port ? . I tried to use not only 0/1 for gopherpsupport, but also 2, generating [...] host port ? in rfc1436.py for 2. Then if I create an item with gopherpsupport=2 and setea('ASK', 'Ask: is it something reasonable?') I can get my question on screen in client (and item itself is displayed as ASK form, with mark). But I always get an empty file as request result in a client. Maybe I was doing something completely wrong. By the way, don't you want to put latest pygopherd on your gopher server? subversion in Debian unstable is broken... -- Alexey Vyskubov (at home) Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!