Upgrading to Squishdot

To use the Updaters, you will need to install the UpdateSupport product.
This can be downloaded from here, where you will also find some documentation.
See the README.TXT file in the Updaters folder of the Squishdot distribution for more help.

Upgrading to Squishdot 1.5.0

NB: Please make sure you upgrade to Squishdot 1.5.0 before upgrading to Zope 2.6.0!

Upgrading to Squishdot 1.4.0

<dtml-var absolute_url>/cancelNotify 

to

<dtml-var "aq_parent.absolute_url()">/cancelNotify 

If you are using the ‘Plain’ demo as a base, in previewPosting change:

<dtml-let msgstr=validatePosting

to

<dtml-let msgstr=validatePosting>   

Upgrading to Squishdot 1.3.0

<dtml-if summary><dtml-if "meta_type=='Article'">
 <dtml-var "html2text(_.string.join(summary,'\n'))">
</dtml-if></dtml-if>
<dtml-var "html2text(_.string.join(body,'\n'))">

to

<dtml-var plain_text>
<dtml-unless skipvalid > 
<dtml-if "meta_type == 'Squishdot Site'">   
<dtml-let msgstr=validateArticle>   
<dtml-if msgstr>   
<dtml-return "showError(_.None,_,title='Data Missing',message=msgstr,action=REQUEST['URL1'] + ''/previewPosting'')" >   
</dtml-if>   
</dtml-let>   
<dtml-else>   
<dtml-let msgstr=validateComment>   
<dtml-if msgstr>   
<dtml-return "showError(_.None,_,title='Data Missing',message=msgstr,action=REQUEST['URL1'] + ''/previewPosting'')" >   
</dtml-if>   
</dtml-let>   
</dtml-if>   
</dtml-unless> 

to

<dtml-unless skipvalid > 
<dtml-let msgstr=validatePosting>   
<dtml-if "msgstr[1]">   
<dtml-return "showError(_.None,_,values=msgstr[0],title='Data Missing',
                 message=msgstr[1],action=REQUEST['URL1'] + '/previewPosting')" >   
</dtml-if>   
</dtml-let>   
</dtml-unless> 

Upgrading to Squishdot 1.2.1

<A href="<dtml-if relurl><dtml-var site_url ></dtml-if><dtml-var urlname url_quote>"><dtml-var name></A>

to

<A href="<dtml-if relurl><dtml-var site_url ></dtml-if><dtml-var urlname>"><dtml-var name></A>
<dtml-unless "REQUEST.encoding=='Plain'"> 
<dtml-unless "REQUEST.encoding=='Plain'"> 

Upgrading to Squishdot 1.1.0

<dtml-unless "encoding=='Plain'"> 
 <dtml-in "['title','author','email','body']">
  <dtml-call "REQUEST.set(_['sequence-item'],html2safehtml(REQUEST.get(_['sequence-item'],'')))">
 </dtml-in>
</dtml-unless>
<dtml-unless "encoding=='Plain'"> 
 <dtml-in "['title','author','email','summary','subject','dept','body']">
  <dtml-call "REQUEST.set(_['sequence-item'],html2safehtml(REQUEST.get(_['sequence-item'],'')))">
 </dtml-in>
</dtml-unless>

Upgrading to Squishdot 1.0.0

Upgrading to Squishdot 0.7.x

There’s a small change you need to make in the following DTML methods of each pre-0.7.0 Squishdot Site object:

Whenever the expression <dtml-var expr="thread[0]" > occurs, you need to replace it with <dtml-var expr="getThread(0)" >

If you start getting KeyErrors on thread_path, it might be worth clicking on Re-Catalog All Postings on the Options manage tab.

Upgrading to Squishdot 0.6.0

Assuming you are upgrading from 0.5.0, there’s nothing you need to do to old Squishdot Sites!

Upgrading to Squishdot 0.5.0

Assuming you are upgrading from 0.4.1, you don’t need to do anything…

However, if you want to use the new Plain Text and Structured Text stuff, you’ll need to change any exisiting Squishdot Sites you have as follows:

    <SELECT NAME="encoding">       
    <dtml-in "[['HTML','HTML'],['STX','Structured Text'],['Plain','Plain Text']]" >  
      <OPTION VALUE="<dtml-var "_.getitem('sequence-item',0)[0]" html_quote>" 
      <dtml-if "encoding==_.getitem('sequence-item',0)[0]">SELECTED</dtml-if>>
      <dtml-var "_.getitem('sequence-item',0)[1]" html_quote>
      </OPTION>
    </dtml-in>
    </SELECT>
    <SELECT NAME="encoding">       
     <dtml-in "[['HTML','HTML'],['STX','Structured Text'],['Plain','Plain Text']]" >  
       <OPTION VALUE="<dtml-var "_.getitem('sequence-item',0)[0]" html_quote>" 
       <dtml-if "REQUEST.get('encoding','HTML')==_.getitem('sequence-item',0)[0]">SELECTED</dtml-if>>
       <dtml-var "_.getitem('sequence-item',0)[1]" html_quote>
       </OPTION>
     </dtml-in>
    </SELECT>

Upgrading to Squishdot 0.4.1

Assuming you are upgrading from 0.4.0, please do the following for each of your Squishdot objects:

Upgrading to Squishdot 0.4.0

If you are upgrading from a previous version of Squishdot to 0.4.0, please do the following for each of your Squishdot objects: