⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webadmin for metakit with tclhttpd.mht

📁 TCL的数据库处理支撑库及一些示例
💻 MHT
📖 第 1 页 / 共 5 页
字号:
From: =?gb2312?B?08kgV2luZG93cyBJbnRlcm5ldCBFeHBsb3JlciA3ILGjtOY=?=
Subject: Webadmin for Metakit with Tclhttpd
Date: Fri, 29 Feb 2008 00:19:24 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0050_01C87A68.BCF724C0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545

这是 MIME 格式的多方邮件。

------=_NextPart_000_0050_01C87A68.BCF724C0
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://wiki.tcl.tk/10241

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" =
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=3Den><HEAD><TITLE>Webadmin for Metakit with Tclhttpd</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<STYLE type=3Dtext/css media=3Dall>@import url( /wikit.css );
</STYLE>
<LINK title=3DRSS href=3D"/rss.xml" type=3Dapplication/rss+xml =
rel=3Dalternate><!--[if lte IE 6]>=0A=
		<style type=3D'text/css' media=3D'all'>@import 'ie6.css';</style>=0A=
	<![endif]--><!--[if gte IE 7]>
<STYLE type=3Dtext/css media=3Dall>@import url( ie7.css );
</STYLE>
<![endif]-->
<SCRIPT type=3Dtext/javascript>=0A=
	    function init() {=0A=
		// quit if this function has already been called=0A=
		if (arguments.callee.done) return;=0A=
=0A=
		// flag this function so we don't do the same thing twice=0A=
		arguments.callee.done =3D true;=0A=
=0A=
		try {=0A=
		    checkTOC();=0A=
		} catch (err) {=0A=
		    /* nothing */=0A=
		}=0A=
	    };=0A=
=0A=
	    /* for Mozilla */=0A=
	    if (document.addEventListener) {=0A=
		document.addEventListener("DOMContentLoaded", init, false);=0A=
	    }=0A=
=0A=
	    /* for Internet Explorer */=0A=
	    /*@cc_on @*/=0A=
	    /*@if (@_win32)=0A=
	    document.write("<script defer src=3Die_onload.js><\/script>");=0A=
	    /*@end @*/=0A=
	    =0A=
	    /* for other browsers */=0A=
	    window.onload =3D init;=0A=
	</SCRIPT>

<META content=3D"MSHTML 6.00.6000.16609" name=3DGENERATOR></HEAD>
<BODY>
<DIV class=3Dcontainer>
<DIV class=3Dheader>
<DIV class=3Dlogo><A class=3Dlogo =
href=3D"http://wiki.tcl.tk/">wiki.tcl.tk</A> </DIV>
<DIV class=3Dtitle id=3Dtitle><A title=3D"click to see 3 references to =
this page"=20
href=3D"http://wiki.tcl.tk/_ref/10241">Webadmin for Metakit with=20
Tclhttpd</A></DIV>
<DIV class=3Dupdated id=3Dupdated>Updated 2007-03-06 07:37:19 <A =
class=3Ddelta=20
href=3D"http://wiki.tcl.tk/_diff/10241#diff0">=E2=96=B2</A></DIV></DIV>
<DIV id=3Dwrapper>
<DIV id=3Dcontent>
<P>10/22/2003 <A href=3D"http://wiki.tcl.tk/2080">Stefan Vogel</A></P>
<P>I just wanted to get familar with metakits. So I build up a very =
simply but=20
still useful (at least for me) <I>Webadministration-Interface</I> for <A =

href=3D"http://wiki.tcl.tk/20">Metakit</A>.</P>
<P>This webadministration <B>Metakit@Web</B> works with <A=20
href=3D"http://wiki.tcl.tk/2085">Tclhttpd</A>.</P>
<P>With <I>Metakit@Web</I> (Version 0.5) you can:</P>
<UL>
  <LI>create metakit-database-files=20
  <LI>create, modify, delete views=20
  <LI>create, edit, delete rows=20
  <LI>view binaries=20
  <LI>test queries ...</LI></UL>
<P>Installation is quite simple (as always with Tclhttpd):</P>
<UL>
  <LI>Download the script "mkweb_05.tcl" from <A=20
  href=3D"http://www.vogel-nest.de/" =
rel=3Dnofollow>http://www.vogel-nest.de/</A>=20
  (Go to "Technical &gt; Metakit@Web")=20
  <LI>Copy the script "mkweb_05.tcl" to your tclhttpd-custom-directory =
(may be=20
  you have to patch your Tclhttpd so that custom-files are read: <A=20
  =
href=3D"http://sourceforge.net/tracker/index.php?func=3Ddetail&amp;aid=3D=
635083&amp;group_id=3D12884&amp;atid=3D112884"=20
  =
rel=3Dnofollow>http://sourceforge.net/tracker/index.php?func=3Ddetail&amp=
;aid=3D635083&amp;group_id=3D12884&amp;atid=3D112884</A>=20
  )=20
  <LI>Create a directory where you place your metakits (let's say: =
/metakits or=20
  c:/metakits)=20
  <LI>Adapt the directory in mkweb_05.tcl (e.g. set the array=20
  aConfig(databaseDir) to /metakits or c:/metakits)=20
  <LI>restart Tclhttpd=20
  <LI>Go to <A href=3D"http://%3cyourdomain%3e/mkweb"=20
  rel=3Dnofollow>http://%3cyourdomain%3e/mkweb</A></LI></UL>
<P>Or you simply can run it with tclhttpd.kit (thanks to <A=20
href=3D"http://wiki.tcl.tk/1620">jcw</A> for that info). Download =
tclhttpd.kit=20
from <A href=3D"http://mini.net/sdarchive/"=20
rel=3Dnofollow>http://mini.net/sdarchive/</A> .</P><PRE> mkdir htdocs
 mv mkweb.tcl htdocs
 date &gt;htdocs/index.html         # just to have an index file
 cp tclhttpd.kit &gt;htdocs/try.mk  # just to have a sample datafile
 tclkit tclhttpd.kit -docRoot `pwd`/htdocs -library `pwd`/htdocs</PRE>
<P><B>Attention</B></P>
<P>This Webadmin-interface was developed only for me and my local =
installation=20
of Tclhttpd.</P>
<UL>
  <LI>Currently there is no security implemented! Everyone who can =
access your=20
  webserver can access your metakits!!=20
  <LI>Only one user at a time should access Metakit@Web because the=20
  configuration-values are globally set (no sessions). Maybe someone =
wants to=20
  make this script session-aware?=20
  <LI>Be sure that no spider follows the links on the page (the =
delete-operation=20
  is available as a link, so be careful).</LI></UL>
<P>Next steps/Missing features:</P>
<UL>
  <LI>make it session-aware</LI></UL>
<P>You've been warned. But now ... have fun:</P>
<P>... <B>Script removed</B> ...</P>
<P>10/23/2003 <A href=3D"http://wiki.tcl.tk/2080">Stefan Vogel</A> O.k. =
even=20
though the complete Webadministration of Metakits was only about 600 =
LoC, it's a=20
little bit to much for the Wiki. You can download the script "mkweb.tcl" =

from:</P>
<P><A href=3D"http://www.vogel-nest.de/"=20
rel=3Dnofollow>http://www.vogel-nest.de/</A> (Go to "Technical &gt; =
Metakit@Web"=20
)</P>
<HR>

<P><I>Wow! -<A href=3D"http://wiki.tcl.tk/1620">jcw</A></I></P>
<P>[<A href=3D"http://mini.net/pub/mkweb.png"=20
rel=3Dnofollow>http://mini.net/pub/mkweb.png</A>] - is a screenshot of =
version 0.4=20
showing a subview (not embedded).</P>
<P>And this is an actual one (although the Mac-Screendump looks a lot =
nicer!!!):=20
<IMG alt=3D"" =
src=3D"http://www.vogel-nest.de/uploads/Main/mkweb.png"></P>
<HR>

<P><A href=3D"http://wiki.tcl.tk/2683">rmax</A> - This looks very nice =
indeed!</P>
<P>But I keep getting the following error whenever I invoke a link, that =
changes=20
anything (creating/deleting databases, modifying views, adding rows, =
etc.):</P>
<P>[Stack trace and further discussion deleted - because error is =
fixed]</P>
<HR>

<P>This is a terrific tool. Thank you! I've found a problem with the =
script that=20
causes the textareas for editing a row to be rendered incorrectly (at =
least in=20
Mozilla), it's line 609 which should be changed from this:</P>
<P>[Error-description deleted because it is fixed]</P>
<P>- <A href=3D"http://wiki.tcl.tk/9513">WJR</A></P>
<HR>

<P>10/29/2003 Version 0.4 released</P>
<P><I>I've updated the screendump for OS X as well -<A=20
href=3D"http://wiki.tcl.tk/1620">jcw</A></I></P>
<P>11/4/2003 Version 0.5 released (only minor bug-fixes)</P>
<HR>

<P><A href=3D"http://wiki.tcl.tk/9513">WJR</A> It would be nice to have =
a button=20
or link that will close the database connection that's currently =
open.</P>
<P>The connection should be opened and closed for each HTTP-Request, so =
you=20
should be able to open the same database inbetween requests. Perhaps I =
forgot to=20
close the database sometimes? <A href=3D"http://wiki.tcl.tk/2080">Stefan =

Vogel</A></P>
<P><A href=3D"http://wiki.tcl.tk/9513">WJR</A> Here's some more info =
that may=20
help: I have a Metakit session database for a small web app I'm =
prototyping. I=20
find that when I'm using Webadmin with the session database open, and =

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -