[Rest2web-develop] Re: rest2web
Brought to you by:
mjfoord
|
From: <mi...@pc...> - 2005-07-14 10:24:22
|
Hello Dirk,
I need to test the 'thispage' stuff - looks like a bug to me=2E
Sticking to the order of 'section-list' seems like a no-brainer to me=2E
I'll consider adding a 'page-order' variable=2E
On principle I'm *against* adding extra variables - in the name of
simplicity(I already have too many !)=2E *But* - I see your use case and i=
t
is something I'd wondered if someone would want=2E
I'll be back in action on Monday and will think about it then=2E How would=
you reference pages =3F (by filename is the only reasonable way I guess=2E=
=2E=2E=2E=2E)
Feel free to move this to the rest2web-develop mailing list (link on the
sourceforge page http://sourceforge=2Enet/projects/rest2web ) if you *want=
*=2E
Currently most discussion is about the specification for ConfigObj 4- the
*fantastic* new config system that is nearly finished=2E=2E=2E ;-)
Best Regards,
Fuzzyman
http://www=2Evoidspace=2Eorg=2Euk/python
Original Message:
-----------------
From: Dirk Steenpass steenpaz@sdf-eu=2Eorg
Date: Wed, 13 Jul 2005 16:47:21 +0200
To: root@voidspace=2Eorg=2Euk
Subject: Re: rest2web
Dear Fuzzyman,
thanks for your quick reply and apologies for my late answer=2E
I see the point of not specifying everything because pages are generated
dynamically=2E I could use templates for pages when I want an ordered
sidebar menue=2E However, I'm a lazy guy and I would like to get away
using as few templates as possible=2E I am thinking about introducing an
additional restindex variable 'page-order', that get's evaluated if
present=2E Similar to 'section-list' 'page-order' has a meaning on index
pages only=2E I will probably take a look into this tomorrow =2E=2E=2E
The 'thispage' question: I tried to say the following:
root=5Fdir/
index=5Fpage <- thispage !=3D None
subdir/
index=5Fpage <- thispage !=3D None
page=5F1
page=5F2
subdir/
index=5Fpage <- thispage =3D=3D None
In words: the 'thispage' variable is None for index pages that are leaves
of the indextree=2E As index pages are treated special several times I was=
wondering whether this is a bug or a feature=2E
best regards, dirk
On Sun, Jul 10, 2005 at 08:26:15AM -0700, root wrote:
> >On Sun, 10 Jul 2005 01:20:43 0200 Dirk Steenpass <steenpaz@sdf-eu=2Eor=
g>
> wrote=2E
> >Dear Mr=2E Foord,
> >
> >I have recently discovered rest2web (via ReStructuredText
> >documentation)=2E I really like the rest2web idea, as I am sick of
> >writing plain html and a full blown content managment is an overkill fo=
r
> >my needs=2E
> >
> >I would like to bother you with a few questions about rest2web 0=2E3=2E=
0
> >hoping that your answers save me from code diving ;-)=2E
> >
> >
>=20
> Hello Dirk,
>=20
> I'm glad that you might find rest2web helpful - and I'd be very pleased =
to
> answer your questions about it=2E=20
>=20
> I'm away in Romania for the next week - so some of your questions I migh=
t
> have to investigate when I return=2E
>=20
> >
> >
> >When using minibar, is there a way to control the order of pages within=
> >a section=3F
> >
> >
> >When using minibar, is there a way to control the order of sections=3F =
It
> >seems that the order of section specifications is not honored=3F
> >
>=20
> Not currently - although honouring the order they are specified in seems=
a
> very sensible idea=2E You can see the code in the minibar function in (I=
> think) the file ``functions=2Epy``=2E
>=20
> The reason I didn't add too much code to specify the position of
everything
> is that it's supposed to be dynamic - you're supposed to be able to add
> whole sections *without* having to specify where they go=2E Otherwise yo=
u
> might as well just put the links in the template yourself ! =20
>=20
> However - your idea is a good one=2E When I can look at implementing it=2E=
It
> should be quite easy=2E
>=20
> >
> >
> >The 'thispage' value is not None for every page that is build, with the=
> >exception of index pages that are leafs of the indextree=2E Is this is =
a
> >bug or a feature=3F
> >
>=20
> I don't fully understand the question - and I'm not able to test=2E
'thispage'
> *shouldn't* be None as it's a pointer to the current page in the
'indextree'
> structure=2E=20
>=20
> Are you saying that I document it as being None - or that *sometimes* it=
is
> None =3F
>=20
> Best Regards,
>=20
> Fuzzyman
>=20
>=20
>=20
>=20
> >
> >
> >
> >bis denn, dirk
> >
> >
>=20
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web=2Ecom/ =2E
|