[Zope] getitem and string.lower syntax
Hamzat kamal
hamzatk@dnetsystems.net
Thu, 06 Sep 2001 18:03:33 +0200
--=====================_35510974==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
Hi,
Can somebody help me to correct what is wrong in this code below?
<dtml-var expr="_.getitem(_.string.lower(date_code,1))">
date_code is a string value enter by the user by filling a form which i
then reference as a DTML Method.
This worked perfectly before inserting the string function -<dtml-var
expr="_.getitem(date_code,1)">
then the user will have to type the value in a lower case, this i
considered to be rigid.
But after inserting the string function this is error msg i received
Error Type: TypeError
Error Value: read-only character buffer, tuple
Thanks.
Hamzat kamal
Dnet Systems Ltd.,
http://www.dnetsystems.net.
--=====================_35510974==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
Hi,<br>
Can somebody help me to correct what is wrong in this code below?<br>
<br>
<dtml-var
expr="_.getitem(_.string.lower(date_code,1))"><br>
<br>
date_code is a string value enter by the user by filling a form which i
then reference as a DTML Method.<br>
<br>
This worked perfectly before inserting the string function -<dtml-var
expr="_.getitem(date_code,1)"><br>
then the user will have to type the value in a lower case, this i
considered to be rigid.<br>
<br>
But after inserting the string function this is error msg i
received<br>
<b>Error Type: TypeError<br>
Error Value: read-only character buffer, tuple<br>
<br>
</b>Thanks.<br>
Hamzat kamal<br>
Dnet Systems Ltd.,<br>
<a href="http://www.dnetsystems.net/" eudora="autourl">http://www.dnetsystems.net</a>.<br>
</html>
--=====================_35510974==_.ALT--