Creating a new product, adding methods
Hi, I`ve made a product based on 'Boring Product' and would like to use my own python-objects and methods. I got objects and methods in a seperate file, let`s call it 'my_stuff.py'. ( very impressive, I know :-> ) How can I use my methods in dtml-docs without using them as external methods? I do have a working product, so I guess I could import them or init. them there, but how? Say my module has a function 'testMe' that takes a couple of arguments and returns a string. How can I call this method from dtml?? Is there are doc on this subject, creating a product, adding features etc. where most of the stuff are done in old-fashioned python-code? I want to add stuff like methods, objects and functions using Python, not the Zope-interface. And, finally, is it normal procedure to return the results from methods and functions as formatted html, or should the formatting be done in the dtml-document itself?? Thanks. Thomas
participants (1)
-
Thomas Weholt