Danny William Adair wrote:
On Thursday 08 November 2001 06:18, Oliver Keller wrote:
Did you check the mail archives? I've created an external method quite a while ago: http://www.zope.org/Members/Barabbas/stx_to_html
yes! but it did not work. i got some strange errors (i mailed them to the list, related to an older structured text topic of this list, but no one answered)
thats it. so....am i the only human beeing who figured that out? i'm shure i'm not, but why did no one of the "big" zope freaks/programmers advised us? (im rellay _not_ into python. i can "just" read :-) and know some basic programming structures..)
As you'll see in the external method (there's a helper class in there), the trick is to choose the right base class(es). What if I need "structured text with images" in one folder, and "structured text without images" in another? HTMLWithImages gives you what you want, so just create a new class that inherits from HTMLWithImages - details in stx_to_html.py
hm. but the *WithImages thinges are allready inherited.(from HTML- and DocumentClass)why don't use them directly? btw. i really just know the basics of python - so inheriting would be quite advanced i think :-)
In general, if you don't know what you're doing, you should leave "core" files just as they are.
you can't say, i didn't knew what i did, in general. i've just chosen the simpliest way. but i understand what you mean. btw. before this modification to StructuredText.py i played around with the TreeTag.py to extend the dtml-tree functionality allowing to expand a single node by klicking a folder related text-link and not _only_ the +/- icons.(and added customizable +/- icons) therefore i really had to work with the corefile due to the "internal" tree-e variable restrictions.... maybe i will post this mod. in the future.(its really dirty, but hey... it works also!:-) [see left frame on www.kvstarnberg.brk.de ]
Did you take a look at http://dev.zope.org/Members/jim/StructuredTextWiki ?
oh yes. many times before.(many people suggested to look there) and i must say i really felt beeing left alone on that Wiki pages. i definitifly found nothing usefull especially about images in stx. and i don't like the Zwiki stuff itself either! thanks anyways oli