<?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 15:05:25 -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 BB4A618320E7
	for &lt;gopher@complete.org&gt;; 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 &lt;gopher@complete.org&gt;; 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 &lt;alexey@mawhrin.net&gt;
To: gopher@complete.org
Subject: [gopher] pygopherd &amp; VIEWS (was: pygopherd &amp; ASK)
Message-ID: &lt;20030828200512.GA19751@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: 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: &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; &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?  Can I assume you are
&gt; using UMN gopher as the client?  (All the other protocols will ignore +VIEWS
&gt; since they do not support them.)
</p>
<p>from pygopherd.handlers.pyg import PYGBase
from pygopherd.gopherentry import GopherEntry
</p>
<p>class PYGMain(PYGBase):
        def canhandlerequest(self):
                return 1
        def getentry(self):
                entry = GopherEntry(self.selector, self.config)
                entry.type = &#x27;0&#x27;
                entry.mimetype = &#x27;text/plain&#x27;
                entry.name = &#x27;Test&#x27;
                entry.setea(&#x27;VIEWS&#x27;, &#x27;text/plain&#x27;)
                entry.setgopherpsupport(1)
                return entry
        def write(self, wfile):
                wfile.write(&#x27;Test&#x27;)
</p>
<p></p>
<p>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.
</p>
<p>By the way, how can I specify few views? I tried like setea(&#x27;VIEWS&#x27;,
&#x27;view1\nview2&#x27;) but didn&#x27;t see them in UMN gopher client -- only the
first one.
</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>
