Re: [Zope] dtml-tree question
Hugo Ramos writes: > Is there a way to use my own self made '+' icon in a tree tag? > I'dd like to use my own icon only IF i want to... and not change the python > source to use my own icon all the time! The code is partially there, but incomplete and commented out. If you do not mind other extensions as well, I could provide a TreeTag patch for several extensions, including the icon customization. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-tree question
Yellow ppl, Is there a way to use my own self made '+' icon in a tree tag? I'dd like to use my own icon only IF i want to... and not change the python source to use my own icon all the time! regards = Hugo Ramos - [EMAIL PROTECTED] ZopersORG - http://www.zopers.org = Do not meddle in the affairs of programmers, for they are easy to annoy, and have all the source code!!! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-tree question
> Jonothan Farr wrote: > > Is it because the document is at the top of the namespace stack instead of the > > request object in the dtml document case, but not in the dtml method case? > > Hurm, thinking for the right words and I think(?) namespace is the right > one. > > Anyway, DTML documents have one and DTML methods don't. > > Hence your tree tag is using the DTML documents namespace, which has > nothing in it apart from the properties of the document. I don't think that's entirely accurate. There's a lot more in the namespace of a DTML document. I think you're right, though, in that it's a namespace issue. I found that the results of the SQL query where not part of the namespace in the DTML Document case, but they were in the DTML Method case. Here's how I got it working: edit In other words, I have to explicitly get the parameter from the result object and pass it back into the sql query. What I'd like to know is why? Is this a bug or a feature? Thanks, --jfarr ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-tree question
Jonothan Farr wrote: > Is it because the document is at the top of the namespace stack instead of the > request object in the dtml document case, but not in the dtml method case? Hurm, thinking for the right words and I think(?) namespace is the right one. Anyway, DTML documents have one and DTML methods don't. Hence your tree tag is using the DTML documents namespace, which has nothing in it apart from the properties of the document. A method will use the namespace of the folder containing it, which will have all the other objects in that folder in its namespace. The vocab. I've used might not be quite right (someone please correct me :-) but the basic principal is what's going on. HTH, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-tree question
What is the difference between using the dtml-tree tag in a dtml method and using it in a dtml document? I have code that works perfectly in a dtml method but when I try the exact same code in a dtml document it doesn't display anything. Is it because the document is at the top of the namespace stack instead of the request object in the dtml document case, but not in the dtml method case? My branches method is a zsqlmethod that acquires its parameter from the namespace. Here's the code, if that helps: edit select_subprojects is a zsqlmethod, the fields are project_id, project_name, and task_count. It takes one parameter, project_id which it acquires from the result set of the previous call to itself. I'm stumped. I could just use a dtml method instead of a document but I want to understand this. Thanks, --jfarr ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )