- 000017 by carregal@... on 2009/01/30 at 08:55 GMT
000014 by yuri@... on 2009/01/30 at 08:55 GMT
Page Content
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:51 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:51 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.161.20 with SMTP id j20cs86070wfe;
Mon, 19 Jan 2009 07:11:58 -0800 (PST)
Received: by 10.100.126.19 with SMTP id y19mr3989399anc.2.1232377916889;
Mon, 19 Jan 2009 07:11:56 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id c28si3810630anc.25.2009.01.19.07.11.46;
Mon, 19 Jan 2009 07:11:56 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LOxcG-0004Zl-AQ; Mon, 19 Jan 2009 15:08:48 -0200
Received: from mail-bw0-f15.google.com ([209.85.218.15])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LOxcE-0004Zf-4t
for sputnik-list@lists.luaforge.net; Mon, 19 Jan 2009 15:08:46 -0200
Received: by bwz8 with SMTP id 8so1224775bwz.5
for <sputnik-list@lists.luaforge.net>;
Mon, 19 Jan 2009 07:11:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from:to
:subject:mime-version:content-type;
bh=+1Ecf9IwasVGPA7nv36RwEmlGJOnzBHqypqr4ACgDXg=;
b=Nbhlvy9xRr5YnEv0emht3mrw3ADlmdVhoo371LTml88787G4jl8pI5i66iA+BUDcZP
Eqs8VwJ6qE+8MREUtWfjb+byMW0m/VmZZd4TUqfCAwjNv9VfVhlyexIIY00bqIFOiya0
YHrAQPTbP7gPUeXkDOvVZzopuo9cN22jTLZcA=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=message-id:date:from:to:subject:mime-version:content-type;
b=eNXdIiTq6Brjk2Yc2RMKcgz/I1CV8LLUHvB1oSKYgz6bsrpY6tiuurb+8mhPp+lQyO
NI3mo4ln84M7F5XefZY9pWbpBxoKHQxInE/UXP2LBH+G7boimLzfHuPv98Xi5qTrNZed
JEFSCzPvgwDjAjugxC9u+oUACMLMwaSajVvdk=
Received: by 10.181.193.15 with SMTP id v15mr2110705bkp.7.1232377698252;
Mon, 19 Jan 2009 07:08:18 -0800 (PST)
Received: by 10.181.26.6 with HTTP; Mon, 19 Jan 2009 07:08:18 -0800 (PST)
Message-ID: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
Date: Mon, 19 Jan 2009 13:08:18 -0200
From: "=?ISO-8859-1?Q?Lu=EDs_Eduardo_Jason_Santos?=" <jasonsantos@gmail.com>
To: sputnik-list@lists.luaforge.net
MIME-Version: 1.0
Subject: [Sputnik-list] Filter nodes
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1017179364=="
Mime-version: 1.0
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
--===============1017179364==
Content-Type: multipart/alternative;
boundary="----=_Part_20039_19146041.1232377698251"
------=_Part_20039_19146041.1232377698251
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi, list!
I was wondering this weekend while trying to import my WikiMedia data to
Sputnik:
Is there a way of creating a node that kind of 'filters' another node,
passed to him as a parameter?
I am thinking something in the line of:
http://spoo.tnik.org/en/Tags:technology
http://spoo.tnik.org/en/Category:technology
This could trigger a standard action (like a Category.filter action
receiving the node 'technology')
Is there some (non-hacking) way to do that?
Lu=EDs Eduardo Jason Santos
------=_Part_20039_19146041.1232377698251
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi, list!<br><br>I was wondering this weekend while trying to import my Wik=
iMedia data to Sputnik:<br>Is there a way of creating a node that kind of &=
#39;filters' another node, passed to him as a parameter?<br><br>I am th=
inking something in the line of:<br>
<br><a href=3D"http://spoo.tnik.org/en/Tags:technology">http://spoo.tnik.or=
g/en/Tags:technology</a><br><a href=3D"http://spoo.tnik.org/en/Category:tec=
hnology">http://spoo.tnik.org/en/Category:technology</a><br><br>This could =
trigger a standard action (like a Category.filter action receiving the node=
'technology')<br>
<br>Is there some (non-hacking) way to do that?<br><br clear=3D"all">Lu=EDs=
Eduardo Jason Santos<br>
------=_Part_20039_19146041.1232377698251--
--===============1017179364==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
--===============1017179364==--
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:51 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:51 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.161.20 with SMTP id j20cs86483wfe;
Mon, 19 Jan 2009 07:20:00 -0800 (PST)
Received: by 10.100.47.13 with SMTP id u13mr2928418anu.106.1232378399150;
Mon, 19 Jan 2009 07:19:59 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id b32si3840504ana.35.2009.01.19.07.19.48;
Mon, 19 Jan 2009 07:19:58 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LOxk4-0004aj-3w; Mon, 19 Jan 2009 15:16:52 -0200
Received: from yw-out-2324.google.com ([74.125.46.31])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LOxk1-0004ae-Tr
for sputnik-list@lists.luaforge.net; Mon, 19 Jan 2009 15:16:50 -0200
Received: by yw-out-2324.google.com with SMTP id 2so1020629ywt.89
for <sputnik-list@lists.luaforge.net>;
Mon, 19 Jan 2009 07:19:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from:to
:subject:cc:in-reply-to:mime-version:content-type
:content-transfer-encoding:content-disposition:references;
bh=4unohtUJcYqLRoY/dEZ+DV4b7232mZvL8dMWZIUsz4c=;
b=mGv8oisZGjMlzMBRbrKx0fvWPlq3SG1OQw+bSXuiY+g24UWnwUfgIyHONzA263ezoN
QZi8SBKSRAH5BkUNw4XGyEt1HZVmYm5k1SJXUsYCboay99/1iIC3z56kA/+bnuBR3b3v
ym+9EaFtRP0j+k8WEL4e/G7OeLc6ofFXiGweo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=message-id:date:from:to:subject:cc:in-reply-to:mime-version
:content-type:content-transfer-encoding:content-disposition
:references;
b=sM0wDmN5Bz+NSXsIW5YAAmBgnLMTckp22/c53A3FA+394Wf6WDoVdAwaj5oP2D6kqm
fHyhZ0HADg4YFMxDeoiyx9XBFFyUxKstH6ax8tr4jseckGFjZptMJTSEXNoIfVd2yeO4
/8GujeLIqfas5L95pwLoISOIPZyYsevVk1pho=
Received: by 10.150.201.2 with SMTP id y2mr6092949ybf.242.1232378379609;
Mon, 19 Jan 2009 07:19:39 -0800 (PST)
Received: by 10.150.227.21 with HTTP; Mon, 19 Jan 2009 07:19:39 -0800 (PST)
Message-ID: <5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
Date: Mon, 19 Jan 2009 15:19:39 +0000
From: "Jim Whitehead II" <jnwhiteh@gmail.com>
To: "=?ISO-8859-1?Q?Lu=EDs_Eduardo_Jason_Santos?=" <jasonsantos@gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
In-Reply-To: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
Cc: sputnik-list@lists.luaforge.net
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
On Mon, Jan 19, 2009 at 3:08 PM, Lu=EDs Eduardo Jason Santos
<jasonsantos@gmail.com> wrote:
> Hi, list!
>
> I was wondering this weekend while trying to import my WikiMedia data to
> Sputnik:
> Is there a way of creating a node that kind of 'filters' another node,
> passed to him as a parameter?
>
> I am thinking something in the line of:
>
> http://spoo.tnik.org/en/Tags:technology
> http://spoo.tnik.org/en/Category:technology
>
> This could trigger a standard action (like a Category.filter action
> receiving the node 'technology')
>
> Is there some (non-hacking) way to do that?
>
> Lu=EDs Eduardo Jason Santos
That's an interesting question. The only way I can think of
accomplishing this in the current version of Sputnik would be to use
prefix patterns or child defaults and create the URLs like so:
http://spoo.tnik.org/en/Tags/technology
http://spoo.tnik.org/en/Category/technology
I'm not sure if child defaults can handle patterns (I'd have to look)
but if so you'd just set it so that any child node of /Tags is set to
use a custom action for viewing that handles scanning the valid nodes
in your wiki and displaying those with the correct tags (or
categories).
If you are using non-clean URLs you can include a new GET parameter
without making things any nastier and you can access that directly
through the request in your custom action.
I'm interested in the concept of being able to pass parameters to a
given node rather than always having to access a sub-node. That could
open up a lot of really nice applications that right now aren't
terribly easy to accomplish.
- Jim
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:52 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:52 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.161.20 with SMTP id j20cs88271wfe;
Mon, 19 Jan 2009 07:57:19 -0800 (PST)
Received: by 10.100.143.14 with SMTP id q14mr4014989and.47.1232380638068;
Mon, 19 Jan 2009 07:57:18 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id c37si2457890ana.22.2009.01.19.07.57.08;
Mon, 19 Jan 2009 07:57:17 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LOyK9-0004jo-Tg; Mon, 19 Jan 2009 15:54:09 -0200
Received: from yw-out-2324.google.com ([74.125.46.30])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LOyK8-0004jj-UG
for sputnik-list@lists.luaforge.net; Mon, 19 Jan 2009 15:54:09 -0200
Received: by yw-out-2324.google.com with SMTP id 2so1029387ywt.89
for <sputnik-list@lists.luaforge.net>;
Mon, 19 Jan 2009 07:56:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=w4VApP+boXXq1tV71dLsEvEzNPRC+NPFk2DBFc2UADA=;
b=Jq4R12xGk8LKtBIDYJU9TAhO1Nm39m/fB+iQKBvIa4NBrtgEnPFwt8NGghojWR+/8q
fW2rw6Ax3TD5Svh2htiE9jRsi5S36xWfl4r1m4Q7H2P1czM4Jga4TXOlZAevaSChP+tt
4vIiiJGl3dUR82Br+kqIq6CDFBkM8NBYBqKG8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=ulsBfkRlIpxIAfiNh7FabGwNZuiUz8x1BgklweOSzz8OjARSXQO93NEWoXtW8HphOv
NVgfcp6mibQxHPZru0lKIFgwcyBOlj3Wjp1BswMTCNHzur8T3YnF09rYVeToGohWN2hF
XB4oWzaJYt/DdPhQdP1PtoLNPtWu6E1Kchlt4=
MIME-Version: 1.0
Received: by 10.231.15.73 with SMTP id j9mr590443iba.52.1232380619261; Mon, 19
Jan 2009 07:56:59 -0800 (PST)
In-Reply-To: <5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
Date: Mon, 19 Jan 2009 13:56:59 -0200
X-Google-Sender-Auth: caafb7352cbb19fa
Message-ID: <92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Andre Carregal <carregal@fabricadigital.com.br>
To: Jim Whitehead II <jnwhiteh@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: sputnik-list@lists.luaforge.net
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
On Mon, Jan 19, 2009 at 1:19 PM, Jim Whitehead II <jnwhiteh@gmail.com> wrot=
e:
> ...
> I'm interested in the concept of being able to pass parameters to a
> given node rather than always having to access a sub-node. That could
> open up a lot of really nice applications that right now aren't
> terribly easy to accomplish.
I also would like having such kind of "path processing". OTOH, this
may impose a certain load on the dispatcher (I'm not sure how it is
working currently)...
One way to interpret the URLs would be to walk them from the left
asking for each part that was a node name if it has some specific
method (say "node_handler") and if so, call "node_handler" passing the
remaining parts of the URL.
>>From there, a node such as "category" could use its "parameter" (in
this example "/technology") in whatever way it wanted.
Note that this is very close to controllers in the "standard MVC" web
implementations, which could be a good or bad thing... :o)
Andr=E9
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:52 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:52 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.161.20 with SMTP id j20cs88569wfe;
Mon, 19 Jan 2009 08:03:24 -0800 (PST)
Received: by 10.101.1.11 with SMTP id d11mr3998601ani.113.1232381003646;
Mon, 19 Jan 2009 08:03:23 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id b32si3905172ana.35.2009.01.19.08.03.13;
Mon, 19 Jan 2009 08:03:23 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LOyQ4-00058o-2S; Mon, 19 Jan 2009 16:00:16 -0200
Received: from yx-out-2324.google.com ([74.125.44.29])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LOyQ3-00055H-F1
for sputnik-list@lists.luaforge.net; Mon, 19 Jan 2009 16:00:15 -0200
Received: by yx-out-2324.google.com with SMTP id 3so1031846yxj.89
for <sputnik-list@lists.luaforge.net>;
Mon, 19 Jan 2009 08:03:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from:to
:subject:cc:in-reply-to:mime-version:content-type
:content-transfer-encoding:content-disposition:references;
bh=TcOnSYmFHaPiEjWvYcCN2vAqZOxwoXRWG3c2sSLV/JE=;
b=qD/geELgESP0W6PKNhzS8HRLP5vPi3QId2kAZK7tl/HMgqKdhMlDL2uSk0M1dDs6a9
Txs5lYwBIY5CVtDJHXMT1fpvynKU8x+IDe/b86KQo5eBkRO6jyT2z4VZ1w7S7DHIsdnv
L0XR/xCQX3m6HUL3Ir/L53ejlfWWMlqGke1GM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=message-id:date:from:to:subject:cc:in-reply-to:mime-version
:content-type:content-transfer-encoding:content-disposition
:references;
b=NM1BTfw2lbdBTkOF5cX6KcCWxYZNsWFxpAStFWAgEtOJmuQdPHyGGqe+B/D/HDF9mV
0DlvkBlXkIXsnLtfZ70u5VXYPMzoM1TxT/8CvifNzkklr2xy/LuLGALXWQ9xgeJtJvZa
OnKj/nvpM/rtIj4XszbrhqXXKSKHAVvb9+OBE=
Received: by 10.151.155.9 with SMTP id h9mr12055604ybo.25.1232380985936;
Mon, 19 Jan 2009 08:03:05 -0800 (PST)
Received: by 10.150.227.21 with HTTP; Mon, 19 Jan 2009 08:03:05 -0800 (PST)
Message-ID: <5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
Date: Mon, 19 Jan 2009 16:03:05 +0000
From: "Jim Whitehead II" <jnwhiteh@gmail.com>
To: "Andre Carregal" <carregal@fabricadigital.com.br>
Subject: Re: [Sputnik-list] Filter nodes
In-Reply-To: <92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
<92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
Cc: sputnik-list@lists.luaforge.net
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
On Mon, Jan 19, 2009 at 3:56 PM, Andre Carregal
<carregal@fabricadigital.com.br> wrote:
> On Mon, Jan 19, 2009 at 1:19 PM, Jim Whitehead II <jnwhiteh@gmail.com> wr=
ote:
>> ...
>> I'm interested in the concept of being able to pass parameters to a
>> given node rather than always having to access a sub-node. That could
>> open up a lot of really nice applications that right now aren't
>> terribly easy to accomplish.
>
> I also would like having such kind of "path processing". OTOH, this
> may impose a certain load on the dispatcher (I'm not sure how it is
> working currently)...
>
> One way to interpret the URLs would be to walk them from the left
> asking for each part that was a node name if it has some specific
> method (say "node_handler") and if so, call "node_handler" passing the
> remaining parts of the URL.
Currently the URL is processed from right-to-left, checking to see if
the full node name exists and if not checking to see if the "parent"
exists. It continues this until it reaches a node that contains the
information necessary,
Perhaps the logic could be altered to check the full node node, and
process from left to right otherwise. I'm not sure which is the more
likely use case, but I do agree this would give us quite a bit of
flexibility.
> From there, a node such as "category" could use its "parameter" (in
> this example "/technology") in whatever way it wanted.
>
> Note that this is very close to controllers in the "standard MVC" web
> implementations, which could be a good or bad thing... :o)
>
> Andr=E9
>
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:52 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:52 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.161.20 with SMTP id j20cs89522wfe;
Mon, 19 Jan 2009 08:20:55 -0800 (PST)
Received: by 10.100.154.17 with SMTP id b17mr1129910ane.155.1232382053363;
Mon, 19 Jan 2009 08:20:53 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id c29si5917808anc.43.2009.01.19.08.20.43;
Mon, 19 Jan 2009 08:20:52 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LOygz-00066T-46; Mon, 19 Jan 2009 16:17:45 -0200
Received: from yw-out-1718.google.com ([74.125.46.158])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LOygy-00066O-Ax
for sputnik-list@lists.luaforge.net; Mon, 19 Jan 2009 16:17:44 -0200
Received: by yw-out-1718.google.com with SMTP id 9so2676047ywk.64
for <sputnik-list@lists.luaforge.net>;
Mon, 19 Jan 2009 08:20:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=23v/nMZ22NdHu1BOJcEHx50i3D6oEoVqeXgCiVN/9kc=;
b=VI7XJu/LitRXAiyt13l2350sW4h9Ar+zuATOgTkg158XxgRzFrbWdd/yik5YPODxpQ
lHTHYQG8938nj3MqNxlnXGzn13FyB+jEkFo4rhOAOa4cP9aThvxJimFvoUpYzqjzw00Y
hxH01GmSO9LH09t9RTei9GeIS6lXnkOBwAmlM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=YRQsDJB3LXxvHb9OevfOmaAROeK05vT5nSkqg72y2pPzjfisT1M6quESTBqjRwzNkM
x6HSwwAuWlNCTM0wCMHHNhPuOwHB24ak8SPulI93bB76MvYlC1uNBezxbt0WWegCuzOd
TE+S0x6tfNPGNgAroSbP6cuAWo1Ue6mLyl3c4=
MIME-Version: 1.0
Received: by 10.231.19.72 with SMTP id z8mr597082iba.42.1232382034736; Mon, 19
Jan 2009 08:20:34 -0800 (PST)
In-Reply-To: <5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
<92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
<5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
Date: Mon, 19 Jan 2009 14:20:34 -0200
X-Google-Sender-Auth: a6f45e37231cff94
Message-ID: <92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Andre Carregal <carregal@fabricadigital.com.br>
To: Jim Whitehead II <jnwhiteh@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: sputnik-list@lists.luaforge.net
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
On Mon, Jan 19, 2009 at 2:03 PM, Jim Whitehead II <jnwhiteh@gmail.com> wrot=
e:
>...
> Perhaps the logic could be altered to check the full node node, and
> process from left to right otherwise. I'm not sure which is the more
> likely use case, but I do agree this would give us quite a bit of
> flexibility.
I guess a standard wiki would benefit from a full URL lookup (as the
current dispatcher does), but a more MVC oriented application would be
able to fully explore a left to right parsing.
I agree that we could check the full path just as today, and then try
the left to right approach, but I'd like to check what could happen
with the current collections processing. Yuri, have you already
landed? :o)
Andr=E9
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:53 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:53 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.161.20 with SMTP id j20cs124218wfe;
Mon, 19 Jan 2009 20:15:45 -0800 (PST)
Received: by 10.100.41.9 with SMTP id o9mr1975435ano.39.1232424945032;
Mon, 19 Jan 2009 20:15:45 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id d12si4865485and.24.2009.01.19.20.15.35;
Mon, 19 Jan 2009 20:15:44 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LP9qg-0007Al-C4; Tue, 20 Jan 2009 04:12:30 -0200
Received: from rv-out-0506.google.com ([209.85.198.239])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LP9qe-0007Ag-IJ
for sputnik-list@lists.luaforge.net; Tue, 20 Jan 2009 04:12:28 -0200
Received: by rv-out-0506.google.com with SMTP id k40so2975898rvb.29
for <sputnik-list@lists.luaforge.net>;
Mon, 19 Jan 2009 20:15:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=pKFsx6im2juhTljsiYuVPIr//iUROA2QqVYKpOBnoDs=;
b=fiWmM1h3UqVCEzv005qoRod93dAr1SgSb1u4ozV3n7D/Ng5w6Zz1R8u2U2cU8V5rAN
fmXMHD2jJ0Ab3eUGapdNmiTEFbxV9ZSVZQVxCScjXo1uYeBibl19fLpRjwXMMoL1wPc8
hOYrjNoNJofuv3DmUGLWLPnlVJlZMjpULghxQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=aMVGE3OkNNRihsQrshjxCUFjxZTMO7DuZQ5cPsP8Yj2Ltf1VEqu5bbASZ/Dvw84n5B
qvlUxXyc0qPaHjCAylnG+69P8EUlVFgIghqI26RadurC7YDP4nb/6Svybxdlt8G+paGr
vKC0ImY4xCXkSFBy+/bzQ+9mO/w3OY4jCSYJ8=
MIME-Version: 1.0
Received: by 10.141.75.17 with SMTP id c17mr3172120rvl.169.1232424919271; Mon,
19 Jan 2009 20:15:19 -0800 (PST)
In-Reply-To: <5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
Date: Mon, 19 Jan 2009 20:15:19 -0800
X-Google-Sender-Auth: 2b13fcd7302b04c0
Message-ID: <fa4efbc00901192015x7ffac244tea7ffa8a86f8f162@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Yuri Takhteyev <yuri@sims.berkeley.edu>
To: Jim Whitehead II <jnwhiteh@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: sputnik-list@lists.luaforge.net
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
> I'm not sure if child defaults can handle patterns (I'd have to look)
> but if so you'd just set it so that any child node of /Tags is set to
> use a custom action for viewing that handles scanning the valid nodes
> in your wiki and displaying those with the correct tags (or
> categories).
They do, but you don't need it in this case. It is easier to just use
child_defaults.any to capture all children, and then sort them out in
the action function.
Let me give a somewhat longer explanation. When you ask for foo/bar,
Sputnik first checks if there is actually a node called foo/bar. If
there is, then this node is sent the command. If there isn't, then we
look up node "foo" and look at a field called "child_defaults". This
field tells us what to do when a child of the node is requested but
does not exist. This field evaluates to a Lua table and has several
subfields. One of them is "any". If child_defaults.any is set, then
its value is returned for _any_ child (unless the child exists or a
more specific rule is matched first).
The value of child_default.any is a table that simulates a node. For
example, suppose we create a node called "tags" and set child_defaults
to
any = [[
prototype="@tag"
]]
Then, a request for "tags/technology" will return a node that would be
blank, apart from the fact that it would have its prototype set to
"@tag" and also - and this is important - would have its "id" field
set to "tags/technology". In other words, the returned node will look
like this:
node = {
prototype="@tag",
id = "tags/technology"
}
The rest of the magic can go into the "@tag" node. For instance, we
can set the actions fields of @tag so that "show" is mapped to a
function show_nodes_matching_tag(). "tags/technology" will inherit
this action field from "@tag". All that is then left to do is to have
show_nodes_matching_tag() check the id field of the node that it gets
passed, and work based on that:
actions.show_nodes_matching_tag = function(node, request, sputnik)
local nodes = some_way_of_doing_a_query(node.id:match("[^/]$"))
...
end
Now, onto actual filtering. From inside the action function, you have
access to the sputnik instance (passed in as the third parameter) and
thus to the saci repository. Sputnik wraps some of saci methods, so
let's assume you'll be using the wrappers when available. This
currently gives you two fully legit methods for accessing other nodes:
another_node = sputnik:get_node(id, version)
ids = sputnik:get_node_names{prefix="foo", limit=200}
This gives you a terribly inefficient way of looking for nodes by tag:
iterating through all of them. This works for a small number of nodes,
but it doesn't scale.
There is also a third method, which, however, is unofficial and will
likely be removed:
nodes = sputnik.saci:query_nodes({"tags"}, "technology", "some_prefix")
This method is more like what you want, probably. The problem with it
is that it's wildly inefficient. It is basically almost as bad as
iterating through the nodes yourself, it just makes a few shortcuts.
Again, it works OK for a small number of nodes, and if you use a long
running process and cache the results, it can work OK even for a few
thousand nodes. However, it's ugly.
To make such query work well, we would essentially need to reimplement
an efficient index. I am not sure I want to do this. I think a better
approach would be to use an existing index, perhaps come up with a
unified API for querying (within limits), and then integrate this very
thinly with Sputnik or Saci:
hits = sputnik.indices.default:query("tags:technology AND ...")
Again, I'll be up for doing this integration, once we have bindings to
Xapian or something like that.
> I'm interested in the concept of being able to pass parameters to a
> given node rather than always having to access a sub-node. That could
> open up a lot of really nice applications that right now aren't
> terribly easy to accomplish.
This _is_ possible. Selecting nodes based on the value of fields is
hard. But passing the id of one node to another is trivial. For
instance, if we wanted to do something like translator/foo which
returns a translation of node foo into another language, we can do
this trivially using the method I described above.
- yuri
--
http://spu.tnik.org/
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:53 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:53 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.161.20 with SMTP id j20cs124434wfe;
Mon, 19 Jan 2009 20:23:52 -0800 (PST)
Received: by 10.100.140.20 with SMTP id n20mr1685405and.135.1232425431939;
Mon, 19 Jan 2009 20:23:51 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id d12si3149533and.4.2009.01.19.20.23.42;
Mon, 19 Jan 2009 20:23:51 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LP9ye-0007Bf-Jw; Tue, 20 Jan 2009 04:20:44 -0200
Received: from rv-out-0506.google.com ([209.85.198.227])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LP9yd-0007Ba-PQ
for sputnik-list@lists.luaforge.net; Tue, 20 Jan 2009 04:20:43 -0200
Received: by rv-out-0506.google.com with SMTP id k40so2978816rvb.29
for <sputnik-list@lists.luaforge.net>;
Mon, 19 Jan 2009 20:23:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=J0vQ3aqg0RT08/K9j420UpoyhGeqcuxSSA9inkZuYFk=;
b=xsnP0z1sYune2fY7O4iZOIoOyJprSO9Jog4nL9db6hx1o3wniGyIe0SI5Ck4ttCN1N
sJsIXjZjbO0IdyAdlCgjH+tlodOpEoOXErPXu4tZbkLDvDN9BBMuN71tY7ZXvm30ehCQ
pIOxqpcVd7tDES2XVbUkY33kjh4K7TQq6Kcjc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=h47pRf88QpzEqK/ZqBl6kd2EakhwVxIor4OVT3nxsRuFAPpBmjhjy9A3WJO/Oxt9H2
x23DVMtLN90bGEpLDCVcre4XCG9tSa9AOaU6WUCv+DOlH1ahus6Gmuka6SEzaFlTYJa6
eS5Rptxe3IFtiAfp2e2vr7kc3vJzIeNeDRYJY=
MIME-Version: 1.0
Received: by 10.140.250.14 with SMTP id x14mr219281rvh.79.1232425414601; Mon,
19 Jan 2009 20:23:34 -0800 (PST)
In-Reply-To: <92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
<92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
<5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
<92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
Date: Mon, 19 Jan 2009 20:23:34 -0800
X-Google-Sender-Auth: efa9034a1590d95c
Message-ID: <fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Yuri Takhteyev <yuri@sims.berkeley.edu>
To: Andre Carregal <carregal@fabricadigital.com.br>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: sputnik-list@lists.luaforge.net
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
> I guess a standard wiki would benefit from a full URL lookup (as the
> current dispatcher does), but a more MVC oriented application would be
> able to fully explore a left to right parsing.
We can have both, I suppose. The order for looking up foo/bar could be:
1. Check child_handlers field in foo. If it's defined, use it.
2. Check if foo/bar exists in storage. If so, use it.
3. Check child_defaults field in foo. If it's defined, use it.
4. If still nothing, return a blank node.
This _would_ require retrieval of an additional node, but apart from
that it would not be too demanding, since in a typical case we'll just
get "foo", check it's child_handlers, find nothing and come back to
today's strategy.
> Yuri, have you already landed? :o)
Yes. (I am back in California after a month in Brazil.)
- yuri
--
http://spu.tnik.org/
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:54 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:54 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.12.9 with SMTP id 9cs164253wfl;
Tue, 20 Jan 2009 15:49:58 -0800 (PST)
Received: by 10.100.178.9 with SMTP id a9mr5281316anf.59.1232495397192;
Tue, 20 Jan 2009 15:49:57 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id c29si6467371anc.23.2009.01.20.15.49.47;
Tue, 20 Jan 2009 15:49:56 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LPSAi-0000K1-63; Tue, 20 Jan 2009 23:46:25 -0200
Received: from qw-out-2122.google.com ([74.125.92.24])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LPSAL-0000Jw-4Q
for sputnik-list@lists.luaforge.net; Tue, 20 Jan 2009 23:46:01 -0200
Received: by qw-out-2122.google.com with SMTP id 5so710199qwi.53
for <sputnik-list@lists.luaforge.net>;
Tue, 20 Jan 2009 15:48:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=IKuS1YKSC6IC441qSIUNOhOMTeQkGyiuIcXGcKqRZ44=;
b=R36ypLPpFF1Xhi53dm3JGWH8ab/7H2S4J1FO5MB9DGek1QD8fta/Xmthj49JZy6gll
+GErtYe24LJOaC0QbHeU+lt1H94a1l9zemEHRW/7ZxDC2ZYtawanhtqF7/wAIKloipmm
FdcAjzT3qwX9wFHIJ7bn4/K0fhJf/vyhN4cTg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=np92BNp6OWkajESfpvd0gljHF3fBvC5Dd9sOc2sK5GiVQR0RlI6xpBs/ewb9Nb0u3P
qo5Z4hz2ykGhCOqIeFLLQqpAqM+fwyHihbILIbHLnbQ15vopVYU348ezkRhH3SpY+bIC
uDpuBtv1YBOTlxy8qW6WwRfZAXCQ0pZjBIMzU=
MIME-Version: 1.0
Received: by 10.215.15.5 with SMTP id s5mr2778849qai.102.1232494990669; Tue,
20 Jan 2009 15:43:10 -0800 (PST)
In-Reply-To: <fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
<92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
<5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
<92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
<fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
Date: Tue, 20 Jan 2009 21:43:10 -0200
X-Google-Sender-Auth: d6ca1122d08a23a1
Message-ID: <92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Andre Carregal <carregal@fabricadigital.com.br>
To: Yuri Takhteyev <yuri@sims.berkeley.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: sputnik-list@lists.luaforge.net
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
On Tue, Jan 20, 2009 at 2:23 AM, Yuri Takhteyev <yuri@sims.berkeley.edu> wr=
ote:
> We can have both, I suppose. The order for looking up foo/bar could be:
>
> 1. Check child_handlers field in foo. If it's defined, use it.
> 2. Check if foo/bar exists in storage. If so, use it.
> 3. Check child_defaults field in foo. If it's defined, use it.
> 4. If still nothing, return a blank node.
>
> This _would_ require retrieval of an additional node, but apart from
> that it would not be too demanding, since in a typical case we'll just
> get "foo", check it's child_handlers, find nothing and come back to
> today's strategy.
+1
Andr=E9
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:54 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:54 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.12.9 with SMTP id 9cs167850wfl;
Tue, 20 Jan 2009 17:19:10 -0800 (PST)
Received: by 10.100.154.17 with SMTP id b17mr2421527ane.155.1232500749174;
Tue, 20 Jan 2009 17:19:09 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id d12si9250338and.44.2009.01.20.17.18.53;
Tue, 20 Jan 2009 17:19:08 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LPTZB-00031S-KC; Wed, 21 Jan 2009 01:15:45 -0200
Received: from yw-out-2324.google.com ([74.125.46.28])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LPTZ8-00031N-U1
for sputnik-list@lists.luaforge.net; Wed, 21 Jan 2009 01:15:43 -0200
Received: by yw-out-2324.google.com with SMTP id 2so1341592ywt.89
for <sputnik-list@lists.luaforge.net>;
Tue, 20 Jan 2009 17:18:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:received:in-reply-to:references
:date:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
bh=JKzDRZ0ra4J1Vqg/Vf78ezw9pz1Uzi0JOSMs+DTp8T0=;
b=p7IdHmI1+xqPv9qLb6AmuQ903Gli1Xi9Qme3nREq6q7/IOPoAE5ovGoMhwYVoF5nAQ
JGyVfJNYwwGzB6RoNLULlnz+qBFmwMMOjSv3pT2Hon8n6i98NEnfUQjzt9w//kW/ugL8
lzZtP4YY+7wQ8703UOCBRrzExXFsNnd+a19XU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:cc:content-type:content-transfer-encoding;
b=slIXL+l25Klb/ZWqoLyJybxH2N4PmmS22JOKZ7DkVXZ7+seTwqStMKIrBYz8dusLXy
NZs7Enxrr/+SSVE5k0JCiOe5yQP7K+xY1oBAkPHzK5Su9Yuq1rTi2l3aIwF2T7jp218D
OEVzdMwWS8JdwtVZ53JvBw2S6mcsV7NsSJeKw=
MIME-Version: 1.0
Received: by 10.151.39.21 with SMTP id r21mr4412449ybj.219.1232500715499; Tue,
20 Jan 2009 17:18:35 -0800 (PST)
In-Reply-To: <92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
<92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
<5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
<92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
<fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
<92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
Date: Wed, 21 Jan 2009 01:18:35 +0000
Message-ID: <5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Jim Whitehead II <jnwhiteh@gmail.com>
To: Andre Carregal <carregal@fabricadigital.com.br>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: sputnik-list@lists.luaforge.net
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
On Tue, Jan 20, 2009 at 11:43 PM, Andre Carregal
<carregal@fabricadigital.com.br> wrote:
> On Tue, Jan 20, 2009 at 2:23 AM, Yuri Takhteyev <yuri@sims.berkeley.edu> wrote:
>> We can have both, I suppose. The order for looking up foo/bar could be:
>>
>> 1. Check child_handlers field in foo. If it's defined, use it.
>> 2. Check if foo/bar exists in storage. If so, use it.
>> 3. Check child_defaults field in foo. If it's defined, use it.
>> 4. If still nothing, return a blank node.
>>
>> This _would_ require retrieval of an additional node, but apart from
>> that it would not be too demanding, since in a typical case we'll just
>> get "foo", check it's child_handlers, find nothing and come back to
>> today's strategy.
>
> +1
I would argue pretty heavily against doing anything before checking to
see if the full node exists. I don't see what the above gains us that
we don't have by swapping 1 and 2. I agree with the overall change in
strategy.
- Jim
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:54 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:54 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.12.9 with SMTP id 9cs169008wfl;
Tue, 20 Jan 2009 17:54:17 -0800 (PST)
Received: by 10.100.141.10 with SMTP id o10mr5345691and.41.1232502856593;
Tue, 20 Jan 2009 17:54:16 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id b32si9232678ana.55.2009.01.20.17.54.05;
Tue, 20 Jan 2009 17:54:16 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LPU7L-00037A-Ig; Wed, 21 Jan 2009 01:51:03 -0200
Received: from rv-out-0506.google.com ([209.85.198.231])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LPU7K-000374-BR
for sputnik-list@lists.luaforge.net; Wed, 21 Jan 2009 01:51:02 -0200
Received: by rv-out-0506.google.com with SMTP id k40so3443340rvb.29
for <sputnik-list@lists.luaforge.net>;
Tue, 20 Jan 2009 17:53:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=JSZ9KTALjLpNYheBPnmE9K5yfFHXmcG3uapDvpjrn78=;
b=XlfFGiekg1aZsae/ZFrASUDHZ8PR11lBGd5gbDBKiyL2UCG4/I13i4QxxYdLBtKd4C
MVpCre6TViHi6Pb1+wx0DZ+fpnVzoV3c3BXYqTG2N0uvphS17sIZ+Q9Rb5H0EwJLCbjv
/2U8JQPNn4qDYd26Tre6O+LdM5WsHFW+oqY5I=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=cpOyseQDAClHJMGIooawfW4FhM2TcL3YAYICKri7D5QUL0QVeqDKyyB4IswaPivcKB
2GpcWTQ9c9Wy361/DdW88QVnwufI+oylNXsoAL4umFHtCcWJWZhVyvUdPsMJ8CpYlB4F
XNzVY1selGyrah2T/pfA3ztmMzGb0/rkgbdY0=
MIME-Version: 1.0
Received: by 10.140.203.9 with SMTP id a9mr3677167rvg.289.1232502829824; Tue,
20 Jan 2009 17:53:49 -0800 (PST)
In-Reply-To: <5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901190719u7cdf2386v32d1aa4581b17152@mail.gmail.com>
<92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
<5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
<92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
<fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
<92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
<5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
Date: Tue, 20 Jan 2009 17:53:49 -0800
X-Google-Sender-Auth: ee92a879120ebfd9
Message-ID: <fa4efbc00901201753y2601fcbes7dea82293d065c23@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Yuri Takhteyev <yuri@sims.berkeley.edu>
To: Jim Whitehead II <jnwhiteh@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: sputnik-list@lists.luaforge.net
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
> I would argue pretty heavily against doing anything before checking to
> see if the full node exists. I don't see what the above gains us that
> we don't have by swapping 1 and 2. I agree with the overall change in
> strategy.
I am not sure what you mean. If we switch 1 and 2 then we are
essentially back to where we are right now, unless there is a clear
difference between child_handlers and child_defaults. (If they both
happen after checking the node, then they might as well be merged.) So
there is not change in strategy. Which perhaps is fine.
I think we need specific use cases before we understand if a change is
worthwhile at this point. If we cannot come up with specific examples
of things that we cannot do with the current design, then I would
stick with what we have for now.
- yuri
--
http://spu.tnik.org/
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:55 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:55 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.12.9 with SMTP id 9cs240459wfl;
Thu, 22 Jan 2009 08:21:51 -0800 (PST)
Received: by 10.100.137.12 with SMTP id k12mr4337786and.55.1232641310374;
Thu, 22 Jan 2009 08:21:50 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id b7si12883900ana.19.2009.01.22.08.21.40;
Thu, 22 Jan 2009 08:21:49 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LQ48L-0001JJ-Eb; Thu, 22 Jan 2009 16:18:29 -0200
Received: from rv-out-0506.google.com ([209.85.198.239])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LQ48J-0001JE-IA
for sputnik-list@lists.luaforge.net; Thu, 22 Jan 2009 16:18:27 -0200
Received: by rv-out-0506.google.com with SMTP id k40so4265885rvb.29
for <sputnik-list@lists.luaforge.net>;
Thu, 22 Jan 2009 08:21:19 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.226.14 with SMTP id y14mr2105602rvg.237.1232610124629;
Wed, 21 Jan 2009 23:42:04 -0800 (PST)
In-Reply-To: <5fe281d40901210334p736e14b1s7ffeef80eea19a36@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
<5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
<92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
<fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
<92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
<5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
<fa4efbc00901201753y2601fcbes7dea82293d065c23@mail.gmail.com>
<5fe281d40901210333v27995e45o1a32dce48c42d0d5@mail.gmail.com>
<5fe281d40901210334p736e14b1s7ffeef80eea19a36@mail.gmail.com>
Date: Wed, 21 Jan 2009 23:42:04 -0800
X-Google-Sender-Auth: f55b1dd3f57df685
Message-ID: <fa4efbc00901212342t7fa9db34v46e9e7f863c68a22@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Yuri Takhteyev <yuri@sims.berkeley.edu>
To: Jim Whitehead II <jnwhiteh@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Sputnik <sputnik-list@lists.luaforge.net>
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
Let me look a little more closely at the current implementation and
think about before continuing this thread. This week is quite busy,
but hopefully over the weekend or next week...
- yuri
> To be a bit clearer, hopefully, I'm not sure I understand why we're
> considering such a change in behavior when we can add parameters like
> we're discussing without altering the way things currently work.
--
http://spu.tnik.org/
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:56 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:56 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.12.9 with SMTP id 9cs373094wfl;
Mon, 26 Jan 2009 01:49:54 -0800 (PST)
Received: by 10.100.168.1 with SMTP id q1mr3163776ane.40.1232963393459;
Mon, 26 Jan 2009 01:49:53 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id b32si21714205ana.55.2009.01.26.01.49.41;
Mon, 26 Jan 2009 01:49:53 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LRPv6-0001vA-16; Mon, 26 Jan 2009 09:46:24 -0200
Received: from rv-out-0506.google.com ([209.85.198.239])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LRPv4-0001v5-7h
for sputnik-list@lists.luaforge.net; Mon, 26 Jan 2009 09:46:22 -0200
Received: by rv-out-0506.google.com with SMTP id k40so5760772rvb.29
for <sputnik-list@lists.luaforge.net>;
Mon, 26 Jan 2009 01:49:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=STHH/SogHa6gcodM2KlOVX7C6jJ9MQWeCNSiZiRbuJc=;
b=UN+s7eGDcntZBJL0mQxydJG/D7COABURWX1DRP1+AdF1auK2EkNkZaONSY6IVAU5IQ
+fDQcdxwZAAGudZP0LuOt8Z5owccNV2Vr23DK8DdPzrts/6JLDZfQrg0URUrThglUqw6
7QRFvrtvTQupR88q7ID3sYqICOlQ8vNQuAsRQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=Xj/u00cDdHnxAqb7evPSVaFjyrCsszWm/asQ3qRoYi+msvFFAsk/8ljb2G7m4mrSWV
l16N+0J1vvI8Z7xYl7BC7P7+Wdl6R/flK+WekTnfCK2jzQFPgJf5yW5Un7jnZw1PAV2r
BjwPyZK/wRGD5xlChs7LUDGVuZ7/fhRIocfN0=
MIME-Version: 1.0
Received: by 10.141.152.8 with SMTP id e8mr3385091rvo.77.1232963361375; Mon,
26 Jan 2009 01:49:21 -0800 (PST)
In-Reply-To: <5fe281d40901210334p736e14b1s7ffeef80eea19a36@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<92ab989c0901190756h1689fa44k4185822e434c8f2d@mail.gmail.com>
<5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
<92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
<fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
<92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
<5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
<fa4efbc00901201753y2601fcbes7dea82293d065c23@mail.gmail.com>
<5fe281d40901210333v27995e45o1a32dce48c42d0d5@mail.gmail.com>
<5fe281d40901210334p736e14b1s7ffeef80eea19a36@mail.gmail.com>
Date: Mon, 26 Jan 2009 01:49:21 -0800
X-Google-Sender-Auth: 4149d2afcf7bdf64
Message-ID: <fa4efbc00901260149m24dae2f1g3dfcf04e5cac8f1e@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Yuri Takhteyev <yuri@sims.berkeley.edu>
To: Jim Whitehead II <jnwhiteh@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Sputnik <sputnik-list@lists.luaforge.net>
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
> I prefer that the entire node id is always checked first. Its fast and
> if that node exists I would hope that you'd want to serve it. Failing
> that we can check the root node and work our way in the chain from
> left to right. Certainly even this changes the semantics of node
> processing now but I do not believe we have any cases where this would
> break anything.
So, the only thing I don't understand is why left-to-right?
Right-to-left means "if the node doesn't exist, ask its immediate
parent". This gives us natural recursion.
> My primary disagreement is not checking to see if the full node exists
> before taking any other action. It's the cheapest thing that we can
> do and it's the default case in a non-application heavy wiki.
Yes, I agree on this. I thought that this is we had already. But I was wrong.
I fixed this and it now does this:
saci:get_node(id):
parent, rest = string.match(id, "^(.+)/(.-)$")
first try versium:get_node(id)
otherwise try saci:get_node(parent):get_child(rest)
This means you start from the actual node, then fall back onto its
immediate parent, then at the parent's parent, etc. Nice and
recursive, no?
- yuri
--
http://spu.tnik.org/
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:56 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:56 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.12.9 with SMTP id 9cs380438wfl;
Mon, 26 Jan 2009 06:46:59 -0800 (PST)
Received: by 10.100.9.19 with SMTP id 19mr4513777ani.8.1232981218669;
Mon, 26 Jan 2009 06:46:58 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id d22si11234112and.7.2009.01.26.06.46.48;
Mon, 26 Jan 2009 06:46:58 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LRUYj-0000im-0i; Mon, 26 Jan 2009 14:43:37 -0200
Received: from mail-qy0-f20.google.com ([209.85.221.20])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LRUYh-0000ig-15
for sputnik-list@lists.luaforge.net; Mon, 26 Jan 2009 14:43:35 -0200
Received: by qyk13 with SMTP id 13so6765671qyk.5
for <sputnik-list@lists.luaforge.net>;
Mon, 26 Jan 2009 06:46:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=Pan4LDg7VvfUdQXJyO4F0KTjrCiMa9x/esgIHX0Fhok=;
b=bH+Jq4PNVHaoBBMARXGvUFFhBzOhPPzfu3betOgVRW7Ncl1CakkyvdRjpkkugdJAc5
cloznjWvPXoM2y7fnNXEjHQmsEXHbNIA44JvZW+chh2x8OQ1ytO5bOMFN2g6nrXFr2yB
+mnsRBXgFoEd2RqQDg5fpe30GIME9rKtBNmHg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=BMrs/4JCFmiNK2ojrKgD73QEO1Nd6DkVT48sIeazsmlwJygk4tnyQLFTiWfBg5ffPU
OxPl4Hc9aBaWGANEzZ3ahaacRq6lfucIC9cSqQ0rHQkMbQnNy95rx3oQYxLK4Mu81ZhX
eiVRUwT+wS9KvKuo2sPzAuaO6EecF1ZJyRixc=
MIME-Version: 1.0
Received: by 10.214.241.12 with SMTP id o12mr2869218qah.360.1232981165214;
Mon, 26 Jan 2009 06:46:05 -0800 (PST)
In-Reply-To: <fa4efbc00901260149m24dae2f1g3dfcf04e5cac8f1e@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901190803l314f23cav49d3b27c5257baf5@mail.gmail.com>
<92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
<fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
<92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
<5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
<fa4efbc00901201753y2601fcbes7dea82293d065c23@mail.gmail.com>
<5fe281d40901210333v27995e45o1a32dce48c42d0d5@mail.gmail.com>
<5fe281d40901210334p736e14b1s7ffeef80eea19a36@mail.gmail.com>
<fa4efbc00901260149m24dae2f1g3dfcf04e5cac8f1e@mail.gmail.com>
Date: Mon, 26 Jan 2009 12:46:05 -0200
X-Google-Sender-Auth: d712d2ddbb242527
Message-ID: <92ab989c0901260646i4d4407c8xc185dd000b19e9cd@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Andre Carregal <carregal@fabricadigital.com.br>
To: Yuri Takhteyev <yuri@sims.berkeley.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: Sputnik <sputnik-list@lists.luaforge.net>
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
On Mon, Jan 26, 2009 at 7:49 AM, Yuri Takhteyev <yuri@sims.berkeley.edu> wr=
ote:
> ...
> This means you start from the actual node, then fall back onto its
> immediate parent, then at the parent's parent, etc. Nice and
> recursive, no?
Nice and recursive. But still right to left... :o)
What about going all the way to the left and then trying to the right,
before giving up and reporting a "node not found"?
Andr=E9
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:57 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:57 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.12.9 with SMTP id 9cs15964wfl;
Tue, 27 Jan 2009 00:50:02 -0800 (PST)
Received: by 10.100.125.12 with SMTP id x12mr412896anc.4.1233046200896;
Tue, 27 Jan 2009 00:50:00 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id b37si15971621ana.17.2009.01.27.00.49.51;
Tue, 27 Jan 2009 00:50:00 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LRlSq-0001qN-8Y; Tue, 27 Jan 2009 08:46:40 -0200
Received: from rv-out-0506.google.com ([209.85.198.230])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LRlSo-0001qI-SH
for sputnik-list@lists.luaforge.net; Tue, 27 Jan 2009 08:46:39 -0200
Received: by rv-out-0506.google.com with SMTP id k40so6271037rvb.29
for <sputnik-list@lists.luaforge.net>;
Tue, 27 Jan 2009 00:49:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=MgBVwvBGxAzKPPOUxYWJmTwwyDIzCxWh+pLyjuxKL+4=;
b=iiSHWEaIVsR/RHO7y/1VKyCwrLxQ+TEi+D6RWVBn9x5sAHFvbDBG+CCVbqo3USsF3C
fuEdWygrnU/lXlZXx73CXXNzkOkMoQ0y6FX804LXe0mTKYkmGz5l+L1z1s5CMcB6/Kfg
SgDIvOkC2u0LFZwvBXN47eNjIWqMHWExxLltQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=JErepUHnkEq3s170X3aJ3BMF1JFeXSqldE0hNN3H+yNFC25tTTB/qdGXg1nwkBMKBG
MVmYJK4/Ci+sGkYM4fGZJCBL/h7zUvbGLfPAKHXURdfoIwHpQgZowQn/n5qJb/4cP3Gv
XLrZkL+IM05Hkjvg8cKvQZJHatkFcJ8XICga4=
MIME-Version: 1.0
Received: by 10.141.75.17 with SMTP id c17mr380750rvl.169.1233046179537; Tue,
27 Jan 2009 00:49:39 -0800 (PST)
In-Reply-To: <92ab989c0901260646i4d4407c8xc185dd000b19e9cd@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<92ab989c0901190820s5075e261i2314161a384a89cc@mail.gmail.com>
<fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
<92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
<5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
<fa4efbc00901201753y2601fcbes7dea82293d065c23@mail.gmail.com>
<5fe281d40901210333v27995e45o1a32dce48c42d0d5@mail.gmail.com>
<5fe281d40901210334p736e14b1s7ffeef80eea19a36@mail.gmail.com>
<fa4efbc00901260149m24dae2f1g3dfcf04e5cac8f1e@mail.gmail.com>
<92ab989c0901260646i4d4407c8xc185dd000b19e9cd@mail.gmail.com>
Date: Tue, 27 Jan 2009 00:49:39 -0800
X-Google-Sender-Auth: 836cbb833bf58df7
Message-ID: <fa4efbc00901270049i65ee2c9etbceec959864535b0@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Yuri Takhteyev <yuri@sims.berkeley.edu>
To: Andre Carregal <carregal@fabricadigital.com.br>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Sputnik <sputnik-list@lists.luaforge.net>
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
> Nice and recursive. But still right to left... :o)
Can you give an example of something that cannot be done with the
approach I described?
Note that with this approach, if you ask for 'foo/bar/baz/quux' and
'foo' has no children, then the node does get resolved in the order in
which you would expect it to: 'foo' is asked to provide 'bar', which
is then asked to return 'baz', which is then asked for 'quux'.
Note that if you start with just 'foo' you can configure it in such a
way as to ensure that it would never have any real children. To create
'foo/bar' the user would need to ask for 'foo/bar', then edit it, then
save it. Since 'foo/bar' doesn't exist, what the user will edit is the
default version of 'foo/bar' provided by 'foo'. This means 'foo' gets
to control whether new children are going to be created, and if so,
how they can be saved.
The reason I want to do the original check from right to left is to
make it easy to put nodes with default children at any level in the
tree. That is, if 'foo' is configured to handle 'foo/bar', then it
would be nice to be able to rename 'foo' to 'stuff/foo' and have
'stuff/foo/bar' still work.
- yuri
--
http://spu.tnik.org/
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:57 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:57 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.226.8 with SMTP id y8cs13019wfg;
Tue, 27 Jan 2009 11:14:54 -0800 (PST)
Received: by 10.100.174.13 with SMTP id w13mr3189407ane.123.1233083693606;
Tue, 27 Jan 2009 11:14:53 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id c1si25641377ana.40.2009.01.27.11.14.42;
Tue, 27 Jan 2009 11:14:52 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LRvDW-0000pY-WF; Tue, 27 Jan 2009 19:11:31 -0200
Received: from qw-out-2122.google.com ([74.125.92.24])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LRvDU-0000pT-3E
for sputnik-list@lists.luaforge.net; Tue, 27 Jan 2009 19:11:28 -0200
Received: by qw-out-2122.google.com with SMTP id 5so1464580qwi.53
for <sputnik-list@lists.luaforge.net>;
Tue, 27 Jan 2009 11:14:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=+BUGueso9y38yfOtRaWjNauV/ESVAfiTXU2kCRArgpU=;
b=XeH49tan6BnCbZFWUWoCAy2zJP65riYovalMRJRBL6zs0tyl6uUQtFsGYuKtfyEgKs
G2jDiVcQm43zP9SKei4FSEqX44+DYaG0PgjeMAjxwM3+jNWMePTT03FqX9gLKr+/lrTj
QaYcSDiOZdnQIOHFBP/dh/jLLEYSLi9pXhRXI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=Hl9Rp2ESUyzMZxbmYrQcX0UUqNp0DKusKAV6Lr/aNw3DoeWbtNpSn27sv2wREsRtDO
Ym0Ow+GajZVLx/th7hQoA4DsqqsBdsnM5DuyC2iwL+z6dTntLakC5RTjfktcara33IfP
J+RAg9TU26ePRgPYI4YjnYvixR5Lx57eYVY+k=
MIME-Version: 1.0
Received: by 10.214.10.3 with SMTP id 3mr3628515qaj.6.1233083668105; Tue, 27
Jan 2009 11:14:28 -0800 (PST)
In-Reply-To: <fa4efbc00901270049i65ee2c9etbceec959864535b0@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<fa4efbc00901192023h4793ea20vfd27ada5693ecb51@mail.gmail.com>
<92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
<5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
<fa4efbc00901201753y2601fcbes7dea82293d065c23@mail.gmail.com>
<5fe281d40901210333v27995e45o1a32dce48c42d0d5@mail.gmail.com>
<5fe281d40901210334p736e14b1s7ffeef80eea19a36@mail.gmail.com>
<fa4efbc00901260149m24dae2f1g3dfcf04e5cac8f1e@mail.gmail.com>
<92ab989c0901260646i4d4407c8xc185dd000b19e9cd@mail.gmail.com>
<fa4efbc00901270049i65ee2c9etbceec959864535b0@mail.gmail.com>
Date: Tue, 27 Jan 2009 17:14:28 -0200
X-Google-Sender-Auth: c709627c7decf722
Message-ID: <92ab989c0901271114ofc39136i15c5d258afc4f91d@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Andre Carregal <carregal@fabricadigital.com.br>
To: Yuri Takhteyev <yuri@sims.berkeley.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: Sputnik <sputnik-list@lists.luaforge.net>
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
On Tue, Jan 27, 2009 at 6:49 AM, Yuri Takhteyev <yuri@sims.berkeley.edu> wr=
ote:
> Can you give an example of something that cannot be done with the
> approach I described?
With your recent explanation, no. :o)
> Note that with this approach, if you ask for 'foo/bar/baz/quux' and
> 'foo' has no children, then the node does get resolved in the order in
> which you would expect it to: 'foo' is asked to provide 'bar', which
> is then asked to return 'baz', which is then asked for 'quux'.
Right, seems to work pretty fine.
> Note that if you start with just 'foo' you can configure it in such a
> way as to ensure that it would never have any real children. To create
> 'foo/bar' the user would need to ask for 'foo/bar', then edit it, then
> save it. Since 'foo/bar' doesn't exist, what the user will edit is the
> default version of 'foo/bar' provided by 'foo'. This means 'foo' gets
> to control whether new children are going to be created, and if so,
> how they can be saved.
Nice!
> The reason I want to do the original check from right to left is to
> make it easy to put nodes with default children at any level in the
> tree. That is, if 'foo' is configured to handle 'foo/bar', then it
> would be nice to be able to rename 'foo' to 'stuff/foo' and have
> 'stuff/foo/bar' still work.
I understand the importance of being able to do this kind of move, but
I don't see why it would be restrained from working since in this case
"stuff" would have to exist as a real node, right?
Andr=E9
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:58 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:58 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.226.8 with SMTP id y8cs35469wfg;
Wed, 28 Jan 2009 00:40:44 -0800 (PST)
Received: by 10.100.42.4 with SMTP id p4mr2920157anp.91.1233132042942;
Wed, 28 Jan 2009 00:40:42 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id c9si14062966ana.13.2009.01.28.00.40.32;
Wed, 28 Jan 2009 00:40:42 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LS7nD-0003V1-P9; Wed, 28 Jan 2009 08:37:11 -0200
Received: from rv-out-0506.google.com ([209.85.198.234])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LS7nD-0003Uw-40
for sputnik-list@lists.luaforge.net; Wed, 28 Jan 2009 08:37:11 -0200
Received: by rv-out-0506.google.com with SMTP id k40so6808401rvb.29
for <sputnik-list@lists.luaforge.net>;
Wed, 28 Jan 2009 00:40:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=tntO6UshrbIrXIC/sSZqkZ8bJRA0GBllYQ5+4qHjWuk=;
b=NXAlndslNd+7E4GnlFXt0u2Joa2afDg27Jxqn7LFoEZq9R5cOY+mgiffhakGzsSEBU
riDt1Ky5kJIhFxEpuXj1Rrr7MMcFwgFCsmUfXo61aGm/oaKqWqU3bKCIataggFB812Jq
Ptpis9pBKIV74HjP0tcJB2J3nDzqAjGY48Mgo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=SHHXEx+e9PzXjrU/QyhgsGwMUjGxYscAx1LrhgvajpAKL5eFBUL3MShdi/pj30tg5V
s2Tm6xPZO1ThEAReMXR2E8M9TuWTf11zRcH4+xBxAkol1mvWuWfzqr+C3vTOkc8K4Bzd
GhjAxlIM5RS0yYdvPBKGcmVIRE0RdsH50ZKgc=
MIME-Version: 1.0
Received: by 10.141.137.16 with SMTP id p16mr1291560rvn.180.1233132009194;
Wed, 28 Jan 2009 00:40:09 -0800 (PST)
In-Reply-To: <92ab989c0901271114ofc39136i15c5d258afc4f91d@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<92ab989c0901201543g48948c22t63cc766118c2f791@mail.gmail.com>
<5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
<fa4efbc00901201753y2601fcbes7dea82293d065c23@mail.gmail.com>
<5fe281d40901210333v27995e45o1a32dce48c42d0d5@mail.gmail.com>
<5fe281d40901210334p736e14b1s7ffeef80eea19a36@mail.gmail.com>
<fa4efbc00901260149m24dae2f1g3dfcf04e5cac8f1e@mail.gmail.com>
<92ab989c0901260646i4d4407c8xc185dd000b19e9cd@mail.gmail.com>
<fa4efbc00901270049i65ee2c9etbceec959864535b0@mail.gmail.com>
<92ab989c0901271114ofc39136i15c5d258afc4f91d@mail.gmail.com>
Date: Wed, 28 Jan 2009 00:40:09 -0800
X-Google-Sender-Auth: f618e2d3aff68c53
Message-ID: <fa4efbc00901280040h568d576dx86ff191972afd02@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Yuri Takhteyev <yuri@sims.berkeley.edu>
To: Andre Carregal <carregal@fabricadigital.com.br>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Sputnik <sputnik-list@lists.luaforge.net>
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
> I understand the importance of being able to do this kind of move, but
> I don't see why it would be restrained from working since in this case
> "stuff" would have to exist as a real node, right?
It doesn't. Only 'stuff/foo' must exist. The order of processing will
be the following:
Does 'stuff/foo/bar' exist? No.
Does 'stuff/foo' exist? Yes. Ok, then get 'stuff/foo', ask it for
'stuff/foo/bar'.
So, we never get to asking for 'stuff'. If we wanted to let 'stuff'
handle 'stuff/foo', then we would need to remove 'stuff/foo'. Then we
would have:
Does 'stuff/foo/bar' exist? No.
Does 'stuff/foo' exist? No.
Does 'stuff' exist? Yes.
Ok, then get 'stuff', ask it for 'foo', ask stuff's 'foo' for 'bar'.
Practically, btw, you would want to use prototypes to achieve this
kind of chaining. 'stuff' could define the default for it's children
as {prototype="@Child_of_Stuff"}. So, a request for "stuff/foo" will
then return {id="stuff/foo", prototype="@Child_of_Stuff"}. The
handling of "stuff/foo/bar" would then be essentially determined by
the child_defaults value in @Child_of_Stuff.
- yuri
--
http://spu.tnik.org/
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
From sputnik-list-bounces@lists.luaforge.net Fri Jan 30 08:55:58 2009
Received: from pop.gmail.com (ag-in-f109.google.com [72.14.247.109])
by localhost (mpop-1.0.11) with POP3
for <yuri>; Fri, 30 Jan 2009 08:55:58 +0000
Delivered-To: sputnik.list.archiver@gmail.com
Received: by 10.142.216.3 with SMTP id o3cs12910wfg;
Wed, 28 Jan 2009 08:56:03 -0800 (PST)
Received: by 10.100.93.17 with SMTP id q17mr3609786anb.93.1233161762215;
Wed, 28 Jan 2009 08:56:02 -0800 (PST)
Return-Path: <sputnik-list-bounces@lists.luaforge.net>
Received: from mail.luaforge.net (www.luaforge.net [147.65.1.201])
by mx.google.com with ESMTP id d35si25740757and.18.2009.01.28.08.55.45;
Wed, 28 Jan 2009 08:56:01 -0800 (PST)
Received-SPF: pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) client-ip=147.65.1.201;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of sputnik-list-bounces@lists.luaforge.net designates 147.65.1.201 as permitted sender) smtp.mail=sputnik-list-bounces@lists.luaforge.net; dkim=neutral (body hash did not verify) header.i=@gmail.com
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
by mail.luaforge.net with esmtp (Exim 4.50)
id 1LSFWY-0006iP-1t; Wed, 28 Jan 2009 16:52:30 -0200
Received: from qw-out-2122.google.com ([74.125.92.24])
by mail.luaforge.net with esmtp (Exim 4.50) id 1LSFWW-0006iK-6V
for sputnik-list@lists.luaforge.net; Wed, 28 Jan 2009 16:52:28 -0200
Received: by qw-out-2122.google.com with SMTP id 5so1587535qwi.53
for <sputnik-list@lists.luaforge.net>;
Wed, 28 Jan 2009 08:55:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:date:x-google-sender-auth:message-id:subject:from:to:cc
:content-type:content-transfer-encoding;
bh=v2Bt0pJh9035Zw4rl2uVx1UcYUv0E3LqYrwVgZl2WPs=;
b=O+RmRiWTwAgfsrXmJiu+4wqj/Xo20bMvk+yi3rwFQbwExLqtnvph6AeNvrHskMKK0t
6Voqdt5/OvipNaO/RA42GNILLEBlt5gX/23ZF9YRAh417w1nhGpGiCqNw64tsamfwO4j
awd/Foxmpzi75ktXhPILYjE4/ybOGuljMr5aQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:cc:content-type
:content-transfer-encoding;
b=AXGd+bDSDTPInk0QZfw1EdyqE3CW4Hjh2duHFZ/OQV6kV9FOPIBqfhXZ+Ku9U92QEE
9W3fdBZ94nsJTiPEtK4iW7ShejwLqO5jrHJ329WCPRX1tXnc5T53sMRcQfOscSJeJO3V
c1WVU4qoZtCbgaBRNFsTrNusuR1d9DE5U1bcM=
MIME-Version: 1.0
Received: by 10.215.39.6 with SMTP id r6mr6245248qaj.15.1233161731830; Wed, 28
Jan 2009 08:55:31 -0800 (PST)
In-Reply-To: <fa4efbc00901280040h568d576dx86ff191972afd02@mail.gmail.com>
References: <b6bf6c640901190708h14482601lc521a0c1b21e2d9@mail.gmail.com>
<5fe281d40901201718x7ea04558sf4e52387bceb22e1@mail.gmail.com>
<fa4efbc00901201753y2601fcbes7dea82293d065c23@mail.gmail.com>
<5fe281d40901210333v27995e45o1a32dce48c42d0d5@mail.gmail.com>
<5fe281d40901210334p736e14b1s7ffeef80eea19a36@mail.gmail.com>
<fa4efbc00901260149m24dae2f1g3dfcf04e5cac8f1e@mail.gmail.com>
<92ab989c0901260646i4d4407c8xc185dd000b19e9cd@mail.gmail.com>
<fa4efbc00901270049i65ee2c9etbceec959864535b0@mail.gmail.com>
<92ab989c0901271114ofc39136i15c5d258afc4f91d@mail.gmail.com>
<fa4efbc00901280040h568d576dx86ff191972afd02@mail.gmail.com>
Date: Wed, 28 Jan 2009 14:55:31 -0200
X-Google-Sender-Auth: f2b86abf46fa3308
Message-ID: <92ab989c0901280855g76defaeaj8ef00affec3343c5@mail.gmail.com>
Subject: Re: [Sputnik-list] Filter nodes
From: Andre Carregal <carregal@fabricadigital.com.br>
To: Yuri Takhteyev <yuri@sims.berkeley.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: Sputnik <sputnik-list@lists.luaforge.net>
X-BeenThere: sputnik-list@lists.luaforge.net
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "An all-purpose list for now." <sputnik-list.lists.luaforge.net>
List-Unsubscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=unsubscribe>
List-Archive: <http://lists.luaforge.net/pipermail/sputnik-list>
List-Post: <mailto:sputnik-list@lists.luaforge.net>
List-Help: <mailto:sputnik-list-request@lists.luaforge.net?subject=help>
List-Subscribe: <http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list>,
<mailto:sputnik-list-request@lists.luaforge.net?subject=subscribe>
Sender: sputnik-list-bounces@lists.luaforge.net
Errors-To: sputnik-list-bounces@lists.luaforge.net
On Wed, Jan 28, 2009 at 6:40 AM, Yuri Takhteyev <yuri@sims.berkeley.edu> wr=
ote:
>> I understand the importance of being able to do this kind of move, but
>> I don't see why it would be restrained from working since in this case
>> "stuff" would have to exist as a real node, right?
>
> It doesn't. Only 'stuff/foo' must exist.
> ...
I see, thanks again! :o)
Andr=E9
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list