EduploneWebdidactics/skins/EduploneWebdidactics ep_action_circ_30x30.gif,NONE,1.1 ep_assignment_circ_30x30.gif,NONE,1.1 ep_batch_parent_macros.pt,NONE,1.1 ep_content_slot.pt,NONE,1.1 ep_cooperation_circ_30x30.gif,NONE,1.1 ep_explanation_circ_30x30.gif,NONE,1.1 ep_folder_listing.pt,NONE,1.1 ep_interaction_circ_30x30.gif,NONE,1.1 ep_orientation_circ_30x30.gif,NONE,1.1 ep_question_circ_30x30.gif,NONE,1.1 ep_source_circ_30x30.gif,NONE,1.1 ep_view.pt,NONE,1.1 get_ep_img_lib.py,NONE,1.1 metadata_edit_form.cpt,1.2,1.3 relations_edit.cpt,1.3,1.4

Nils Haagen <[email protected]> Wed, 09 Feb 2005 12:27:47 +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-serv13599/skins/EduploneWebdidactics

Modified Files:
	metadata_edit_form.cpt relations_edit.cpt 
Added Files:
	ep_action_circ_30x30.gif ep_assignment_circ_30x30.gif 
	ep_batch_parent_macros.pt ep_content_slot.pt 
	ep_cooperation_circ_30x30.gif ep_explanation_circ_30x30.gif 
	ep_folder_listing.pt ep_interaction_circ_30x30.gif 
	ep_orientation_circ_30x30.gif ep_question_circ_30x30.gif 
	ep_source_circ_30x30.gif ep_view.pt get_ep_img_lib.py 
Log Message:
changes in skins, mainly, TemplateMixin. incomplete CuPo

--- NEW FILE: ep_question_circ_30x30.gif ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: ep_batch_parent_macros.pt ---
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      i18n:domain="plone">
<body>

<!-- Navigation -->
<div class="listingBar visualNoPrint"
     metal:define-macro="navigation"
     tal:define="request request|here/request|container/request|nothing;
                 batch batch|nothing;
                 mq python:modules['ZTUtils'].make_query;
                 url python:here.aq_parent.absolute_url();
                 currentpage batch/pagenumber;"
     tal:condition="python: batch.next or  batch.previous">

<!-- testdal: I modified the condition above because for some dark reason "batch/previous|batch/next" doesn't work. DannyB-->
<!-- XXX tesdal needs to have a look at these
    <metal:rellinks fill-slot="rel_slot">
        <link rel="first" href="" title="First page" tal:attributes="href string:author" />
        <link rel="last" href="" title="Last page" tal:attributes="href string:author" />
        <link rel="previous" href="" title="Previous page" tal:attributes="href string:author" />
        <link rel="next" href="" title="Next page" tal:attributes="href string:author" />
    </metal:rellinks>
-->

    <span class="previous"
      tal:define="p batch/previous | nothing"
      tal:condition="p">
        <a href=""
           tal:attributes="href python: '%s/%s?%s' % (p[0].absolute_url(), template.id, mq( request.form, {batch.b_start_str:p.first} ))">
           &laquo;
           <span i18n:translate="batch_previous_x_items" tal:omit-tag="" tal:condition="python: p.length>1">
               Previous
               <span i18n:name="number" tal:content="p/length">n</span>
               items
           </span>
           <span i18n:domain="eduplonetypes" 
                 i18n:translate="batch_previous_item" 
                 tal:condition="python: p.length<=1">
               Previous item
           </span>
        </a>
    </span>

    <span class="next"
      tal:define="n batch/next | nothing"
      tal:condition="n">
        <a href=""
           tal:attributes="href python: '%s/%s?%s' % (n[0].absolute_url(), template.id, mq( request.form, {batch.b_start_str:n.first} ))">
           <span i18n:translate="batch_next_x_items" tal:omit-tag="" tal:condition="python: n.length>1">
               Next
               <span i18n:name="number" tal:content="n/length">n</span>
               items
           </span>
           <span i18n:domain="eduplonetypes" 
                 i18n:translate="batch_next_item" 
                 tal:condition="python: n.length<=1">
               Next item
           </span>
           &raquo;
        </a>
    </span>

    <!-- Link to first 
    <span tal:condition="python: 1 not in batch.navlist">
        <a href=""
           tal:attributes="href python: '%s/%s?%s' % (batch.prevlist[0].absolute_url(), template.id, batch.pageurl(request.form,1));">1</a>
        <span tal:condition="python: 2 not in (batch.prevlist or batch.leapback)"
              tal:omit-tag="">
           ...
        </span>
    </span> -->

    <!-- Pagelist with quantum leap links to previous pages for quick navigation 
    <span tal:repeat="linklist python:batch.navurls(request.form, batch.leapback)"
          tal:condition="batch/leapback"
          tal:omit-tag="" >
        <a href=""
           tal:define="page python:linklist[0];
                       query python:linklist[1];"
           tal:content="page"
           tal:attributes="href python: '%s/%s?%s' % (linklist[0].absolute_url(), template.id, query)" >
        </a>
        ...
    </span> -->

    <!-- Pagelist with links to previous pages for quick navigation 
    <span tal:repeat="linklist python:batch.prevurls(request.form)"
          tal:condition="batch/prevlist"
          tal:omit-tag="" >
        <a href=""
           tal:define="page python:linklist[0];
                       query python:linklist[1];"
           tal:content="page"
           tal:attributes="href python: '%s?%s' % (url,query)" >
        </a>
    </span> -->


    <!-- Level up -->
<!--
    <span tal:condition="python:1"
          tal:omit-tag="">
            <a href="" tal:attributes="href python:here.aq_parent.absolute_url()">Table of Contents</a> - 
    </span>
-->

    <!-- Current page -->
<!--    <span tal:condition="batch/navlist"
          tal:omit-tag=""
          i18n:domain="eduplonetypes" 
          i18n:translate="batch_pagenumber">
        This is page <span i18n:name="number" tal:content="batch/pagenumber">Current page number</span>
    </span>
-->
   <!-- Topic (one folder up...)-->
    <span>
        <b tal:content="python: here.aq_parent.title" />
    </span>



    <!-- Pagelist with links to next pages for quick navigation 
    <span tal:repeat="linklist python:batch.nexturls(request.form)"
          tal:condition="batch/nextlist"
          tal:omit-tag="" >
        <a href=""
           tal:define="page python:linklist[0];
                       query python:linklist[1];"
           tal:content="page"
           tal:attributes="href python: '%s?%s' % (url,query)" >
        </a>
    </span> -->

    <!-- Pagelist with quantum leap links to next pages for quick navigation 
    <span tal:repeat="linklist python:batch.navurls(request.form, batch.leapforward)"
          tal:condition="batch/leapforward"
          tal:omit-tag="" >
        ...
        <a href=""
           tal:define="page python:linklist[0];
                       query python:linklist[1];"
           tal:content="page"
           tal:attributes="href python: '%s?%s' % (url,query)" >
        </a>
    </span> -->

    <!-- Link to last 
    <span tal:condition="python:batch.numpages not in batch.navlist">
        <span tal:condition="python: batch.numpages - 1 not in (batch.nextlist or batch.leapforward)"
              tal:omit-tag="">
        ...
        </span>
        <a href=""
           tal:attributes="href python: '%s?%s' % (url,batch.pageurl(request.form,batch.numpages));"
           tal:content="batch/numpages">3457</a>
    </span> -->

</div>

</body>
</html>

--- NEW FILE: ep_action_circ_30x30.gif ---
(This appears to be a binary file; contents omitted.)

Index: metadata_edit_form.cpt
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics/metadata_edit_form.cpt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** metadata_edit_form.cpt	16 Sep 2004 19:20:39 -0000	1.2
--- metadata_edit_form.cpt	9 Feb 2005 12:27:44 -0000	1.3
***************
*** 56,64 ****
                               i18n:translate="label_required">(Required)</span>
  
!                              <div class="formHelp"
                                    tal:define="desc python:mdelement.Description()"
                                    tal:condition="desc"
                                    tal:content="structure desc"
!                                   i18n:translate="">Help</div>
  
                                    <div tal:content="error">
--- 56,64 ----
                               i18n:translate="label_required">(Required)</span>
  
!                              <!--div class="formHelp"
                                    tal:define="desc python:mdelement.Description()"
                                    tal:condition="desc"
                                    tal:content="structure desc"
!                                   i18n:translate="">Help</div-->
  
                                    <div tal:content="error">

Index: relations_edit.cpt
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics/relations_edit.cpt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** relations_edit.cpt	3 Nov 2004 12:55:27 -0000	1.3
--- relations_edit.cpt	9 Feb 2005 12:27:44 -0000	1.4
***************
*** 24,32 ****
           >
  
!       <h1 i18n:translate="relations_editreferences">Edit References for:</h1>
!       <div class="contentHeader">
!             <h4 tal:content="structure python:here.title_or_id()">Title or id</h4>
!       </div>
! 
  
        <p i18n:translate="relations_description_edit_references">
--- 24,28 ----
           >
  
!       <h1> <span i18n:translate="relations_editreferences">Edit References for:</span> <span tal:content="here/title_or_id"/></h1>
  
        <p i18n:translate="relations_description_edit_references">
***************
*** 46,52 ****
  
          
!         <b>tID:</b>
!         <input type=text name="tUid" id="tUid">
! 
  
  <div tal:define="startup_directory python:here.absolute_url();
--- 42,46 ----
  
          
!         
  
  <div tal:define="startup_directory python:here.absolute_url();
***************
*** 56,60 ****
                   title              python: 'Single Relation';
                   description        python: 'Pick an object'; 
!                  allowed_types      python: 'Document*ATDocument*ATFile*Article*ATRefBrowserDemo';
                   search_index       python: request.get('search_index', 'SearchableText');
                   show_indexes       python: '1';
--- 50,54 ----
                   title              python: 'Single Relation';
                   description        python: 'Pick an object'; 
!                  allowed_types      python: 'Folder*Document*File*Image*ATFolder*ATDocument*ATFile*ATImage';
                   search_index       python: request.get('search_index', 'SearchableText');
                   show_indexes       python: '1';
***************
*** 79,82 ****
--- 73,80 ----
                   ">
                     
+ 
+ 	<b>tID:</b>
+         <input type=text name="tUid" id="tUid">
+ 
   <input type="button"
          class="searchButton"
***************
*** 90,93 ****
--- 88,93 ----
  
  
+ 
+ 
          <br>
          <select name="jigId">
***************
*** 97,100 ****
--- 97,107 ----
          </select>
  
+ 
+ 
+ 
+ 
+ 
+ 
+ 
  <bR><bR><bR>
  
***************
*** 127,131 ****
              </thead>
              
!                 <tr tal:repeat="ref python: here.reference_catalog.getReferences(here)">
                                         
                     <td tal:define="sUID python: ref.getSourceObject().UID();
--- 134,140 ----
              </thead>
              
! 	    <metal:block tal:repeat="ref python: here.reference_catalog.getReferences(here)">
!                 <tr tal:define="oddrow repeat/ref/odd"
! 		    tal:attributes="class python:test(oddrow, 'even', 'odd')">
                                         
                     <td tal:define="sUID python: ref.getSourceObject().UID();
***************
*** 141,144 ****
--- 150,154 ----
           
                 </tr>
+ 	    </metal:block>
  
         </table>

--- NEW FILE: ep_source_circ_30x30.gif ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: ep_interaction_circ_30x30.gif ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: ep_explanation_circ_30x30.gif ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: ep_orientation_circ_30x30.gif ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: get_ep_img_lib.py ---
## Script (Python) "get_ep_img_lib"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=classification_name
##title=
##
img_lib={
    'orientation':'ep_orientation_circ_30x30.gif',
    'summary':'ep_orientation_circ_30x30.gif',
    'overview':'ep_orientation_circ_30x30.gif',
    'explanation':'ep_explanation_circ_30x30.gif',
    'example':'ep_explanation_circ_30x30.gif',
    'action':'ep_action_circ_30x30.gif',
    'rule':'ep_action_circ_30x30.gif',
    'procedure':'ep_action_circ_30x30.gif',
    'checklist':'ep_action_circ_30x30.gif',
    'assignment':'ep_assignment_circ_30x30.gif',
    'cooperation':'ep_cooperation_circ_30x30.gif',
    'interaction':'ep_interaction_circ_30x30.gif',
    'question':'ep_question_circ_30x30.gif',
    'source':'ep_source_circ_30x30.gif',
}

return img_lib.get(classification_name, 'document_icon.gif')

--- NEW FILE: ep_folder_listing.pt ---
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      lang="en"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="plone">

<body>

    <div metal:fill-slot="main">

        <h1 tal:content="here/title_or_id" class="documentFirstHeading">
            Title or id
        </h1>

        <a href=""
           class="link-parent"
           tal:define="parent_url python:here.navigationParent(here, template.getId())"
           tal:condition="parent_url"
           tal:attributes="href parent_url"
           i18n:translate="go_to_parent_url">
        Up one level
        </a>

        <div class="documentDescription" tal:content="structure here/Description">
            description
        </div>

        <br>
        

        <div id="bodyContent"
             tal:define="docs python:here.objectValues()">
            <div tal:repeat="doc docs">

            <fieldset tal:define="mdtool     here/portal_metadata;
                              binding    python:mdtool.getMetadata(doc) or None;
                              mdsetname  python:'dcwd';
                              mdset      python:binding.getSet(mdsetname);
                              val_level  python: binding['dcwd']['wd_level'];
                              val_media  python: binding['dcwd']['wd_mediatype'];
                              val_class  python: binding['dcwd']['wd_classification'];">

                <legend tal:condition="val_level">
                  <a href="" tal:attributes="href python: doc.absolute_url()">
                    <img src="" tal:attributes="src python:here.get_ep_img_lib(val_class);
                                                border python:'0';"> 
                  </a>
                    &nbsp;
                    <b tal:content="python: mdset['wd_classification'].renderView(value=val_class)" /> 
                    (<b tal:replace="python: mdset['wd_level'].renderView(value=val_level)" />)
                    &nbsp; 
                    <b tal:replace="python: mdset['wd_mediatype'].renderView(value=val_media)" /> 
                </legend>

                <dl>
                    <a href="" tal:attributes="href python: doc.absolute_url()">
                        <dd>
                            <b tal:content="structure python: doc.title_or_id()" />
                        </dd>
                    </a>
                        <dd tal:content="structure doc/Description" />
                </dl>
            
            </fieldset>

            </div>

            <p tal:condition="not: here/contentValues" i18n:translate="description_no_items_in_folder">
                There are currently no items in this folder.
            </p>

        </div>


    
<br/><br />

        <div class="even">
        <dl metal:define-macro="wd_nav_bottom"
            tal:define="parent python:here;">

            <dt tal:content="python: here.title" />
            
                <metal:block tal:repeat="ref python: here.reference_catalog.getReferences(parent)">
                <dd>                       
                    <span tal:define="sObj python: ref.getSourceObject();
                                      sUID python: sObj.UID();
                                      tObj python: ref.getTargetObject();
                                      tUID python: tObj.UID();
                                      jigID python: ref.relationship;
                                      relVoc here/relations_form_vocab;
                                      XrelTitle python:relVoc[0]['title'];
				      relTitle jigID;
                                      ">
        
                           <b tal:content="relTitle" />
                           &nbsp;
                           <a href="" tal:content="python: ref.targetTitle()" 
                                      tal:attributes="href python:tObj.absolute_url()" />
                           <br />
                 
                    </span>
                </dd>
                </metal:block>
        </dl>
        </div>


<!--


        <metal:listingmacro define-macro="main">
        <tal:foldercontents define="folderContents python:here.getFolderListingFolderContents(suppressHiddenFiles=1)">
        <tal:listing condition="folderContents"
                     define="global getObjSize nocall:here/getObjSize;
                             global toPortalTime nocall:here/toPortalTime;">



            <dl>
	        <tal:entry tal:repeat="obj folderContents">

                <dt metal:define-macro="listitem"
                    tal:define="url python: obj.absolute_url()+test(obj.isPrincipiaFolderish,'/','');
                                icon python: obj.getIcon(1)">
                <a href="#" tal:attributes="href url">
                        <img src="" alt=""
                                        tal:attributes="src string:${utool}/${icon};alt here/title_or_id" />
                </a>

                <a href="#" tal:condition="python: obj.portal_type not in ['Link', 'Image']"
                            tal:attributes="href url"
                            tal:content="obj/title_or_id" />

                <a href="#" tal:condition="python: obj.portal_type == 'Image'"
                            tal:attributes="href python: url + '/view'"
                            tal:content="obj/title_or_id" />

                <a href="#" 
                   tal:condition="python: obj.portal_type == 'Link'"
                   tal:attributes="href obj/getRemoteUrl;"
                   class="link-plain"
                   tal:content="obj/title_or_id" />

                <span class="discreet"
                      tal:condition="python: obj.portal_type == 'Event'">
    
                    &nbsp;
                    <span tal:replace="obj/location">Oslo</span>,
                    <span tal:replace="python: obj.start().ISO()">from date</span> -
                    <span tal:replace="python: obj.end().ISO()">to date</span>
                    
                </span>
                </dt>

                <dd>

                    <span tal:content="structure python:test(obj.Description(), obj.Description(), '&nbsp;')"> description </span>
                </dd>
		    </tal:entry>
            </dl>



        </tal:listing>
        
        <p class="discreet"
           tal:condition="not: folderContents" i18n:translate="description_no_items_in_folder">
         There are currently no items in this folder.
        </p>

        </tal:foldercontents>
        </metal:listingmacro>

-->

    </div>

</body>
</html>

--- NEW FILE: ep_assignment_circ_30x30.gif ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: ep_view.pt ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
      lang="en-US"
      metal:use-macro="here/main_template/macros/master">

  <body>
    <div metal:fill-slot="main"
         tal:define="portal_type python:here.getPortalTypeName().lower();
                     view_template python:'%s_view' % portal_type;"> <!-- portal_type[2:] because this is based on ATContentTypes -->

        <tal metal:use-macro="here/ep_content_slot/macros/main">
            <tal metal:fill-slot="content_slot">
                <tal metal:use-macro="python:path('here/%s/macros/main' % view_template)" />
            </tal>
        </tal>
    </div>
  </body>

</html>

--- NEW FILE: ep_content_slot.pt ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
      lang="en-US"
      metal:use-macro="here/main_template/macros/master">
  <body>
    <div metal:fill-slot="main"
         tal:define="portal_type python:here.getPortalTypeName().lower();
                     view_template python:'%s_view' % portal_type;
                     view_macros python:path('here/%s/macros|nothing' % view_template);
                     body_macro view_macros/body|nothing;
                     ">
      <div metal:define-macro="main"
           tal:omit-tag="">
	   
        
        <div metal:define-macro="page_nav"
            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" />
          </div>
        </div>


        <fieldset tal:define="mdtool     here/portal_metadata;
                              binding    python:mdtool.getMetadata(here) or None;
                              mdsetname  python:'dcwd';
                              mdset      python:binding.getSet(mdsetname);
                              val_level  python: binding['dcwd']['wd_level'];
                              val_media  python: binding['dcwd']['wd_mediatype'];
                              val_class  python: binding['dcwd']['wd_classification'];">

            <tal metal:define-macro="eduplone_legend">
                <legend tal:condition="val_level">
                    <img src="" tal:attributes="src python:here.get_ep_img_lib(val_class)"> 
                    &nbsp;
                    <b tal:content="python: mdset['wd_classification'].renderView(value=val_class)" /> 
                    (<b tal:replace="python: mdset['wd_level'].renderView(value=val_level)" />)
                    &nbsp; 
                    <b tal:replace="python: mdset['wd_mediatype'].renderView(value=val_media)" /> 
                </legend>
            </tal>

            <tal metal:define-slot="content_slot" />

        </fieldset>

        
        <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" />
          </div>
        </div>

        <div class="even">
        <dl metal:define-macro="wd_nav_bottom"
            tal:define="parent python:here.aq_parent;">

            <dt tal:content="python: here.aq_parent.title" />
            
                <metal:block tal:repeat="ref python: here.reference_catalog.getReferences(parent)">
                <dd>                       
                    <span tal:define="sObj python: ref.getSourceObject();
                                      sUID python: sObj.UID();
                                      tObj python: ref.getTargetObject();
                                      tUID python: tObj.UID();
                                      jigID python: ref.relationship;
                                      relVoc parent/relations_form_vocab;
                                      XrelTitle python:relVoc[0]['title'];
				      relTitle jigID;
                                      ">
        
                           <b tal:content="relTitle" />
                           &nbsp;
                           <a href="" tal:content="python: ref.targetTitle()" 
                                      tal:attributes="href python:tObj.absolute_url()" />
                           <br />
                 
                    </span>
                </dd>
                </metal:block>
        </dl>
        </div>


      </div>
    </div>
  </body>
</html>

--- NEW FILE: ep_cooperation_circ_30x30.gif ---
(This appears to be a binary file; contents omitted.)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click