[Zope] tree tag woes continue :S

2000-08-19 Thread Chris Withers

Okay, my aim here is to effectively have batching with trees.

Why? well because a tree with over a thousand items at the root is
pretty hefty to download to a browser, not to mentioned pretty
antisocial to navigate and use.

My idea, as you may have seen from recent posts, was to do a dtml-in
over the first set of children so I could do the batching there, and
then do a dtml-tree for each one of them to get the tree as before.

Is this a good or a bad idea?
Is having lots of dtml-tree's on the same page acceptable or not?

okay, assuming it it a good idea, the tree to be replaced is:

  dtml-tree branches="postingValues"   
...show stuff here...
  /dtml-tree   

I'm currently trying:

  dtml-in postingValues
dtml-with "_.getitem('sequence-item',0)"
dtml-tree branches="postingValues"   
  ...do stuff here...
/dtml-tree   
/dtml-with
  /dtml-in

but this appears to just render the original tree once for each child.

Any ideas how I should be doing this?

cheers,

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 )




Re: [Zope] tree tag woes continue :S

2000-08-19 Thread Chris Withers

Chris Withers wrote:
 okay, assuming it it a good idea, the tree to be replaced is:
 
   dtml-tree branches="postingValues"
 ...show stuff here...
   /dtml-tree

My latest attempt is:

  dtml-in postingValues
dtml-var id-dtml-var titleBR
dtml-tree sequence-item branches="postingValues"   
dtml-var id-dtml-var titleBR
/dtml-tree   
  /dtml-in

which gives me the following weird error:

Error Type: AttributeError
Error Value: 'tuple' object has no attribute 'append'

any ideas?

Chris

PS: Traceback:
Traceback (innermost last):
  File E:\Zope\2179E4~1.6\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
  File E:\Zope\2179E4~1.6\lib\python\ZPublisher\Publish.py, line 179, in
publish
  File E:\Zope\2179E4~1.6\lib\python\Zope\__init__.py, line 202, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File E:\Zope\2179E4~1.6\lib\python\ZPublisher\Publish.py, line 165, in
publish
  File E:\Zope\2179E4~1.6\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: manage_postings)
  File E:\Zope\2179E4~1.6\lib\python\ZPublisher\Publish.py, line 102, in
call_object
(Object: manage_postings)
  File E:\Zope\2179E4~1.6\lib\python\App\special_dtml.py, line 120, in
__call__
(Object: manage_postings)
(Info:
E:\Zope\2.1.6\lib\python\Products\Squishdot/Squishdot_manage_postings.dtml)
  File E:\Zope\2179E4~1.6\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
(Object: manage_postings)
  File E:\Zope\2179E4~1.6\lib\python\DocumentTemplate\DT_In.py, line
691, in renderwob
(Object: postingValues)
  File E:\Zope\2179E4~1.6\lib\python\TreeDisplay\TreeTag.py, line 154,
in render
(Object: sequence-item)
  File E:\Zope\2179E4~1.6\lib\python\TreeDisplay\TreeTag.py, line 222,
in tpRender
  File E:\Zope\2179E4~1.6\lib\python\TreeDisplay\TreeTag.py, line 543,
in apply_diff
(Info: ([None, (['966520543', []],)], ['966520928', '966520893',
'966520543']))
AttributeError: (see above)

___
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 )