Hi, I have put objects inside a folder tabledef and would like to refer them : <dtml-in "_.getitem('tabledef').objectItems(['DTML Document'])" sort=id mapping> <dtml-var "_['sequence-item']" html_quote> </dtml-in> However, this does not work, But putting the objects in the current folder works without problems: <dtml-in "objectItems(['DTML Document'])" sort=id> <dtml-var "_['sequence-item']" html_quote> </dtml-in> I also try: <dtml-with tabledef> <dtml-in "objectItems(['DTML Document'])" sort=id> <dtml-var "_['sequence-item']"> </dtml-in></dtml-with> and some other combinations, all without success. How can I access the objects (DTML DOCUMENTS) inside a folder? Moreover, I would like to do the following: I have some properties of an object abc which have same name with the object ids in the tabledef folder, I would also lookup the objects' properties : <dtml-in propertyMap mapping> <dtml-with tabledef.id> <dtml-var help> <dtml-var taborder> </dtml-with> </dtml-in> Assume abc have a property address, then there should be a dtmldoc call address in tabledef, which have properties "help" and "tableorder". I would like to retrieve them. Can somebody help me with these? Rgs, Kent Sin --------------------------------- kentsin.weblogs.com kentsin.imeme.net
Sin Hang Kin a écrit : did u try that: <dtml-in "PARENTS[0].objectValues(['DTML Document'])" sort=id> do what u want </dtml-in> Hope this help Bye Pio.
Hi,
I have put objects inside a folder tabledef and would like to refer them :
<dtml-in "_.getitem('tabledef').objectItems(['DTML Document'])" sort=id mapping> <dtml-var "_['sequence-item']" html_quote> </dtml-in>
However, this does not work, But putting the objects in the current folder works without problems:
<dtml-in "objectItems(['DTML Document'])" sort=id> <dtml-var "_['sequence-item']" html_quote> </dtml-in>
I also try:
<dtml-with tabledef> <dtml-in "objectItems(['DTML Document'])" sort=id> <dtml-var "_['sequence-item']"> </dtml-in></dtml-with>
and some other combinations, all without success.
How can I access the objects (DTML DOCUMENTS) inside a folder?
Moreover, I would like to do the following:
I have some properties of an object abc which have same name with the object ids in the tabledef folder, I would also lookup the objects' properties :
<dtml-in propertyMap mapping> <dtml-with tabledef.id> <dtml-var help> <dtml-var taborder> </dtml-with> </dtml-in>
Assume abc have a property address, then there should be a dtmldoc call address in tabledef, which have properties "help" and "tableorder". I would like to retrieve them.
Can somebody help me with these?
Rgs,
Kent Sin --------------------------------- kentsin.weblogs.com kentsin.imeme.net
_______________________________________________ Zope maillist - Zope@zope.org 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 )
Hi all, I currently have ZpdfDocument installed but I just stumbled across the Reportlab package which seems to offer a much more extensive set of features. The advantage of ZpdfDocument is that it is already integrated with Zope, but since Reportlab is Python based it shouldn't be too hard to integrate that as well. Anyone using Reportlab with Zope yet? Thnx Jonathan
Yes we have written a faily extensively billing system that uses reportlab to generate the equipment orders in pdf format. We have made a few tweaks here and there to reportlab but in general it works quite well. Dan Jonathan wrote:
Hi all,
I currently have ZpdfDocument installed but I just stumbled across the Reportlab package which seems to offer a much more extensive set of features. The advantage of ZpdfDocument is that it is already integrated with Zope, but since Reportlab is Python based it shouldn't be too hard to integrate that as well.
Anyone using Reportlab with Zope yet?
Thnx Jonathan
_______________________________________________ Zope maillist - Zope@zope.org 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 )
Yes we have written a faily extensively billing system that uses reportlab to generate the equipment orders in pdf format. We have made a few tweaks here and there to reportlab but in general it works quite well.
From within Zope? How do you call ReportLab from within Zope? Thnx Jonathan
participants (4)
-
Dan Rusch -
Jonathan -
Pierre Rougier -
Sin Hang Kin