This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
/* | |
The built-in file_uploads of Lasso9 returns a staticarray och staticarray pairs, | |
instead of the array of maps in Lasso8. | |
This method overrides file_uploads to return an array of maps. It also adds a few missing members from Lasso8. | |
*/ | |
define file_uploads => { | |
local(result=array) | |
with upload in web_request->fileUploads do { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?lassoscript | |
// Durations are not displayed properly in Lasso 8.6, the last digit in seconds is missing. | |
// This custom tag is used to display durations correctly | |
define_tag('showduration', -required='input'); | |
!#input -> isa('duration') ? return; | |
local('output'=string, | |
'hours'=#input -> second, | |
'minutes'=#input -> second, | |
'seconds'=#input -> second); | |
#hours = #hours / 60 / 60; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
/* | |
Look for net->wait failure and restart Lasso site if it stops working | |
to prevent issues with POP and SMTP. | |
Put this file in web root and watch_net_failure_startup.lasso in LassoStartup | |
Johan Sölve 2015-08-05 | |
http://lasso.2283332.n4.nabble.com/SMTP-and-POP-problems-on-8-6-3-Mac-caused-by-net-gt-wait-td4644107.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// [Email_Send2] | |
// | |
// This tag is a drop-in replacement for [Email_Send]. It uses [Email_Compose] on the back-end in order | |
// to create the message to be sent. | |
// | |
/* PATCH | |
* Replaces subject line that is encoded word by word with a subject line that is encoded as a whole. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ // Lasso 8 | |
define_tag('parse_csv', -required='input' | |
, -optional='linebreak', -type='string', -copy | |
, -optional='fielddelimiter', -type='string', -copy | |
, -optional='fieldseparator', -type='string', -copy | |
, -optional='escapecharacter', -type='string', -copy | |
, -optional='optionaldelimiters', -copy | |
, -optional='firstrowfieldnames', -copy | |
, -optional='rowformat', -type='string', -copy |