EduploneWebdidactics/skins/EduploneWebdidactics get_ep_parent_items.py,NONE,1.1.2.1 ep_content_slot.pt,1.1,1.1.2.1 ep_image_batch.pt,1.1.2.2,1.1.2.3 ep_styles.css.dtml,1.1.2.1,1.1.2.2

Nils Haagen <[email protected]> Mon, 20 Jun 2005 20:55:09 +0000
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29166/skins/EduploneWebdidactics

Modified Files:
      Tag: janus
	ep_content_slot.pt ep_image_batch.pt ep_styles.css.dtml 
Added Files:
      Tag: janus
	get_ep_parent_items.py 
Log Message:
 

Index: ep_image_batch.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics/Attic/ep_image_batch.pt,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** ep_image_batch.pt	3 May 2005 11:45:27 -0000	1.1.2.2
--- ep_image_batch.pt	20 Jun 2005 20:55:06 -0000	1.1.2.3
***************
*** 2,5 ****
--- 2,7 ----
       tal:define="icons python:here.get_ep_image_lib('_all');">
  
+ <!--h1 tal:content="python: here.get_ep_parent_items(here.aq_parent)" /-->
+ 
  <span tal:repeat="KnowledgeUnit python:results[0]">
  		

Index: ep_content_slot.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics/ep_content_slot.pt,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** ep_content_slot.pt	9 Feb 2005 12:27:44 -0000	1.1
--- ep_content_slot.pt	20 Jun 2005 20:55:06 -0000	1.1.2.1
***************
*** 53,61 ****
          <div metal:define-macro="page_nav_bottom"
              tal:define="results python:(here.aq_parent.objectValues(),len(here.aq_parent.objectValues())-1);
!                         Xresults python: 'get_ep_content(here.aq_parent)';
                          Batch python:modules['Products.CMFPlone'].Batch;
                          b_size python:1;
                          b_start python:results[1];
                          b_start request/b_start | b_start;">
            <div tal:define="batch python:Batch(results[0], b_size, int(b_start), orphan=0, pagerange=2);">
                <div metal:use-macro="here/ep_batch_parent_macros/macros/navigation" />
--- 53,63 ----
          <div metal:define-macro="page_nav_bottom"
              tal:define="results python:(here.aq_parent.objectValues(),len(here.aq_parent.objectValues())-1);
!                         Xresults python: here.get_ep_parent_items(here.aq_parent);
                          Batch python:modules['Products.CMFPlone'].Batch;
                          b_size python:1;
                          b_start python:results[1];
                          b_start request/b_start | b_start;">
+ 
+ 
            <div tal:define="batch python:Batch(results[0], b_size, int(b_start), orphan=0, pagerange=2);">
                <div metal:use-macro="here/ep_batch_parent_macros/macros/navigation" />

Index: ep_styles.css.dtml
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics/Attic/ep_styles.css.dtml,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** ep_styles.css.dtml	1 May 2005 16:25:33 -0000	1.1.2.1
--- ep_styles.css.dtml	20 Jun 2005 20:55:06 -0000	1.1.2.2
***************
*** 17,19 ****
--- 17,26 ----
  
  
+ .ep_navicon_small { 
+     height:15px;
+     width:15px;
+     padding-bottom:0px;
+     padding-right:0px;
+     
+ }
  </dtml-with>
\ No newline at end of file

--- NEW FILE: get_ep_parent_items.py ---
## Script (Python) "get_ep_parent_items"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=LUFolder
##title=
##

selfPos=0
LUs=[]

for i in LUFolder.objectValues():
    LUs.append(i)
    if i.getId()==context.getId():
        selfPos=len(LUs)-1

return selfPos, LUs


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click