First of all: sorry for the forgotten subject line ... Casey Duncan <cduncan@kaivo.com> wrote:
Andreas Wandel wrote:
Casey Duncan wrote:
You cannot nest dtml tags inside one another like that. If you want
to
pass the rendered content of a DTML document to the method use:
<dtml-var expr="ExtMethod(DTMLDocument(_.None,_))">
This one works, thanks a lot. But what about Docs with a dot in the name like "somedoc.html"?
Tip: Don't use dots in object ids for this reason. That said, you can get around this using:
If I could prevent them I would do it. But most of our employees post their docs out of Netscape Composer directly into zope...
<dtml-var expr="ExtMethod(_.getitem('somedoc.html')(_.None,_))">
YES! This is exactly what i wanted. Great!
Using dots in object names makes for ugly expression like the above because dots are significant in Python.
The reason is clear, didn't know how to workaround. I am waiting for the next release of HTMLDocument, which (hopefully) makes such expressions unnecessary Ones again: Thanks Andreas Wandel
If I could prevent them I would do it. But most of our employees post their docs out of Netscape Composer directly into zope...
<dtml-var expr="ExtMethod(_.getitem('somedoc.html')(_.None,_))">
YES! This is exactly what i wanted. Great!
Hi Andreas I am curious about your workflow here.. 1. employees prepare documents[HTML?] 2. load into zope [http/ftp] saving them as DTML[?]Documents 3. you have externalmethod[s] using the contents as arguments.. What kind of information are you passing and how is it being used? I hope you don't think I am prying. It sounds interesting and is related to some issues I am trying to solve right now. I am very interested in workflow and Zope. Especially wayswhich allow easy separation of skills and habits. In other words letting everyone work with familiar tools and documents, but combining them in a Zope workflow to make somthing new, open and powerful. cheers ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']
I, too, would be interested in hearing about this. I have an upcoming project that sounds very similiar to this. Tommy Hi Andreas I am curious about your workflow here.. 1. employees prepare documents[HTML?] 2. load into zope [http/ftp] saving them as DTML[?]Documents 3. you have externalmethod[s] using the contents as arguments.. What kind of information are you passing and how is it being used? I hope you don't think I am prying. It sounds interesting and is related to some issues I am trying to solve right now. I am very interested in workflow and Zope. Especially wayswhich allow easy separation of skills and habits. In other words letting everyone work with familiar tools and documents, but combining them in a Zope workflow to make somthing new, open and powerful.
participants (3)
-
Andreas Wandel -
Jason Cunliffe -
Tommy Johnson