[Web-SIG] API to add a tree viewer / navigator to a web document ?

0 views
Skip to first unread message

denis

unread,
Oct 2, 2009, 7:29:34 AM10/2/09
to web...@python.org
Folks,
for one of you experts, this must be trivial / must exist already
within some big Python-web package:

say I'm looking at a long web doc.html which has no tree view on the
left,
but I can hack a local tree view file with level, name, href like

+ 1 US href= ("+" button expands, "-" folds)
2 Alabama href=
3 ...
2 Alaska href=
...
+ 1 Canada href=
...

Is there a small API that can generate a tree viewer / navigator from
this,
either side by side in the same browser window with the remote web
pages, or in a separate window ?
(The tree view lines can of course be reformatted to xml or whatever
the API wants.)

There are really 2 APIs here:
a) class TreeView
b) display the tree view and the remote web page in split windows.

(Is there a general introduction to Python-webbing
for someone who knows Python but almost no CSS nor web services ?)

Thanks, cheers
-- denis


_______________________________________________
Web-SIG mailing list
Web...@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/python-web-sig-garchive-9074%40googlegroups.com

Aaron Watters

unread,
Oct 19, 2009, 1:58:20 PM10/19/09
to web...@python.org, denis
WHIFF now has treeviews.

I will document the usage in a tutorial soonish.
In the mean time here are the test/demos

reloading frame variant:
http://aaron.oirt.rutgers.edu/myapp/root/misc/frameTest

non-reloading ajax variant:
http://aaron.oirt.rutgers.edu/myapp/root/misc/ajaxTest

The implementation supports large externally stored
trees.

Source for the implementations and demos
are available from the WHIFF mercurial archive

http://aaron.oirt.rutgers.edu/cgi-bin/whiffRepo.cgi

Hope you like! -- Aaron Watters

===

"keep off the grass"
Peter Ustinov's requested gravestone epitaph.

--- On Fri, 10/2/09, denis <denis...@t-online.de> wrote:

> Unsubscribe: http://mail.python.org/mailman/options/web-sig/arw1961%40yahoo.com

Reply all
Reply to author
Forward
0 new messages