Changeset 2426


Ignore:
Timestamp:
06/18/08 17:02:34 (11 years ago)
Author:
anonymous
Message:

References #1758, it is done or almost done, should be closed today

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ExerciseMaterial.py

    r2421 r2426  
    7272    security.declareObjectPublic() 
    7373 
     74    aliases = { 
     75        '(Default)' : 'fullscreen_view', 
     76        'view'      : 'base_view', 
     77        'edit'      : 'base_edit', 
     78        'feedback'  : 'feedback_view', 
     79    } 
     80 
    7481    security.declarePrivate('manage_afterAdd') 
    7582    def manage_afterAdd(self, item, container): 
     
    241248        if REQUEST.get('students_email', ''): 
    242249            message = self.sendAnswers(REQUEST) 
    243         # XXX Create an alias name "feedback" for "feedback_view" 
    244250        return (feedbody, message) 
    245251         
  • trunk/skins/lemill/feedback_view.pt

    r2421 r2426  
    7171     <metal:fill fill-slot="main"> 
    7272      <metal:main_macro define-macro="main" 
    73             tal:define="portal_type python:here.getPortalTypeName().lower().replace(' ', '_'); 
    74             base_macros here/base/macros; 
    75             view_template python:'%s_view' % portal_type; 
    76             view_macros python:path('here/%s/macros|nothing' % view_template); 
    77             body_macro view_macros/body | body_macro | base_macros/body; 
    78             folderlisting_macro view_macros/folderlisting | folderlisting | base_macros/folderlisting; 
    79             footer_macro view_macros/footer | footer_macro | base_macros/footer; 
    80             body_macro python:test(here.isDeleted(), path('here/document_byline/macros/deletionnote'),body_macro); 
    81             showDraftMessage python:here.meta_type in context.getMaterialTypes(); 
    82             web_feedback python:here.showWebFeedback(request); 
    83             errors python:request.get('errors', {})"> 
     73            tal:define="web_feedback python:here.showWebFeedback(request);"> 
    8474 
    8575 
     
    9989            </tal:warningmessage> 
    10090        </tal:messages> 
    101         <!--tal:has_document_byline tal:condition="exists:here/document_byline"> 
    102         <div metal:use-macro="here/document_byline/macros/byline"> 
    103             Get the byline - contains details about author and modification date. 
    104         </div> 
    105         </tal:has_document_byline--> 
    10691 
    107         <!-- !!! PARSING MACRO GOES HERE --> 
     92        <!-- The html is generated by the method and just set to the page --> 
    10893        <tal:block replace="structure python:web_feedback[0]"></tal:block> 
    10994 
    110          
    111         <!-- !!! GONNER !!! tal:iflearnres condition="showDraftMessage"> 
    112             <div class="license"> 
    113                 <metal:fieldMacro use-macro="python:here.widget('rights',mode='view')"/> 
    114             </div> 
    115         </tal:iflearnres--> 
    116  
    117         <!-- ??? GONNER ??? --> 
    118         <div metal:use-macro="here/wcag/macros/wcag_logo"> 
    119             Show WCAG logo 
    120         </div> 
    121      
    12295      </metal:main_macro> 
    12396    </metal:fill>     
  • trunk/skins/lemill/widget_exercise.pt

    r2421 r2426  
    1212 
    1313<metal:view_macro define-macro="view" tal:define="value accessor">  
    14 <form method="post" action="feedback_view" tal:attributes="action python:'%s/feedback_view' % here_url"> 
     14<form method="post" action="feedback" tal:attributes="action python:'%s/feedback' % here_url"> 
    1515    <tal:chapters repeat="chaptertuple value">             
    1616        <tal:defs tal:define="chapter python:chaptertuple[0]; 
Note: See TracChangeset for help on using the changeset viewer.