Changeset 3016 for trunk


Ignore:
Timestamp:
04/12/10 03:38:49 (10 years ago)
Author:
jukka
Message:

Fixed saving with new editor and put back try-expect around sendmail.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LeMillTool.py

    r3014 r3016  
    15581558-- 
    15591559Do not reply to this message. You can find this person's contact information from LeMill.""",domain="lemill",target_language=language) % {'msg':msg, 'preferences_url':preferences_url} 
    1560         #try: 
    1561         mhost.secureSend(mbody.encode('utf-8'),  
     1560        try: 
     1561            mhost.secureSend(mbody.encode('utf-8'),  
    15621562            mto=recipient,  
    15631563            mfrom="LeMill <no-reply@lemill.net>",  
    15641564            subject="Announcement from LeMill (do not reply)",  
    15651565            charset='utf-8') 
    1566         #except: 
    1567         #    print "Something is wrong, no message sent" 
     1566        except: 
     1567            print "Something is wrong, no message sent" 
    15681568 
    15691569    def shortenTitle(self, title, max_length): 
  • trunk/skins/lemill/wysiwyg_support.pt

    r3014 r3016  
    11<html xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns="http://www.w3.org/1999/xhtml" xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="lemill"> 
    22 
    3    <div xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:tal="http://xml.zope.org/namespaces/tal" metal:define-macro="wysiwygEditorBox" tal:define="area_id string:tinymce-${fieldName}"> 
     3   <div xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:tal="http://xml.zope.org/namespaces/tal" metal:define-macro="wysiwygEditorBox" tal:define="area_id fieldName | inputname"> 
    44 
    5 <textarea id="content1" tal:attributes="id area_id" tal:content="inputvalue" name="content1" class="mceEditor" cols="85" rows="20">This will be a editor, since it has a selector class.</textarea> 
     5<textarea id="content1" name="content1" tal:attributes="id area_id; name area_id" tal:content="inputvalue" class="mceEditor" cols="85" rows="20">This will be a editor, since it has a selector class.</textarea> 
    66    <a href="javascript:;" class="visual_toggle" onclick="$(this).hide();$('.mceEditor').tinymce().show();$('.html_toggle').show();" style="display:none">[Visual]</a> 
    77    <a href="javascript:;" class="html_toggle" onclick="$(this).hide();$('.mceEditor').tinymce().hide();$('.visual_toggle').show();">[HTML]</a>     
Note: See TracChangeset for help on using the changeset viewer.