Hi New to this stuff, can someone tell me the difference between XML and DTML (is that the same as DHTML) TIA S. -- http://www.eso.org/~sjohnsto
On Tuesday 05 March 2002 3:42 pm, Stephen Johnston wrote:
Hi
New to this stuff, can someone tell me the difference between XML and DTML (is that the same as DHTML)
TIA
S.
These are all very different and not really comparable in a simple (ie brief) way. I suggest you go to http://www.w3.org to read up on what XML and DHTML are, and go to http://www.zope.org to find out about DTML. There is also a good (better in my opinion) alternative to DTML for Zope now, called ZPT. This is XML-based and generally more structured and clean. If you're just starting out with Zope I strongly recommend you use as it will (hopefully) prevent you from falling into any of the many possible problems you can get into design-wise with DTML. It's much harder to write bad code (IMO) with ZPT. Harry
I am really keen to learn ZPT. I am having trouble unlearning DTML. Can someone point me to some good doco for some who is DTML damaged? Thanks ----- Original Message ----- From: "Harry Wilkinson" <harryw@nipltd.com> To: "Stephen Johnston" <sjohnsto@eso.org>; <zope@zope.org> Sent: Wednesday, March 06, 2002 2:53 AM Subject: Re: [Zope] DTML and XML
On Tuesday 05 March 2002 3:42 pm, Stephen Johnston wrote:
Hi
New to this stuff, can someone tell me the difference between XML and DTML (is that the same as DHTML)
TIA
S.
These are all very different and not really comparable in a simple (ie brief) way. I suggest you go to http://www.w3.org to read up on what XML and DHTML are, and go to http://www.zope.org to find out about DTML.
There is also a good (better in my opinion) alternative to DTML for Zope now, called ZPT. This is XML-based and generally more structured and clean. If you're just starting out with Zope I strongly recommend you use as it will (hopefully) prevent you from falling into any of the many possible problems you can get into design-wise with DTML. It's much harder to write bad code (IMO) with ZPT.
Harry
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Ot Ratsaphong wrote:
I am really keen to learn ZPT. I am having trouble unlearning DTML. Can someone point me to some good doco for some who is DTML damaged?
http://www.zope.org/Wikis/DevSite/Projects/ZPT/FrontPage thomas
I've just discovered daemontools (http://cr.yp.to/daemontools.html) thanks to a very helpful chap on CLP. I used to have so much trouble with Zope crashing that I ended up running cronjobs to check if Zope was running and restart it if not. How I wish I'd known about daemontools back then! Anyway, much as I believe that Zope is much more stable nowadays, I'd still like to run it under daemontools "just in case". The only other references to using daemontools with zope are 2 years old. http://www.zope.org/SiteIndex/search?text_content=daemontools Has anybody here been using zope with daemontools for quite a long time ? or at least with Zope 2.4.x or 2.5.x ? Does it require a special 'run' script for the service, or could I simply use "exec /var/zope/start" ? Stephen. -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
At 10:05 PM 3/6/2002 +0100, Shriek@gmx.co.uk wrote:
I've just discovered daemontools (http://cr.yp.to/daemontools.html) thanks to a very helpful chap on CLP. I used to have so much trouble with Zope crashing that I ended up running cronjobs to check if Zope was running and restart it if not. How I wish I'd known about daemontools back then!
http://untroubled.org/supervise-scripts/ "This package is a set of scripts that may be useful for starting and stopping programs that are managed by supervise and svscan, which are part of the daemontools package." Adam
Hi, I am running Zope under daemontools under versions up 2.5.1, my run-script looks like this: #! /bin/sh exec 2>&1 PATH=$PATH:/usr/local/bin ZOPE_HOME=/usr/local/ZopePark/lzope.aixtraware.de export ZOPE_HOME INSTANCE_HOME=$ZOPE_HOME/ZInstanceHome export INSTANCE_HOME PYTHONHOME=$ZOPE_HOME/ZSoftwareHome export PYTHONHOME exec setuidgid lzope $PYTHONHOME/bin/python $PYTHONHOME/z2.py \ -D -p - -P "10.2.1.4:8900" -t 2 -Z ''\ "$@" >> $INSTANCE_HOME/var/z2.log 2>&1 I hope that helps. --On Mittwoch, März 06, 2002 22:05:11 +0100 Shriek@gmx.co.uk wrote:
I've just discovered daemontools (http://cr.yp.to/daemontools.html) thanks to a very helpful chap on CLP. I used to have so much trouble with Zope crashing that I ended up running cronjobs to check if Zope was running and restart it if not. How I wish I'd known about daemontools back then!
Anyway, much as I believe that Zope is much more stable nowadays, I'd still like to run it under daemontools "just in case". The only other references to using daemontools with zope are 2 years old. http://www.zope.org/SiteIndex/search?text_content=daemontools
Has anybody here been using zope with daemontools for quite a long time ? or at least with Zope 2.4.x or 2.5.x ? Does it require a special 'run' script for the service, or could I simply use "exec /var/zope/start" ?
Stephen.
-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/
Thank you very much. Find it strange that anybody running Zope under daemontools seems to create a large 'run' script instead of just letting daemontools run the 'start' script that comes with Zope. Guess it's just a question of taste and no real reason for it though. Thanks again, Stephen.
I am running Zope under daemontools under versions up 2.5.1, my run-script
looks like this:
#! /bin/sh exec 2>&1 PATH=$PATH:/usr/local/bin ZOPE_HOME=/usr/local/ZopePark/lzope.aixtraware.de export ZOPE_HOME INSTANCE_HOME=$ZOPE_HOME/ZInstanceHome export INSTANCE_HOME PYTHONHOME=$ZOPE_HOME/ZSoftwareHome export PYTHONHOME exec setuidgid lzope $PYTHONHOME/bin/python $PYTHONHOME/z2.py \ -D -p - -P "10.2.1.4:8900" -t 2 -Z ''\ "$@" >> $INSTANCE_HOME/var/z2.log 2>&1
I hope that helps.
--On Mittwoch, März 06, 2002 22:05:11 +0100 Shriek@gmx.co.uk wrote:
I've just discovered daemontools (http://cr.yp.to/daemontools.html) thanks to a very helpful chap on CLP. I used to have so much trouble with Zope crashing that I ended up running cronjobs to check if Zope was running and restart it if not. How I wish I'd known about daemontools back then!
Anyway, much as I believe that Zope is much more stable nowadays, I'd still like to run it under daemontools "just in case". The only other references to using daemontools with zope are 2 years old. http://www.zope.org/SiteIndex/search?text_content=daemontools
Has anybody here been using zope with daemontools for quite a long time ? or at least with Zope 2.4.x or 2.5.x ? Does it require a special 'run' script for the service, or could I simply use "exec /var/zope/start" ?
Stephen.
-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
Shriek@gmx.co.uk writes:
Guess it's just a question of taste and no real reason for it though.
Maybe because the start script is made for the simplest case only? Also I find it better to see all in one place that affects the start of a service. If you use two scripts you have to watch two scripts. Regards, Frank -- CTO fte@Lightwerk.com http://www.Lightwerk.com/ Fax: +49-2434-80 07 94 Phone: +49-2434-80 07 81 Lightwerk GmbH * An der Kull 11 * 41844 Wegberg * Germany Besuchen Sie uns auf der CeBIT: Halle 6, Stand F68 / 595
Shriek@gmx.co.uk writes:
like to run it under daemontools "just in case". The only other references to using daemontools with zope are 2 years old. http://www.zope.org/SiteIndex/search?text_content=daemontools
Wow, 2 years now. But still valid - we use this setup all time.
Has anybody here been using zope with daemontools for quite a long time ? or at least with Zope 2.4.x or 2.5.x ? Does it require a special 'run' script for the service, or could I simply use "exec /var/zope/start" ?
Example: #! /bin/sh exec 2>&1 echo "------- start by supervise -------" umask 077 PATH=/command:$PATH:/usr/local/bin reldir=/web/zope1 # running instance INSTANCE_HOME=`cd $reldir; pwd` export INSTANCE_HOME # used Zope-Version INST_HOME=/web/Zope-2.5.1b1 export INST_HOME exec setuidgid zope1 python \ $INST_HOME/z2.py \ -m '' -a 127.0.0.1 -f '8021' -p '' -d '' -w '8081' -F '' \ -Z '' Regards, Frank -- CTO fte@Lightwerk.com http://www.Lightwerk.com/ Fax: +49-2434-80 07 94 Phone: +49-2434-80 07 81 Lightwerk GmbH * An der Kull 11 * 41844 Wegberg * Germany Besuchen Sie uns auf der CeBIT: Halle 6, Stand F68 / 595
Stephen Johnston wrote:
Hi
New to this stuff, can someone tell me the difference between XML and DTML (is that the same as DHTML)
DTML defines new tags to be replaced by text inside page templates. Similar to PHP http://www.zope.org/Members/michel/ZB/AppendixA.dtml cheers hans -------------------------------------------------------------- hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
participants (9)
-
Adam Manock -
Frank Tegtmeyer -
hans -
Harry Wilkinson -
Joachim Schmitz -
Ot Ratsaphong -
Shriek@gmx.co.uk -
Stephen Johnston -
Thomas Guettler