Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 47659 invoked from network); 24 Nov 2004 23:07:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Nov 2004 23:07:24 -0000 Received: (qmail 18240 invoked by uid 500); 24 Nov 2004 23:07:00 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 18220 invoked by uid 500); 24 Nov 2004 23:07:00 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 18194 invoked by uid 99); 24 Nov 2004 23:07:00 -0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=FORGED_RCVD_HELO,HTML_30_40,HTML_MESSAGE,HTML_TITLE_EMPTY X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from rumcajz.pcv.cz (HELO ns.sofist.cz) (81.0.228.129) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 24 Nov 2004 15:06:58 -0800 Received: (qmail 1327 invoked from network); 24 Nov 2004 23:07:29 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 24 Nov 2004 23:07:29 -0000 Received: from ns.sofist.cz ([127.0.0.1]) by localhost (lfs [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 27536-10 for ; Thu, 25 Nov 2004 00:07:25 +0100 (CET) Received: (qmail 1292 invoked from network); 24 Nov 2004 23:07:25 -0000 Received: from r3c210.chello.upc.cz (HELO ?192.168.1.2?) (213.220.194.210) by rumcajz.pcv.cz with SMTP; 24 Nov 2004 23:07:25 -0000 Message-ID: <41A5140B.8080705@robert.cz> Date: Thu, 25 Nov 2004 00:06:51 +0100 From: RobertCZ User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gerald Richter CC: embperl@perl.apache.org Subject: Re: Embperl bug: syntax parametr in Execute not working References: <20041124201508.124431122D7@lnx1.i.ecos.de> In-Reply-To: <20041124201508.124431122D7@lnx1.i.ecos.de> Content-Type: multipart/alternative; boundary="------------010606080007060209070307" X-Virus-Scanned: by amavisd-new at pcv.cz X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------010606080007060209070307 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Gerald Richter wrote: >> when I put [$ Syntax EmbperlBlocks $] in the executed file, >>it works as expected but when I try to set syntax in base >>file as a parametr in Execute call, Embperl fails with >> >> Endtag '/table' doesn't match starttag 'tr' >> >> I tested syntax => 'Text', it does the same thing. >> >>base file >> >>[- Execute({ inputfile => '*', syntax => 'EmbperlBlocks' }) -] >> >> > >This is not a bug, it's a little bit different for '*', because this file is >preloaded by Embperl::Object, to be able to call methods inside the file, >before the actual file is executed. > >So you could only set EMBPERL_SYNTAX in the httpd.conf or use [$ syntax $]. > >The other possibility is to use an application object and override the >method get_receipe. See eg/web/epwebapp.pl for an example. > > > Aha. Thanks for the explanation. Now I see I don't use automatic tables all that often but I would miss automatic input/select initalization. I guess I'll have to built my own syntax equivalent to 1.3 optDisableTableScan option, put it in httpd.conf and some stuff will break anyway... Well I kew that, didn't I? Sigh ;-) - Robert --------------010606080007060209070307 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Gerald Richter wrote:
  when I put [$ Syntax EmbperlBlocks $] in the executed file, 
it works as expected but when I try to set syntax in base 
file as a parametr in Execute call, Embperl fails with 

        Endtag '/table' doesn't match starttag 'tr'

  I tested syntax => 'Text', it does the same thing.

base file

[- Execute({ inputfile => '*', syntax => 'EmbperlBlocks' }) -]
    

This is not a bug, it's a little bit different for '*', because this file is
preloaded by Embperl::Object, to be able to call methods inside the file,
before the actual file is executed.

So you could only set EMBPERL_SYNTAX in the httpd.conf or use [$ syntax $]. 

The other possibility is to use an application object and override the
method get_receipe. See eg/web/epwebapp.pl for an example.

  

Aha. Thanks for the explanation. Now I see I don't use automatic tables all that often but I would miss automatic input/select initalization. I guess I'll have to built my own syntax equivalent to 1.3 optDisableTableScan option, put it in httpd.conf and some stuff will break anyway... Well I kew that, didn't I? Sigh ;-)

- Robert



--------------010606080007060209070307--