RE: Execute({ object => '...' })

2010-08-04 Thread Thompson, John
ent: Monday, August 02, 2010 5:21 AM To: Thompson, John; embperl@perl.apache.org Subject: RE: Execute({ object => '...' }) Hi, You don't need Embperl::Object. Embperl::Object is only if you need to search (sub-)directories, like objects. You should do something th

RE: Execute({ object => '...' })

2010-08-02 Thread Gerald Richter - ECOS
  - test.epl - [$ sub head $] Text in head   [$ endsub $]   -- Forwarded message -- From: Thompson, John Date: 2010/7/27 Subject: RE: Execute({ object => '...' }) To: embperl@perl.apache.org OK, so I’ve decided to try to use import instead. I’m seeing th

RE: Execute({ object => '...' })

2010-07-27 Thread Thompson, John
but I get the same error. From: Andrew O'Brien [mailto:andr...@oriel.com.au] Sent: Tuesday, July 27, 2010 10:07 AM To: Thompson, John Subject: RE: Execute({ object => '...' }) Can you use import => 1 to get all the subs into the current namespace and just check

RE: Execute({ object => '...' })

2010-07-26 Thread Andrew O'Brien
> From: Thompson, John [mailto:jth...@midwestern.edu] > Sent: Tuesday, 27 July 2010 2:47 AM Hi John, > I am attempting to use the Execute({ object => '...' }) > feature but am seeing strange results. Here are my two files: Firstly, test.epl does not do what you think it does. It should read:

RE: Execute( sub =>...) and (object => ...)

2010-06-22 Thread Gerald Richter - ECOS
to:jth...@midwestern.edu] Sent: Tuesday, June 22, 2010 9:31 PM To: embperl@perl.apache.org Subject: RE: Execute( sub =>...) and (object => ...)   Ok so I figured out that the Execute( param => ... ) still goes into @param not @_. Any idea why the ( object => $template ) isn’t working?

RE: Execute( sub =>...) and (object => ...)

2010-06-22 Thread Andrew O'Brien
Hi John, > -Original Message- > From: Thompson, John [mailto:jth...@midwestern.edu] > Sent: Wednesday, 23 June 2010 5:31 AM > Ok so I figured out that the Execute( param => ... ) still > goes into @param not @_. Any idea why the ( object => > $template ) isn't working? I use the foll

RE: Execute( sub =>...) and (object => ...)

2010-06-22 Thread Thompson, John
Ok so I figured out that the Execute( param => ... ) still goes into @param not @_. Any idea why the ( object => $template ) isn't working? From: Thompson, John [mailto:jth...@midwestern.edu] Sent: Tuesday, June 22, 2010 10:50 AM To: embperl@perl.apache.org Subject: Execute( sub =>...) and (ob

Re: Execute() and App objects

2009-04-03 Thread Doug Rayner
quot;Doug Rayner" ; Sent: Thursday, April 02, 2009 3:19 PM Subject: RE: Execute() and App objects Hi Doug, From within one request, I'm trying to Execute() an HTML template from another part of the application. That template is dependent on App object methods defined in the _app.pl

RE: Execute() and App objects

2009-04-02 Thread Andrew O'Brien
Hi Doug, > From within one request, I'm trying to Execute() an HTML > template from > another part of the application. That template is dependent > on App object > methods defined in the _app.pl that is in the same directory > as the HTML > template. However, the Execute() seems to use th

RE: Execute in a specified syntax?

2007-04-02 Thread Gerald Richter - ECOS GmbH
> > Something like: > > [- Execute syntax="SSI" ('includes/header.shtml') -] > > perhaps? > Use [- Execute ({ syntax => "SSI", inputfile => 'includes/header.shtml'}) -] > Also, what has to be done to get embpcgi.pl to report > something more useful than just $rc and time? You might use t

RE: Execute question

2005-04-22 Thread Gerald Richter
age- > From: Andrew O'Brien [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 21, 2005 1:48 AM > To: embperl@perl.apache.org > Subject: RE: Execute question > > > Allen, > > That's all up to how you structure your page construction. > You will need to eith

RE: Execute question

2005-04-20 Thread Andrew O'Brien
Allen, That's all up to how you structure your page construction. You will need to either 1. Easier: be able to test for that branch condition early enough in your page construction and then have the two Execute()s in a wrapping "if" statement Or 2. take advantage of the fact that Execute can

Re: Execute or do ?

2004-05-24 Thread Gerald Richter
Stefan Cars wrote: > Ok! THanks for that. Would there be any advantage performance-wise in > placing alot of code in a perl-module instead of requiring it ? It > looks nicer and all that in a module, but performancee ? > There is no performance difference between a module and a require, actually a

Re: Execute or do ?

2004-05-24 Thread Stefan Cars
Ok! THanks for that. Would there be any advantage performance-wise in placing alot of code in a perl-module instead of requiring it ? It looks nicer and all that in a module, but performancee ? Kind Regards, Stefan Cars On Mon, 24 May 2004, Gerald Richter wrote: > Stefan Cars wrote: > > Hi! > >

Re: Execute or do ?

2004-05-24 Thread Gerald Richter
Stefan Cars wrote: > Hi! > > If I need to init some DB and stuff in each page, what is the most > efficient way todo that ? Using Execute or do's ? > do will always recompile your Perl code, while Execute will only when the code changes. If the code never changes you can also use require. In case

Re: execute problems

2003-12-04 Thread Kaare Rasmussen
Luiz, Gerald Thanks for your feedback. If I just execute the file it seems that the "global" (for that file) value sticks - but that it will be purged after some time. At least I get erratic behaviour trying to do that. Maybe I'll make it as object. Suits me better, I think. > You can make it

Re: execute problems

2003-12-03 Thread Gerald Richter
Kaare Rasmussen wrote: > If I do this > > Execute ({inputfile => 'findList.sub', import => 1}); > > Then this line in findList.sub will not be executed if it's outside > the subs in findList.sub: > When you say inport => 1 only code inside [! !] is executed, because you want to import and not to

Re: execute problems

2003-12-03 Thread Luiz Fernando B. Ribeiro
On Wed, 3 Dec 2003 18:41:16 +0100, Kaare Rasmussen <[EMAIL PROTECTED]> wrote: If I do this Execute ({inputfile => 'findList.sub', import => 1}); Then this line in findList.sub will not be executed if it's outside the subs in findList.sub: [- $req = shift -] But I'm using the $req object, so

Re: Execute without __PACKAGE__ thank you..

2003-06-18 Thread ckassab
--- > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, June 17, 2003 6:03 PM > Subject: Re: Execute without __PACKAGE__ > > >> Luis Fernando: >> >> Thank you

Re: Execute without __PACKAGE__

2003-06-17 Thread Cameron McBride
> I have an additional question: > What is the "isa" parameter and how can i use it?, i did not see it in the > embperl documentation in the site http://perl.apache.org/embperl I'm not sure where it is on the site, but its documented as part of the Execute command. Usage would be something like t

Re: Execute without __PACKAGE__

2003-06-17 Thread Gerald Richter
| +- - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 17, 2003 6:03 PM Subject: Re: Execute without __PACKAGE__ > Luis Fernando: > > Thank you for your help, i will check embpelr::object. > > I have an a

Re: Execute without __PACKAGE__

2003-06-17 Thread Luiz Fernando
On Tue, 2003-06-17 at 13:03, [EMAIL PROTECTED] wrote: > Luis Fernando: > > Thank you for your help, i will check embpelr::object. > > I have an additional question: > What is the "isa" parameter and how can i use it?, i did not see it in the > embperl documentation in the site http://perl.apache.

Re: Execute without __PACKAGE__

2003-06-17 Thread ckassab
Luis Fernando: Thank you for your help, i will check embpelr::object. I have an additional question: What is the "isa" parameter and how can i use it?, i did not see it in the embperl documentation in the site http://perl.apache.org/embperl Thank you Carlos Kassab > On Mon, 2003-06-16 at 17:02

Re: Execute without __PACKAGE__

2003-06-17 Thread Luiz Fernando
On Mon, 2003-06-16 at 17:02, [EMAIL PROTECTED] wrote: > Hi all: > > > Eplsite(www.eplsite.org) is a good system to run as CGI but when running > with mod_perl it will consume memory because it is using Execute with > __PACKAGE__ > > The main file is called index.epl and it is executing some file

Re: Execute XSLT stubborn cache.

2003-02-20 Thread Gerald Richter
> Given: > > for (1 .. 2) { > $fdat{'arg'} = $_; > Execute ({inputfile => 'getCalendar.htm', recipe => > 'EmbperlLibXSLT', xsltstylesheet => > 'xsl/small_cal.xsl'}); > } > > The versions: Embperl 2.0b8, perl 5.6.1, apache > 1.3.27, mod_perl 1.27. It seems to me that after the > first XSLT Execute,

Re: Execute is not sending request object to executed page

2003-01-15 Thread Scott Chapman
I found the problem. It's all on my end. Sorry to bother you with this one! Scott On Tuesday 14 January 2003 11:59 am, Gerald Richter wrote: > >I changed the top level file to just: > >[- Execute ('page.epl' ); -] > > > >and I'm still getting errors in my database because the $req is not going

Re: Execute is not sending request object to executed page

2003-01-14 Thread Scott Chapman
I made it like this: [$ var $rec $req %qdat %ssdat %srdat @set $set $names %db $key $allow_update $allow_demolinks @values $creator $datetime $eventcode $user_id $info $sth_eventlog $review_type $review_os $recurring_total $] [+ $_[0] +] [- $req = shift; -] [- and I still got the error. When I

Re: Execute is not sending request object to executed page

2003-01-14 Thread Gerald Richter
>I changed the top level file to just: >[- Execute ('page.epl' ); -] > >and I'm still getting errors in my database because the $req is not going to >page.epl. Strange. What do you get if you add a [+ $_[0] +] to page.epl _before_ the shift? Does it change anything if you remove the [$ var $req

Re: Execute is not sending request object to executed page

2003-01-14 Thread Scott Chapman
I changed the top level file to just: [- Execute ('page.epl' ); -] and I'm still getting errors in my database because the $req is not going to page.epl. Scott On Tuesday 14 January 2003 07:16 am, Gerald Richter wrote: > >I'm attempting to execute a page and redirect the output to a file. This

Re: Execute is not sending request object to executed page

2003-01-14 Thread Gerald Richter
>I'm attempting to execute a page and redirect the output to a file. This is >all that's in the page I'm loading: >[- Execute({inputfile=> 'page.epl', output => '/tmp/output.html' }); -] Not quite sure if this is the problem, but it must be outputfile instead of output Gerald ---

Re: Execute XML Query

2002-10-06 Thread Gerald Richter
> Thanks for the reply. My application involves accessing the new Amazon > XML/SOAP Web service. After much reading, I've decided to use SOAP instead > of XSLT. It appears that by using SOAP I can avoid having to use an XSLT > processor. > > Hopefully, you advice regading automaticallly executed X

Re: Execute XML Query

2002-10-06 Thread Gerald Richter
> http://xml.amazon.com/onca/xml2...";>Click on Link > > I'd like to have xml data display on my pages without requiring users to > click on a URL. > When using Embperl 2, mod_perl 2 and Apache 2 you can use the output of a subrequest as input for Embperl. This is done by utilizing the APache

Re: [- Execute ('*') - ].

2002-10-05 Thread Gerald Richter
Hi, > > Thank you very much for the explanation of why [- Execute ('*') - ] isn't > working for my application. I did not realize that the "walking the tree" > concept didn't apply to files with a full path, so now I understand. > However, for a template type system like Embperl, I guess I don't

Re: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-10-02 Thread Angus Lees
At Mon, 30 Sep 2002 12:14:14 -0700, Dean Powers wrote: > Problem: In base.epl [ -Execute ( ' * ' ) -] doesn't display the originally > request file, such as content.html Instead it displays the notfound.html > message. i presume you've tried enabling dbgObjectSearch (and lots of other debug optio

Re: Execute XML Query

2002-10-01 Thread Andrew O'Brien
On Tue, Oct 01, 2002 at 07:39:56PM -0700, Powers, Dean wrote: > I'd like to have xml data display on my pages without requiring users to > click on a URL. > > Anyone know how to construct an Execute Statement which sends out a http > request when the page is generated? use LWP and do your own r

Re: Execute URL Query

2002-10-01 Thread Powers, Dean
Found a solution using a traditional Perl UserAgent Request. I wonder if there is a more elegant way using Embperl, especially the next step for parsing the returned XML. The traditional method that gets the job done: [- use LWP::UserAgent; # use HTTP::Request::Common qw(POST); $ua = new LWP::U

RE: [ -Execute ( ' * ' ) -] Found another solution

2002-10-01 Thread Powers, Dean
s, Dean; 'Ed Grimm' Cc: [EMAIL PROTECTED] Subject: Re: [ -Execute ( ' * ' ) -] Doesn't Work! > > So, my question (which hopefully Gerald will see) I see (and answer, as far as other didn't done it already) all the questions on the list, but I not always ha

Re: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Gerald Richter
> > So, my question (which hopefully Gerald will see) I see (and answer, as far as other didn't done it already) all the questions on the list, but I not always have time to immediatly answer them... > is WHY Embperl works > perfectly for serving base.epl, notfound.html, and explicitly requested

RE: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Powers, Dean
- From: Ed Grimm [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 5:40 PM To: Powers, Dean Cc: [EMAIL PROTECTED] Subject: RE: [ -Execute ( ' * ' ) -] Doesn't Work! Ugh. You're right; I found it in the HTML::EmbperlObject manpage. (This is from Embperl 1.3.3; we'

RE: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Ed Grimm
ed by [- Execute ('*') - ]. > > After all, they are ALL coming out of /htdocs and Apache/Embperl serves then > quite well, EXCEPT for [- Execute ('*') - ]. > > Dean > > -Original Message- > From: Ed Grimm [mailto:[EMAIL PROTECTED]] > Sent: Mo

RE: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Powers, Dean
, they are ALL coming out of /htdocs and Apache/Embperl serves then quite well, EXCEPT for [- Execute ('*') - ]. Dean -Original Message- From: Ed Grimm [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 5:03 PM To: Powers, Dean Cc: [EMAIL PROTECTED] Subject: RE: [

RE: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Ed Grimm
m the /htdocs directory? > > Thanks for everyone's help, I think we're getting closer to an answer, > which is important to all of us who want to support dozens or even > hundreds of virtual hosts with a SINGLE base.epl and boilerplate files > out of /htdocs. > > Dea

RE: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Powers, Dean
#x27;re getting closer to an answer, which is important to all of us who want to support dozens or even hundreds of virtual hosts with a SINGLE base.epl and boilerplate files out of /htdocs. Dean -Original Message- From: Ed Grimm [mailto:[EMAIL PROTECTED]] Sent: Monday, September

RE: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Powers, Dean
with ('*') which is asking for the file "indirectly" instead of explicitly. Dean -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 3:42 PM To: '[EMAIL PROTECTED]' Subject: Re: [ -Execute ( ' * '

Re: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Ed Grimm
On Mon, 30 Sep 2002, Andre Landwehr wrote: > On Mon, Sep 30, 2002 at 12:56:24PM -0700, Powers, Dean wrote: > > I think the problem is related to the "path" that Embperl sets when it > > "walks" up the directory path to base.epl > > (...) > > It seems that the problem is that "base.epl" is in the d

Re: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Andrew O'Brien
On Mon, Sep 30, 2002 at 01:28:31PM -0700, Powers, Dean wrote: > I think you are on to something here. But it's interesting that base.epl > isn't in the DocumentRoot either, but Embperl finds it in the directory > above DocumentRoot. > > So, since I'm going to eventually have hundreds of sites (

RE: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Powers, Dean
late files? In the meantime, I'll explore Andre's alternatives. Thanks! Dean -Original Message- From: Andre Landwehr [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 1:16 PM To: '[EMAIL PROTECTED]' Subject: Re: [ -Execute ( ' * ' ) -] Doesn't Wor

Re: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Andre Landwehr
On Mon, Sep 30, 2002 at 12:56:24PM -0700, Powers, Dean wrote: > I think the problem is related to the "path" that Embperl sets when it > "walks" up the directory path to base.epl > (...) > It seems that the problem is that "base.epl" is in the directory ABOVE the > DocumentRoot. I've tried [- Exec

RE: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Powers, Dean
at doesn't work either. :) Dean -Original Message- From: Andre Landwehr [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 12:48 PM To: '[EMAIL PROTECTED]' Subject: Re: [ -Execute ( ' * ' ) -] Doesn't Work! On Mon, Sep 30, 2002 at 12:14:14PM -0700, P

Re: [ -Execute ( ' * ' ) -] Doesn't Work!

2002-09-30 Thread Andre Landwehr
On Mon, Sep 30, 2002 at 12:14:14PM -0700, Powers, Dean wrote: > Problem: In base.epl [ -Execute ( ' * ' ) -] doesn't display the originally > request file, such as content.html Instead it displays the notfound.html > message. Try it without the spaces between quotation marks and asterisk, like th

Re: execute and udat

2002-09-09 Thread Gerald Richter
>I'm calling a Embperl page from a package module which gets call by >Embperl page > >Embperl >>> Package >>> Embperl > >Will it keep its global scooping? Yes Gerald - Gerald Richterecos electronic communication services gmbh Int

RE: execute and udat

2002-09-09 Thread Aldo Letellier
r [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 1:51 PM To: Aldo Letellier; [EMAIL PROTECTED] Subject: Re: execute and udat >I'm concerned about losing session scooping in the calling page. %fdat and %udat are both global to _all_ Embperl pages of one request, so there is no

Re: execute and udat

2002-09-09 Thread Gerald Richter
>I'm concerned about losing session scooping in the calling page. %fdat and %udat are both global to _all_ Embperl pages of one request, so there is no need to pass them to your waitpage, they will be already there Gerald - Gerald R

RE: execute and udat

2002-09-09 Thread Aldo Letellier
ng   Please wait...   [$HIDDEN$] document.forms[0].submit(); -Original Message- From: Gerald Richter [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 3:01 AM To: Aldo Letellier; [EMAIL PROTECTED] Subject: Re: execute and udat >Can the following be done: > >my

Re: execute and udat

2002-09-08 Thread Gerald Richter
>Can the following be done: > >my ( $page, $fdat, $udat ) = @_; >HTML::Embperl::Execute({inputfile => $page, fdat => $fdat, udat => $udat }); >exit; No, that can't be done (fdat parameter is ok, but udat parameter doesn't exists). Why do like to do it? Gerald ---

Re: Execute

2002-07-30 Thread Gerald Richter
t; -Original Message- > > From: Justin Harrison [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 30, 2002 12:37 PM > > To: [EMAIL PROTECTED] > > Subject: RE: Execute > > > > > > Hi Gerald, > > > > Thanks for your response. It definitely d

RE: Execute

2002-07-30 Thread Justin Harrison
gt; -Original Message- > From: Justin Harrison [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 12:37 PM > To: [EMAIL PROTECTED] > Subject: RE: Execute > > > Hi Gerald, > > Thanks for your response. It definitely does. > > > -Original Message

RE: Execute

2002-07-30 Thread Justin Harrison
Hi Gerald, Thanks for your response. It definitely does. > -Original Message- > From: Gerald Richter [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 2:53 AM > To: Justin Harrison; [EMAIL PROTECTED] > Subject: Re: Execute > > > > > > I&#

Re: Execute

2002-07-29 Thread Gerald Richter
irst parameter Hope this makes things a little bit more clear Gerald > > -Original Message- > > From: Justin Harrison [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, July 25, 2002 9:12 PM > > To: [EMAIL PROTECTED] > > Subject: RE: Execute >

RE: Execute

2002-07-28 Thread Justin Harrison
it didn't find them in the current name space. > -Original Message- > From: Justin Harrison [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 25, 2002 9:12 PM > To: [EMAIL PROTECTED] > Subject: RE: Execute > > > Thank you Gerald. I love you. > > &g

Re: Execute

2002-07-25 Thread Gerald Richter
> It seems to work in some fashion with Embperl Meta Subs.. > > Is it by design that it seems not to function with perl subs? Am I doing > something wrong? :-( Is there anyway to make it function with perl subs? > It also works with perl subs, but you either need to tell Execute that you are lo

Re: Execute

2002-07-25 Thread Gerald Richter
> > In the 1.3 docs it's laid out pretty well here: > > http://perl.apache.org/embperl/pod/doc/doc13/HTML/Embperl.-page-3-.htm#sect_ 4 > > I'm not sure if there's an equivalent section in the 2.0 docs yet. > I am just in process of rewriting this part of the docs for 2.0 and have removed the old

Re: Execute

2002-07-23 Thread Gavin Carr
On Tue, Jul 23, 2002 at 11:02:07PM -0400, Justin Harrison wrote: > It seems to work in some fashion with Embperl Meta Subs.. > > Is it by design that it seems not to function with perl subs? Am I doing > something wrong? :-( Is there anyway to make it function with perl subs? The easy perl sub w

RE: Execute

2002-07-23 Thread Justin Harrison
> Sent: Tuesday, July 23, 2002 10:26 PM > To: [EMAIL PROTECTED] > Subject: RE: Execute > > > Thanks for your response. > > I am trying this in embperl 2 b8. > > In the main embperl file: > > [- $r = shift -] > > [- $r->{content} = Execute ({

RE: Execute

2002-07-23 Thread Justin Harrison
tle" via package "Embperl::__2" (perhaps you forgot to load "Embperl::__2"?)" I threw Data::Dump on $r->{content} and it revealed: bless({}, "Embperl::__2") Any ideas? :-( > -Original Message- > From: Gavin Carr [mailto:[EMAIL PROTECTED]] >

Re: Execute

2002-07-23 Thread Gavin Carr
On Mon, Jul 22, 2002 at 05:54:16PM -0400, Justin M. Harrison wrote: > Is there any consolidated documentation on what exactly Execute can do, > and how files can be brought in or executed? Everything I have found > about it seems to be scattered about Embperl, Embperl::Object, etc, in > both docum

Re: Execute and modperl post

2002-07-15 Thread Gerald Richter
Hi! > > I have in Apache mod_perl content handler > sub SHOW > { > > > $res=&HTML::Embperl::Execute ({ inputfile => $r->filename,mtime=>undef, > > escmode=>0,options=>16,req_rec=>$request,fdat=>{},ffld=>[], > output => \$of_content }); > > } >

Re: Execute() offline

2002-03-05 Thread erik
On Tue, Mar 05, 2002 at 08:36:17PM +0100, Gerald Richter wrote: > > > > Yep. This works like a charm. Now I just have to decide whether or > > not to run with a custom patch in production :-) > > > > > You can savely use it. This patch is a much better solution then the old > one, which is ver

Re: Execute() offline

2002-03-05 Thread Gerald Richter
> > Yep. This works like a charm. Now I just have to decide whether or > not to run with a custom patch in production :-) > You can savely use it. This patch is a much better solution then the old one, which is very old and from a time where $ENV{MOD_PERL} didn't had exists. Gerald P.S. Star

Re: Execute() offline

2002-03-05 Thread erik
On Tue, Mar 05, 2002 at 04:40:31PM +0100, Gerald Richter wrote: > > But Embperl immediately assumes it should call Apache->request() if > > Apache is loaded. Is there any way around this? > > You could try to change the line 737 in Embperl.pm from > > elseif (exists $INC > > to > e

Re: Execute() offline

2002-03-05 Thread Gerald Richter
> But Embperl immediately assumes it should call Apache->request() if > Apache is loaded. Is there any way around this? You could try to change the line 737 in Embperl.pm from elseif (exists $INC to elsíf ($ENV{MOD_PERL}) Let me know if this works for you, so I could try to make E

Re: Execute error return value

2001-01-15 Thread Gerald Richter
> > > My question is... how can I get the same behaviour in my intranet portal > > > code below? > > > > You can try to reset the http status, just before the end of the request > > (after executeing the footer) > > > > $req_rec -> status (200) ; > > > > but I am not sure if this works. > > Nope,

Re: Execute error return value

2001-01-15 Thread Wim Kerkhoff
Gerald Richter wrote: > > > > > My question is... how can I get the same behaviour in my intranet portal > > code below? > > You can try to reset the http status, just before the end of the request > (after executeing the footer) > > $req_rec -> status (200) ; > > but I am not sure if this wor

Re: Execute error return value

2001-01-11 Thread Gerald Richter
> > My question is... how can I get the same behaviour in my intranet portal > code below? You can try to reset the http status, just before the end of the request (after executeing the footer) $req_rec -> status (200) ; but I am not sure if this works. Gerald

Re: Execute in same namespace

2000-10-18 Thread Todd R. Eigenschink
Andre Landwehr writes: >On Sun, Oct 15, 2000 at 10:08:00AM -0500, John Aughey wrote: >> in an epl file to include a common nav bar in many .epl files. I would >> like to evaluate the navbar.epl script in the same namespace as the >> calling script. I want to do this so the navbar.epl has access

Re: Execute in same namespace

2000-10-16 Thread Gerald Richter
>check out >http://perl.apache.org/embperl/Embperl.pod.2.html#By_calling_HTML_Embperl_E xecut > >find the package parameter. > >i haven't used this so far , but i think u can call it like this: >HTML::Embperl::Execute ({ inputfile => '/path/to/your.html', package => __PACKAGE__,}); do so works,

Re: Execute in same namespace

2000-10-16 Thread ___cliff rayman___
check out http://perl.apache.org/embperl/Embperl.pod.2.html#By_calling_HTML_Embperl_Execut find the package parameter. i haven't used this so far , but i think u can call it like this: HTML::Embperl::Execute ({ inputfile => '/path/to/your.html', package => __PACKAGE__,}); Andre Landwehr wro

Re: Execute in same namespace

2000-10-16 Thread Andre Landwehr
On Sun, Oct 15, 2000 at 10:08:00AM -0500, John Aughey wrote: > in an epl file to include a common nav bar in many .epl files. I would > like to evaluate the navbar.epl script in the same namespace as the > calling script. I want to do this so the navbar.epl has access to some > variables that ar

Re: Execute (was: random function)

2000-10-15 Thread Gerald Richter
> > Btw. do multiple 'execute' functions get called in parallel when done > in one embperl file? eg. when I have 5 files included in index.html > via Execute could they start accessing db at the same time? > No, Execute's are execute in the order they appear in your sourcefile > If so - is there

re: Execute function

2000-10-09 Thread Neil Gunton
> Is it possible to use execute function as 'include' so it does not > parse the file just includes it in the calling file and parses them > all together? You may get the result you want by trying: [- Execute ({inputfile => 'filename.html', package => __PACKAGE__}) -] This will have the same

Re: Execute for importing subs

2000-08-07 Thread Gerald Richter
hi, > > my little question is: once I've used Execute to importe a set of subs > (from an Embperl page with [$sub$] tags) into the current namespace, do > these subs get cleaned up or do they persist? > > I read the man pages through adn through and could not find any hint. > sub's are never