Up | Next Section | Contents

Working with External Methods


External Methods operate like any normal method, which allows you to manipulate them in many neat ways.

You can call your External Methods from within DTML, like normal methods. You can also publish External Methods through the Web, like normal methods. But why stop there, you can call your External Methods within Python code in other External Methods. The possibilities are endless.

For example, Stan defined the KnowNothing method (from the example above) inside a Folder called Home. He can access the method by going to this URL:

Home/KnowNothing

This would display "I know nothing of Folders and such." in the browser window.

 

 

 

We could also create a DTML Method inside the Home Folder and access the KnowNothing method with:

<dtml-var KnowNothing>

This would cause the "know nothing" phrase to be inserted into the DTML Method.

 

Up | Next Section | Contents

Banner.Novgorod.Ru