[DEPLACE ASP3 --> PYTHON]Analyse de code Python

cs_swinia Messages postés 6 Date d'inscription jeudi 4 mai 2006 Statut Membre Dernière intervention 5 mai 2009 - 3 déc. 2008 à 15:56
PascalCmoa Messages postés 239 Date d'inscription mercredi 19 février 2003 Statut Membre Dernière intervention 17 janvier 2013 - 3 déc. 2008 à 16:44
Bonjour,

s'il vous plait quelqu'un peut m'aider à m'expliqer ce que fait ce code

<tal:globals define="global IsHomePage python:context == container;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /??>

                     global rubrics python:container.objectValues(['Folder','Folder (Ordered)'])" />

<html>

  <head>

    <title tal:content="template/title">The title</title>

  </head>

 

<!-- initialisation de variables globales -->

 

 

<center>

   Titre de la page

</center>

 

Menu de navigation

<h3 tal:content="python:len(rubrics)" />

 

     <li>

         [                     tal:omit-tag="IsHomePage"

                    tal:attributes="href container/absolute_url">Accueil]

     </li>

 

     <li tal:repeat="rubric rubrics">

         [

               tal:omit-tag="python:context == rubric"

               tal:attributes="href rubric/absolute_url;

               title rubric/title_or_id">

              

         ]

     </li>

 

<center>

 

  <tal:home tal:condition="IsHomePage">

     <h2 tal:content="context/title_or_id" />

     Bienvenue sur

    

     <textarea tal:content="context/description | nothing"></textarea>

  </tal:home>

 

  <tal:nothome tal:condition="not: IsHomePage">

     <h2 tal:content="context/title_or_id" />

    

     <textarea tal:content="python: context.getProperty('description', 'no description')"></textarea>

 

 

 

        

             <tal:item tal:repeat="item items">

                

                

 

                 <!-- on affiche le titre -->

                 <h2 tal:content="item/title_or_id" />

 

                

                     <!-- permet de visualiser le contenu des image ou des DTML -->

                    

                

 

                

                     <!-- permet d'afficher un lien vers le fichier -->

                   [

                       tal:attributes="href item/absolute_url;

                       title item/title_or_id">

                      

                   ]

                 

             </tal:item>

        

  </tal:nothome>

 

</html>

Merci d'avance

1 réponse

PascalCmoa Messages postés 239 Date d'inscription mercredi 19 février 2003 Statut Membre Dernière intervention 17 janvier 2013 5
3 déc. 2008 à 16:44
Bonjour,

Tu fais un copier coller de ce code dans un page web et tu analyses le comportement.

PascalCmoa
[mailto:pascal.aknouche@free.fr email: PascalCmoa]
0
Rejoignez-nous