Changeset 1403 for WAeUP_SRP/trunk


Ignore:
Timestamp:
9 Feb 2007, 15:37:49 (18 years ago)
Author:
joachim
Message:

more documentation and xsl

Location:
WAeUP_SRP/trunk
Files:
2 added
15 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/doc/srp_documentation.mm

    r1402 r1403  
    55<node CREATED="1170079621592" ID="Freemind_Link_1297017754" MODIFIED="1170079640872" TEXT="Campus">
    66<node CREATED="1170079643589" FOLDED="true" ID="Freemind_Link_1231068129" MODIFIED="1170080364243" TEXT="Academics">
    7 <node CREATED="1170080366716" ID="Freemind_Link_415048819" MODIFIED="1170082092260" TEXT="n * Faculty">
     7<node CREATED="1170080366716" FOLDED="true" ID="Freemind_Link_415048819" MODIFIED="1170082092260" TEXT="n * Faculty">
    88<node CREATED="1170080406892" ID="Freemind_Link_1983042340" MODIFIED="1170082108154" TEXT="n * Department">
    99<node CREATED="1170080420252" ID="Freemind_Link_290613406" MODIFIED="1170080430310" TEXT="Courses">
     
    1717</node>
    1818</node>
     19<node CREATED="1171014630747" ID="Freemind_Link_21788009" MODIFIED="1171014635284" TEXT="Imports"/>
    1920</node>
    2021<node CREATED="1170082138244" ID="Freemind_Link_1354366927" MODIFIED="1170082146391" TEXT="Students">
    2122<node CREATED="1170082147831" ID="Freemind_Link_115332414" MODIFIED="1170082160733" TEXT="n * Student">
    22 <node CREATED="1170082164451" ID="Freemind_Link_1627718074" MODIFIED="1170082180091" TEXT="Application">
     23<node CREATED="1170082164451" FOLDED="true" ID="Freemind_Link_1627718074" MODIFIED="1170082180091" TEXT="Application">
    2324<node CREATED="1170083733194" ID="Freemind_Link_1398132513" MODIFIED="1170862024807" TEXT="Id: application"/>
    24 <node CREATED="1170083603042" ID="Freemind_Link_4951906" LINK="https://trac.waeup.org/browser/WAeUP_SRP/trunk/profiles/default/types/StudentApplication.xml?format=raw" MODIFIED="1170860609710" TEXT="Type: StudentApplication"/>
    25 <node CREATED="1170083649773" ID="Freemind_Link_1139787187" LINK="../profiles/default/schemas/student_application.xml" MODIFIED="1170958938456" TEXT="Schema: student_application"/>
     25<node CREATED="1170083603042" ID="Freemind_Link_4951906" LINK="../profiles/default/types/StudentApplication.xml" MODIFIED="1171009517689" TEXT="Type: StudentApplication"/>
     26<node CREATED="1170083649773" ID="Freemind_Link_1139787187" LINK="../profiles/default/schemas/student_application.xml" MODIFIED="1171009482163" TEXT="Schema: student_application"/>
    2627<node CREATED="1170883343230" ID="Freemind_Link_158025710" MODIFIED="1170883350237" TEXT="Forms">
    2728<node CREATED="1170883352226" ID="Freemind_Link_847687960" MODIFIED="1170883352226" TEXT=""/>
    2829</node>
    2930</node>
    30 <node CREATED="1170082180802" ID="Freemind_Link_812719734" MODIFIED="1170082187858" TEXT="Clearance">
     31<node CREATED="1170082180802" FOLDED="true" ID="Freemind_Link_812719734" MODIFIED="1170082187858" TEXT="Clearance">
    3132<node CREATED="1170083733194" ID="Freemind_Link_1823044370" MODIFIED="1170862044390" TEXT="Id: clearance"/>
    32 <node CREATED="1170083603042" ID="Freemind_Link_1641808385" LINK="https://trac.waeup.org/browser/WAeUP_SRP/trunk/profiles/default/types/StudentClearance.xml" MODIFIED="1170860373581" TEXT="Type: StudentClearance"/>
     33<node CREATED="1170083603042" ID="Freemind_Link_1641808385" LINK="../profiles/default/types/StudentClearance.xml" MODIFIED="1171009882288" TEXT="Type: StudentClearance"/>
    3334<node CREATED="1170083649773" ID="Freemind_Link_1281565507" LINK="../profiles/default/schemas/student_clearance.xml" MODIFIED="1170958977813" TEXT="Schema: student_clearance"/>
    3435</node>
    35 <node CREATED="1170082180802" ID="Freemind_Link_634523864" MODIFIED="1170862191693" TEXT="Personal">
     36<node CREATED="1170082180802" FOLDED="true" ID="Freemind_Link_634523864" MODIFIED="1170862191693" TEXT="Personal">
    3637<node CREATED="1170083733194" ID="Freemind_Link_1809756717" MODIFIED="1170862205697" TEXT="Id: personal"/>
    37 <node CREATED="1170083603042" ID="Freemind_Link_212388289" LINK="https://trac.waeup.org/browser/WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml?format=raw" MODIFIED="1170862281083" TEXT="Type: StudentPersonal"/>
     38<node CREATED="1170083603042" ID="Freemind_Link_212388289" LINK="../profiles/default/types/StudentPersonal.xml" MODIFIED="1171010050967" TEXT="Type: StudentPersonal"/>
    3839<node CREATED="1170083649773" ID="Freemind_Link_329050457" LINK="../profiles/default/schemas/student_personal.xml" MODIFIED="1170959011444" TEXT="Schema: student_personal"/>
    3940</node>
    4041<node CREATED="1170082392807" ID="Freemind_Link_1979443941" MODIFIED="1170862215735" TEXT="StudyCourse">
    41 <node CREATED="1170930140692" ID="Freemind_Link_607082969" MODIFIED="1170930261851" TEXT="Id: study_course"/>
    42 <node CREATED="1170930264337" ID="Freemind_Link_1384807180" MODIFIED="1170930283226" TEXT="Type: StudentStudyCourse"/>
    43 <node CREATED="1170930285073" ID="Freemind_Link_1989199190" LINK="../profiles/default/schemas/student_study_course.xml" MODIFIED="1170959056776" TEXT="Schema: student_study_course"/>
     42<node CREATED="1170930140692" ID="Freemind_Link_607082969" MODIFIED="1171009488850" TEXT="Id: study_course"/>
     43<node CREATED="1170930264337" ID="Freemind_Link_1384807180" LINK="../profiles/default/types/StudentStudyCourse.xml" MODIFIED="1171009934935" TEXT="Type: StudentStudyCourse"/>
     44<node CREATED="1170930285073" ID="Freemind_Link_1989199190" LINK="../profiles/default/schemas/student_study_course.xml" MODIFIED="1171016022394" TEXT="Schema: student_study_course"/>
     45<node CREATED="1171015856280" ID="Freemind_Link_86536977" LINK="../profiles/default/layouts/student_study_course.xml" MODIFIED="1171016046195" TEXT="Layout: student_study_course"/>
    4446<node CREATED="1170082404788" FOLDED="true" ID="Freemind_Link_1932365066" MODIFIED="1170082416832" TEXT="n * Level">
    4547<node CREATED="1170082419140" ID="Freemind_Link_1356993815" MODIFIED="1170082470528" TEXT="n * CourseResult"/>
    4648</node>
    4749</node>
    48 <node CREATED="1170082200667" ID="Freemind_Link_140160478" MODIFIED="1170082364784" TEXT="Payments">
     50<node CREATED="1170082200667" FOLDED="true" ID="Freemind_Link_140160478" MODIFIED="1170082364784" TEXT="Payments">
    4951<node CREATED="1170883263996" ID="Freemind_Link_39098989" LINK="../profiles/default/schemas/payment.xml" MODIFIED="1170959080069" TEXT="Schema: payment"/>
    5052<node CREATED="1170082366149" ID="Freemind_Link_1718065298" MODIFIED="1170082387769" TEXT="n * Payment"/>
    5153</node>
    5254</node>
     55<node CREATED="1171014603296" ID="Freemind_Link_592162547" MODIFIED="1171014611096" TEXT="Imports"/>
    5356</node>
    5457<node CREATED="1170082502675" FOLDED="true" ID="Freemind_Link_1051871348" MODIFIED="1170082511430" TEXT="Accommodation">
  • WAeUP_SRP/trunk/profiles/default/catalog.xsl

    r1402 r1403  
    55    <html>
    66      <body>
     7      <head>
     8        <title>
     9          <xsl:value-of select="object/name"/>
     10        </title>
     11        <link rel="stylesheet" type="text/css" media="all"
     12              href="xsl.css" />     
     13      </head>
    714        <xsl:for-each select="object">
    815          <h2>
  • WAeUP_SRP/trunk/profiles/default/courses_catalog.xml

    r1146 r1403  
    11<?xml version="1.0"?>
    2 <object name="portal_catalog" meta_type="CMF Catalog">
     2<?xml-stylesheet type="text/xsl" href="catalog.xsl"?>
     3<object name="courses_catalog" meta_type="CMF Catalog">
    34 <column value="code"/>
    45 <column value="faculty"/>
  • WAeUP_SRP/trunk/profiles/default/layouts/layout.xsl

    r1397 r1403  
    44  <xsl:template match="/">
    55    <html>
     6      <head>
     7        <title>
     8          <xsl:value-of select="object/name"/>
     9        </title>
     10        <link rel="stylesheet" type="text/css" media="all"
     11              href="../xsl.css" />     
     12      </head>
    613      <body>
    714        <xsl:for-each select="object">
    8           <div>
    9             <xsl:value-of select="@name"/>
    10           </div>
     15          <h1><xsl:value-of select="@name"/></h1>
    1116        </xsl:for-each>
     17        <h1>Layout</h1>
     18        <table>
     19          <xsl:for-each select="object/table/row">
     20            <xsl:variable name="color">
     21              <xsl:choose>
     22                <xsl:when test="position() mod 2 = 0">
     23                  <xsl:text>#ffffff</xsl:text>
     24                </xsl:when>
     25                <xsl:otherwise>
     26                  <xsl:text>#eeeeee</xsl:text>
     27                </xsl:otherwise>
     28              </xsl:choose>
     29            </xsl:variable>
     30            <tr style="background-color:{$color}">
     31              <xsl:for-each select="cell">
     32              <td>
     33                <xsl:value-of select="@name"/>
     34              </td>
     35              </xsl:for-each>
     36            </tr>
     37          </xsl:for-each>
     38        </table>
    1239        <h1>Properties</h1>
    13         <xsl:for-each select="object/property">
    14           Property :
    15           <div>
    16             <xsl:value-of select="@name"/>:                                             <xsl:value-of select="text()"/>
    17           </div>
    18         </xsl:for-each>
     40        <table>
     41          <xsl:for-each select="object/property">
     42            <xsl:variable name="color">
     43              <xsl:choose>
     44                <xsl:when test="position() mod 2 = 0">
     45                  <xsl:text>#ffffff</xsl:text>
     46                </xsl:when>
     47                <xsl:otherwise>
     48                  <xsl:text>#eeeeee</xsl:text>
     49                </xsl:otherwise>
     50              </xsl:choose>
     51            </xsl:variable>
     52            <tr style="background-color:{$color}">
     53              <td>
     54                <xsl:value-of select="@name"/>
     55              </td>
     56              <td>
     57                <xsl:value-of select="text()"/>
     58              </td>
     59            </tr>
     60          </xsl:for-each>
     61        </table>
    1962        <h1>Widgets</h1>
    20         <xsl:for-each select="object/widget">
    21           <div>Widget: <xsl:value-of select="@name"/>
    22             Type:<xsl:value-of select="@meta_type"/>
    23           </div>
    24           <div>Properties:</div>
    25           <xsl:for-each select="property">
    26             <div>
    27               <xsl:value-of select="@name"/>: <xsl:value-of select="text()"/>
    28             </div>
    29             <div>
    30               <xsl:value-of select="element"/>
    31             </div>
    32             <br/>
     63        <table>
     64          <xsl:for-each select="object/widget">
     65            <xsl:variable name="color">
     66              <xsl:choose>
     67                <xsl:when test="position() mod 2 = 0">
     68                  <xsl:text>#ffffff</xsl:text>
     69                </xsl:when>
     70                <xsl:otherwise>
     71                  <xsl:text>#eeeeee</xsl:text>
     72                </xsl:otherwise>
     73              </xsl:choose>
     74            </xsl:variable>
     75            <tr style="background-color:{$color}">
     76              <th>
     77                <xsl:value-of select="@name"/>
     78              </th>
     79              <td colspan="2">
     80                <xsl:value-of select="@meta_type"/>
     81              </td>
     82            </tr>
     83            <tr style="background-color:{$color}">
     84              <th colspan="3">
     85                Properties:
     86              </th>
     87            </tr>
     88            <xsl:for-each select="property">
     89              <tr style="background-color:{$color}">
     90                <th>
     91                  <xsl:value-of select="@name"/>
     92                </th>
     93                <td>
     94                  <xsl:value-of select="text()"/>
     95                </td>
     96                <td>
     97                  <xsl:for-each select="element">
     98                    <xsl:value-of select="@value"/>
     99                  </xsl:for-each>
     100                </td>
     101              </tr>
     102            </xsl:for-each>
    33103          </xsl:for-each>
    34         </xsl:for-each>
     104        </table>
    35105      </body>
    36106    </html>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_study_course.xml

    r1025 r1403  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="layout.xsl"?>
    23<object name="student_study_course" meta_type="CPS Layout">
    34 <property name="layout_create_method"></property>
     
    78 <property name="flexible_widgets"/>
    89 <property name="validate_values_expr"></property>
    9  <widget name="title" meta_type="String Widget">
    10   <property name="title">Certificate</property>
    11   <property name="fields">
    12    <element value="title"/>
    13   </property>
    14   <property name="is_required">False</property>
    15   <property name="label">Certificate</property>
    16   <property name="label_edit">Certificate</property>
    17   <property name="readonly_layout_modes"/>
    18   <property name="hidden_layout_modes"/>
    19   <property name="hidden_readonly_layout_modes"/>
    20  </widget>
    2110 <widget name="study_course" meta_type="StudyCourse Widget">
    2211  <property name="title">Certificate Code</property>
     
    3120  <property name="hidden_readonly_layout_modes"/>
    3221 </widget>
     22 <widget name="current_level" meta_type="String Widget">
     23  <property name="title">Current Studylevel</property>
     24  <property name="fields">
     25   <element value="current_level"/>
     26  </property>
     27  <property name="is_required">False</property>
     28  <property name="label">Current Studylevel</property>
     29  <property name="label_edit">Current Studylevel</property>
     30  <property name="readonly_layout_modes"/>
     31  <property name="hidden_layout_modes"/>
     32  <property name="hidden_readonly_layout_modes"/>
     33 </widget>
     34 <widget name="current_verdict" meta_type="String Widget">
     35  <property name="title">Current Verdict</property>
     36  <property name="fields">
     37   <element value="current_verdict"/>
     38  </property>
     39  <property name="is_required">False</property>
     40  <property name="label">Current Verdict</property>
     41  <property name="label_edit">Current Verdict</property>
     42  <property name="readonly_layout_modes"/>
     43  <property name="hidden_layout_modes"/>
     44  <property name="hidden_readonly_layout_modes"/>
     45 </widget>
    3346 <table>
    3447  <row>
    3548   <cell name="study_course"/>
    3649  </row>
     50  <row>
     51   <cell name="current_verdict"/>
     52  </row>
     53  <row>
     54   <cell name="current_level"/>
     55  </row>
    3756 </table>
    3857</object>
  • WAeUP_SRP/trunk/profiles/default/payments_catalog.xml

    r1147 r1403  
    11<?xml version="1.0"?>
    2 <object name="portal_catalog" meta_type="CMF Catalog">
     2<?xml-stylesheet type="text/xsl" href="catalog.xsl"?>
     3<object name="payments_catalog" meta_type="CMF Catalog">
    34 <column value="id"/>
    45 <column value="student_id"/>
  • WAeUP_SRP/trunk/profiles/default/schemas/schema.xsl

    r1401 r1403  
    44  <xsl:template match="/">
    55    <html>
     6      <head>
     7        <title>
     8          <xsl:value-of select="object/name"/>
     9        </title>
     10        <link rel="stylesheet" type="text/css" media="all"
     11              href="../xsl.css" />     
     12      </head>
    613      <body>
    714        <xsl:for-each select="object">
  • WAeUP_SRP/trunk/profiles/default/students_catalog.xml

    r1401 r1403  
    11<?xml version="1.0"?>
    22<?xml-stylesheet type="text/xsl" href="catalog.xsl"?>
    3 <object name="portal_catalog" meta_type="WAeUP Table">
     3<object name="students_catalog" meta_type="WAeUP Table">
    44 <column value="id"/>
    55 <column value="matric_no"/>
  • WAeUP_SRP/trunk/profiles/default/types/Certificate.xml

    r873 r1403  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="types.xsl"?>
    23<object name="Certificate" meta_type="CPS Flexible Type Information"
    34   xmlns:i18n="http://xml.zope.org/namespaces/i18n">
  • WAeUP_SRP/trunk/profiles/default/types/StudentApplication.xml

    r873 r1403  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="types.xsl"?>
    23<object name="StudentApplication" meta_type="CPS Flexible Type Information"
    34   xmlns:i18n="http://xml.zope.org/namespaces/i18n">
  • WAeUP_SRP/trunk/profiles/default/types/StudentClearance.xml

    r895 r1403  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="types.xsl"?>
    23<object name="StudentClearance" meta_type="CPS Flexible Type Information"
    34   xmlns:i18n="http://xml.zope.org/namespaces/i18n">
  • WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml

    r1209 r1403  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="types.xsl"?>
    23<object name="StudentPersonal" meta_type="CPS Flexible Type Information"
    34   xmlns:i18n="http://xml.zope.org/namespaces/i18n">
  • WAeUP_SRP/trunk/profiles/default/types/StudentStudyCourse.xml

    r731 r1403  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="types.xsl"?>
    23<object name="StudentStudyCourse" meta_type="CPS Flexible Type Information"
    34   xmlns:i18n="http://xml.zope.org/namespaces/i18n">
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py

    r1380 r1403  
    2727    return None
    2828sbrain = res[0]
     29info['student'] = sbrain
    2930cert_id = sbrain.course
    3031res = context.portal_catalog(portal_type = "Certificate", id = cert_id)
  • WAeUP_SRP/trunk/skins/waeup_student/study_course_view.pt

    r1380 r1403  
    1313      <h3>
    1414         <span tal:condition="python:is_so and info">
    15            <span tal:content="info/student/Title" />:
     15           <span tal:content="info/student/name" />:
    1616         </span>
    1717        <span tal:content="here/title_or_id" />
Note: See TracChangeset for help on using the changeset viewer.