Changeset 3033 for trunk


Ignore:
Timestamp:
05/27/10 12:50:18 (10 years ago)
Author:
jukka
Message:

Fixed #1977

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Piece.py

    r3029 r3033  
    2727from Schemata import resource_schema, description, author_schema,  coverImage  
    2828from Resource import Resource 
     29from CommonMixIn import CommonMixIn 
    2930from mp3tool import get_length, is_mp3 
    3031if FS_STORAGE: 
     
    150151        """ Instead of inheriting from Resource, this should inherit from CommonMixIn to not worry about language """ 
    151152        messages=CommonMixIn.getMessages(self) 
     153        if (not self.Title()) and self.canIEdit(): 
     154            messages.append('piece_missing_title') 
    152155        return messages 
    153156 
  • trunk/skins/lemill/base_view.pt

    r3032 r3033  
    2525            <div metal:use-macro="here/document_byline/macros/byline" /> 
    2626            <tal:messages repeat="message here/getMessages"> 
    27                 <div metal:use-macro="python:path('here/macros_messages/macros/%s|nothing' % message)" /> 
     27                <div metal:use-macro="python:path('here/macros_messages/macros/' + message)" /> 
    2828            </tal:messages> 
    2929        </metal:header>                                                                 
  • trunk/skins/lemill/lemill_content_add.cpt.metadata

    r2737 r3033  
    33 
    44[validators] 
    5 validators = validate_base 
     5validators =  
    66validators..form_add = 
    77validators..cancel = 
  • trunk/skins/lemill/macros_messages.pt

    r3032 r3033  
    5252    </div>    
    5353</metal:missing_member_info> 
     54 
     55<metal:piece_missing_title define-macro="piece_missing_title"><div class="portalMessage"> <span i18n:translate="text_piece_missing_title">This piece would benefit from a descriptive title or tags.</span> <a tal:attributes="href python:here_url+'/edit'" i18n:translate="text_piece_missing_title_please" href="edit">Please help by giving them.</a></div></metal:piece_missing_title> 
     56 
    5457   
    5558  </body> 
Note: See TracChangeset for help on using the changeset viewer.