Received: with ECARTIS (v1.0.0; list gopher); Thu, 28 Aug 2003 15:05:25 -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 BB4A618320E7 for ; Thu, 28 Aug 2003 15:05:21 -0500 (CDT) Received: from pippuri.mawhrin.net (ua180d157.elisa.omakaista.fi [80.186.157.180]) by gesundheit.complete.org (Postfix) with ESMTP id EC7EC18320E3 for ; Thu, 28 Aug 2003 15:05:17 -0500 (CDT) Received: by pippuri.mawhrin.net (Postfix, from userid 1000) id 818B4B66; Thu, 28 Aug 2003 23:05:12 +0300 (EEST) Date: Thu, 28 Aug 2003 23:05:12 +0300 From: Alexey Vyskubov To: gopher@complete.org Subject: [gopher] pygopherd & VIEWS (was: pygopherd & ASK) Message-ID: <20030828200512.GA19751@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: 819 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 > > 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? Can I assume you are > using UMN gopher as the client? (All the other protocols will ignore +VIEWS > since they do not support them.) from pygopherd.handlers.pyg import PYGBase from pygopherd.gopherentry import GopherEntry class PYGMain(PYGBase): def canhandlerequest(self): return 1 def getentry(self): entry = GopherEntry(self.selector, self.config) entry.type = '0' entry.mimetype = 'text/plain' entry.name = 'Test' entry.setea('VIEWS', 'text/plain') entry.setgopherpsupport(1) return entry def write(self, wfile): wfile.write('Test') I see two identical views in UMN gopher client. But well, I just checked information about this item in forg: there is only one element in VIEWS. By the way, how can I specify few views? I tried like setea('VIEWS', 'view1\nview2') but didn't see them in UMN gopher client -- only the first one. -- Alexey Vyskubov (at home) Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!