|
|
| Squishdot Documentation | |
|
Sections
|
To use the Updaters, you will need to install the UpdateSupport product. 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 <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.xThere'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 If you start getting KeyErrors on thread_path, it might be worth clicking on Upgrading to Squishdot 0.6.0Assuming you are upgrading from 0.5.0, there's nothing you need to do to old Squishdot Sites! Upgrading to Squishdot 0.5.0Assuming 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.1Assuming you are upgrading from 0.4.0, please do the following for each of your Squishdot objects:
Upgrading to Squishdot 0.4.0If you are upgrading from a previous version of Squishdot to 0.4.0, please do the following for each of your Squishdot objects:
|