10/22/2003 [Stefan Vogel] I just wanted to get familar with metakits. So I build up a very simply but still useful (at least for me) ''Webadministration-Interface'' for [MetaKit]. This webadministration '''Metakit@Web''' works with [Tclhttpd]. With ''Metakit@Web'' (Version 0.4) you can: * create metakit-database-files * create, modify, delete views * create, edit, delete rows * view binaries * test queries ... Installation is quite simple (as always with Tclhttpd): * Download the script "mkweb.tcl" from http://www.vogel-nest.de/tcl (or http://www.freewebs.com/vogel-nest/tcl/) * Copy the script "mkweb.tcl" to your tclhttpd-custom-directory (may be you have to patch your Tclhttpd so that custom-files are read: http://sourceforge.net/tracker/index.php?func=detail&aid=635083&group_id=12884&atid=112884 ) * Create a directory where you place your metakits (let's say: /metakits or c:/metakits) * Adapt the directory in mkweb.tcl (e.g. set the array aConfig(databaseDir) to /metakits or c:/metakits) * restart Tclhttpd * Go to http:///mkweb Or you simply can run it with tclhttpd.kit (thanks to [jcw] for that info). Download tclhttpd.kit from http://mini.net/sdarchive/ . mkdir htdocs mv mkweb.tcl htdocs date >htdocs/index.html # just to have an index file cp tclhttpd.kit >htdocs/try.mk # just to have a sample datafile tclkit tclhttpd.kit -docRoot `pwd`/htdocs -library `pwd`/htdocs '''Attention''' This Webadmin-interface was developed only for me and my local installation of Tclhttpd. * Currently there is no security implemented! Everyone who can access your webserver can access your metakits!! * Only one user at a time should access Metakit@Web because the configuration-values are globally set (no sessions). Maybe someone wants to make this script session-aware? * Be sure that no spider follows the links on the page (the delete-operation is available as a link, so be careful). Next steps/Missing features: * make it session-aware You've been warned. But now ... have fun: ... '''Script removed''' ... 10/23/2003 [Stefan Vogel] O.k. even though the complete Webadministration of Metakits was only about 600 LoC, it's a little bit to much for the Wiki. You can download the script "mkweb.tcl" from: http://www.freewebs.com/vogel-nest/tcl/ ---- ''Wow! -[jcw]'' [[http://mini.net/pub/mkweb.png]] - is a screenshot of version 0.4 showing a subview (not embedded). And this is an actual one (although the Mac-Screendump looks a lot nicer!!!): [http://www.freewebs.com/vogel-nest/tcl/mkweb.png] ---- [rmax] - This looks very nice indeed! But I keep getting the following error whenever I invoke a link, that changes anything (creating/deleting databases, modifying views, adding rows, etc.): [[Stack trace and further discussion deleted - because error is fixed]] ---- This is a terrific tool. Thank you! I've found a problem with the script that causes the textareas for editing a row to be rendered incorrectly (at least in Mozilla), it's line 609 which should be changed from this: [[Error-description deleted because it is fixed]] - [WJR] ---- 10/29/2003 Version 0.4 released ''I've updated the screendump for OS X as well -[jcw]'' ---- [[ [Category Tclkit] | [Category Database] | [Category Internet] ]]