Fixes for componentized Pagedform
[tcl-tlc.git] / examples / test_dschan.tcl
blob1482ba3290470d76d012bebfd61ce400caa86280
1 #!/usr/bin/tclsh
3 set auto_path [concat [list ..] $auto_path]
5 package require TLC 0.45
7 wm withdraw .
9 namespace eval crypto {
10 variable devmode 1
13 package require Authenticator
14 authenticator::Authenticator auth -ip localhost -pbkey authenticator.pub
16 auth waitfor login_allowed
18 if {![auth login "cyan@nett" "foo"]} {
19 if {![auth login "user@cf" "user"]} {
20 puts stderr "Cannot login: [auth last_login_message]"
21 exit -1
25 set conn [auth connect_svc "test"]
27 tlc::DSchan ds -connector $conn -tag "testds"
28 tlc::Datasource_filter dsf -ds ::ds
30 set tlc::Baselog::classmap(::tlc::DSchan) 10
32 tlc::Browse_tktreectrl .list -datasource dsf
34 pack .list -fill both -expand true
36 wm deiconify .