DTML Basics (part 4) - Endzone (Page 9 of 9 )
And that's just about it. In this concluding article of a four-part series, I helped you dip your toes in the waters of more advanced DTML programming, demonstrating some of the more advanced tags available in the language. First, I showed you how to access elements in the namespace via the
construct, and how to add items to the namespace via
. Next, I demonstrated the
widget, which provides a very unique take on the problem of constructing tree-based structures, and provided some insight into how the tree menu of the Zope management interface works by attempting to duplicate some of its functionality. Finally, I demonstrated how DTML allows you to call methods with
, and make your code more readable with
.
Obviously, there's more to DTML than what you've learned over the past couple of weeks in this tutorial. What I've taught you in this four-part series is just the basics - you now know enough to begin reading other people's DTML code (and making sense of it), and also to begin futzing around with scripts of your own. Here are a few links to help you get started:
The Zope Book, at
http://www.zope.org/Documentation/ZopeBook/Learning Zope, at
http://www.zope.org/Members/itamar/LearningZope/DTML reference material, at
http://www.zope.org/Documentation/ZopeBook/AppendixA.stxUntil next time...be good!
Note: All examples in this article have been tested on Linux/i586 with Zope 2.5.0. Examples are illustrative only, and are not meant for a production environment. Melonfire provides no warranties or support for the source code described in this article. YMMV!
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |