EduploneTest/skins/EduploneTest get_ep_content_test.py,NONE,1.1 task_view_slot.pt,1.1.1.1,1.2 get_ep_content.py,1.1.1.1,NONE
Nils Haagen <[email protected]>
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneTest/skins/EduploneTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26675/skins/EduploneTest
Modified Files:
task_view_slot.pt
Added Files:
get_ep_content_test.py
Removed Files:
get_ep_content.py
Log Message:
fixed conflict with EPTypes
--- get_ep_content.py DELETED ---
--- NEW FILE: get_ep_content_test.py ---
## Script (Python) "get_ep_order"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=folder_to_use, selfID
##title=
##
# this is not fast, but it works. using the catalog would be nicer ;)
results = folder_to_use.contentValues()
pos=0
for obj in results:
#if hasattr(obj, 'getListcontent') and obj.getListcontent():
# has_linguaplone = hasattr(obj, 'isCanonical')
#if not has_linguaplone or obj.isCanonical():
# results.append(obj)
pos += 1
if obj.id == selfID:
break #pos=2 #len(results)
return (results,pos-1)
Index: task_view_slot.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/skins/EduploneTest/task_view_slot.pt,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** task_view_slot.pt 28 Sep 2004 21:08:53 -0000 1.1.1.1
--- task_view_slot.pt 29 Sep 2004 15:37:11 -0000 1.2
***************
*** 15,19 ****
<div metal:define-macro="page_nav"
! tal:define="results python:here.get_ep_content(here.aq_parent, here.getId());
Batch python:modules['Products.CMFPlone'].Batch;
b_size python:1;
--- 15,19 ----
<div metal:define-macro="page_nav"
! tal:define="results python:here.get_ep_content_test(here.aq_parent, here.getId());
Batch python:modules['Products.CMFPlone'].Batch;
b_size python:1;
***************
*** 24,28 ****
</div>
-
</div>
--- 24,27 ----
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl