Re: Embperl 1.3.6 Compile error on Solaris

2003-06-06 Thread Gavin Carr
Hi Sam, I've also seen this with HTML::Embperl 1.3.[46] on RedHat 9. I suspect it's something about the perl installation. Another data point is that this works fine on RedHat 8.0, also on perl 5.8.0 with thread support. Haven't had time yet to delve any further. Cheers, Gavin On Thu, Jun 05, 2

Re: Wiki and/or Forum

2003-11-17 Thread Gavin Carr
Hi Benni, On Fri, Nov 14, 2003 at 03:00:13PM +0100, Benni Baermann wrote: > Is there an WikiWiki and/or an discussion-forum programmed with > EmbPerl available as free software? You might also want to check out ewok, an embperl-based content management system with some wiki-like features, at ht

Re: pwd is '/' ???

2004-05-27 Thread Gavin Carr
On Thu, May 27, 2004 at 09:16:48PM +, Ed Grimm wrote: > On Thu, 27 May 2004, Hall, Philippe wrote: > > Another thing I notice (but presumably unrelated): I can't have more > > than one statement in a [+ +] block any more... is that right? I get > > a syntax error. > > That is correct. > > Ap

Re: embperl 1.3.6 and apache 1.3.31 problem

2004-06-27 Thread Gavin Carr
Hi Dirk, On Sun, Jun 27, 2004 at 01:33:59PM +0200, Dirk Jagdmann wrote: > I had a website running for a long time using the following Software: > perl 5.8.0, embperl 1.3.6, mod_perl 1.27 and apache 1.3.27. > Last week I decided it is time for an upgrade and compiled all of those > fresh from the

DBIx::Recordset and postgresql schemas?

2004-08-24 Thread Gavin Carr
I'm trying to get DBIx::Recordset to play with a PostgreSQL 8.0beta1 install, and am getting tons of errors on my initial DBIx::Database->new call: use constant DB_DSN => 'dbi:Pg:dbname=foo'; use constant DB_USER => 'foo'; use constant DB_PASS => 'foo'; DBIx::Database->new(DB_DSN

Re: DBIx::Recordset and postgresql schemas?

2004-08-25 Thread Gavin Carr
On Wed, Aug 25, 2004 at 08:06:10AM +0200, Robert Germi? wrote: > Gavin Carr wrote: > > >It looks like DBIx::Database->new is stripping the schema information > >from table names before calling QueryMetadata, which seems to be > >required now? Anyone else seen this

Re: Newbie issue

2004-09-09 Thread Gavin Carr
Hi Keven, On Thu, Sep 09, 2004 at 07:16:45PM -0400, Keven Murphy wrote: > I cannot figure out why the below html source page is hosed up. Why is > embperl not putting the body (the frist part, the forms) between the > lines. My code is below: It's because you're printing - in general, you don't

Re: Out of memory..

2004-10-15 Thread Gavin Carr
Hi Stefan, On Fri, Oct 15, 2004 at 02:10:22PM +0200, Stefan Cars wrote: > I get the following in there error_log and suddenly the webserver stops > answering requests.. > > Any idea what this could be ? Are you using a virtual server (i.e. a real server carved up into lots of little ones)? You

Embperl2 on RHEL

2005-03-13 Thread Gavin Carr
Hi Gerald, Embperl2 seems to have compilation problems on RedHat Enterprise Linux 3 and 4 because RedHat have split the APR libraries into separate packages from the httpd apache packages. Specifically, all the apr include headers are found in /usr/include/apr-0 rather than being included in /

Re: Embperl2 on RHEL

2005-03-13 Thread Gavin Carr
On Sun, Mar 13, 2005 at 02:48:05PM +0100, Gerald Richter wrote: > > Embperl2 seems to have compilation problems on RedHat > > Enterprise Linux 3 and 4 because RedHat have split the APR > > libraries into separate packages from the httpd apache > > packages. Specifically, all the apr include head

Re: Embperl2 on RHEL

2005-03-14 Thread Gavin Carr
Hi Gerald, On Mon, Mar 14, 2005 at 08:59:20AM +0100, Gerald Richter wrote: > Could you try if the attached Makefile.PL solves your problem? Yep, that works beautifully on both 2.0rc2 and current CVS. Thanks once more for the quick response. Will the updated Makefile.PL make it into rc3? Cheers,

Re: drop down calendar

2005-03-15 Thread Gavin Carr
> > Most people do this with javascript. I implemented a full-page calendar > in embperl, with Date::Calc and a few other Date:: modules, but it > sounds like you want something like > > http://javascript.internet.com/calendars/calendar.html Yep, generally javascript. I've used the Zapatec one

Re: Calling in known HTML files

2005-03-17 Thread Gavin Carr
Hi Michael, On Thu, Mar 17, 2005 at 09:44:38PM +, Michael Smith wrote: > I must apologise because I've asked this question before but can't > find the answer. > > I have some HTML files that I want to present within an epl page. I > can do this with Execute, but I presume I'll get a small pe

Re: FW: Configuration of Embedded Perl

2005-03-17 Thread Gavin Carr
Hi Wayne, On Fri, Mar 18, 2005 at 09:26:06AM +1100, Wayne Holgate wrote: > I inherited an embedded Perl application without any documentation and > are trying to get it to go. I have installed Apache 1.3.33. DBI and > DBD:Oracle modules and Embedded Perl 1.3.6. Do I also need to install > mod_perl

Re: Build Issues on RHEL AS 4 revisited

2005-03-29 Thread Gavin Carr
Hi Matt, On Tue, Mar 29, 2005 at 04:46:32PM -0600, Matt Bockol wrote: > I'm running into the same problem Gavin Carr seemed to be having > eariler this month. I've downloaded Embperl-2.0rc3 and it has the > Makefile.PL Gerald posted which seemed to fix this problem. Any

Re: Some philosophical questions

2005-07-26 Thread Gavin Carr
On Tue, Jul 26, 2005 at 08:07:36AM -0700, Neil Gunton wrote: > I think that people looking for the simpler, "beginner" solution turn to > PHP, whereas the heavier, "enterprise" users tend to go to Java. So maybe > mod_perl/Embperl is stuck somewhere in between in a kind of no mans land, > percei

Embperl::Object::Execute segfault

2005-09-11 Thread Gavin Carr
Porting an apache1 / HTML::Embperl app to apache2 / Embperl, and I'm getting segfaults doing an Embperl::Object::Execute under mod_perl. Simple example: - simple.html: 2 + 2 = [+ 2 + 2 +] - execute.html: [- Embperl::Object::Execute({ inputfile => 'simple.html', appname => 'test' }) -] This s

Re: Embperl::Object::Execute segfault

2005-09-12 Thread Gavin Carr
On Tue, Sep 13, 2005 at 05:21:58AM +0200, Gerald Richter wrote: > > Porting an apache1 / HTML::Embperl app to apache2 / Embperl, > > and I'm getting segfaults doing an Embperl::Object::Execute > > under mod_perl. Simple example: > > > > - simple.html: > > > > 2 + 2 = [+ 2 + 2 +] > > > > - exec

Re: username and password with basic auth

2005-09-13 Thread Gavin Carr
On Tue, Sep 13, 2005 at 09:33:28PM +0200, Dirk Jagdmann wrote: > I'm currently developing a software which is receiving requests via http > where username and password are transmitted via HTTP (basic) > authentication (as base64 encoded string in the HTTP request header). > The other parameters are

Re: username and password with basic auth

2005-09-13 Thread Gavin Carr
On Wed, Sep 14, 2005 at 05:41:35AM +0200, Gerald Richter wrote: > > Of course, Basic Authentication is evil, and should only be > > used for toy projects (since it doesn't scale) over HTTPS. > > I see that, since password is transmitted in clear text, it is a security > problem in http, but where

Re: Embperl::Object::Execute segfault

2005-09-15 Thread Gavin Carr
Hi Gerald, On Tue, Sep 13, 2005 at 08:56:20AM +0200, Gerald Richter wrote: > > Does that make sense Gerald? The corresponding code works > > fine using HTML::EmbperlObject::Execute. > > Yes, this makes more sense. > > Do you call this from the commandline or from within mod_perl? > > If you do

Re: Embperl::Object::Execute segfault

2005-09-28 Thread Gavin Carr
Hi Gerald, On Fri, Sep 23, 2005 at 11:30:16PM +0200, Gerald Richter wrote: > > On Tue, Sep 13, 2005 at 08:56:20AM +0200, Gerald Richter wrote: > > > > Does that make sense Gerald? The corresponding code works > > fine using > > > > HTML::EmbperlObject::Execute. > > > > > > Yes, this makes more

Re: Embperl::Object::Execute segfault

2005-10-01 Thread Gavin Carr
On Sat, Oct 01, 2005 at 04:07:25PM +0200, Gerald Richter wrote: > > > > The log looks ok and shows that the bug is fixed. > > > > Could you make a stack back trace from the segfault? > > Could you try if make test works for you? > > If make test segfaults, run make testgdb to get the stackbackt

make test failure

2005-10-01 Thread Gavin Carr
Hi, Debugging my segfault problems in another thread, I tried building Embperl 2.0.0 on another box running RHEL4, perl 5.8.5, httpd 2.0.52 (RH version), and mod_perl 2.0.0. make test fails during the mod_perl tests as follows: #76 upload.htm... ERR:Internal Server Error Input:

Re: make test failure

2005-10-02 Thread Gavin Carr
On Sun, Oct 02, 2005 at 05:57:46PM +0200, Gerald Richter wrote: > > Found unexpected output in httpd errorlog: > > [Sun Oct 02 07:07:07 2005] [error] [13083]ERR: 24: Error in > > Perl code: Can't locate Apache/Response.pm in @INC (@INC > > contains: ) > > > > Haven't dug any further into t

Re: make test failure

2005-10-02 Thread Gavin Carr
On Mon, Oct 03, 2005 at 06:53:38AM +0200, Gerald Richter wrote: > > > It depends on the mod_perl version. Which mod_perl version > > is installed? > > > > It was in the email: > > > > >> Debugging my segfault problems in another thread, I tried building > > >> Embperl 2.0.0 on another box runni

Re: make test failure

2005-10-03 Thread Gavin Carr
On Mon, Oct 03, 2005 at 01:46:09PM +0200, Gerald Richter wrote: > > On Mon, Oct 03, 2005 at 07:28:05AM +0200, Gerald Richter wrote: > > > > Yep, I've got 3.10, as shipped with RHEL4. > > > > > > > > So this looks like a bug in the test then? > > > > > > Not sure. It works for me with very simila

Re: Embperl::Object::Execute segfault

2005-10-03 Thread Gavin Carr
Hi Gerald, On Sun, Oct 02, 2005 at 05:58:42PM +0200, Gerald Richter wrote: > > On Sat, Oct 01, 2005 at 04:07:25PM +0200, Gerald Richter wrote: > > > > > > > > The log looks ok and shows that the bug is fixed. > > > > > > > > Could you make a stack back trace from the segfault? > > > > > > Could

Re: Uploading File writes zero bytes

2006-03-20 Thread Gavin Carr
On Mon, Mar 20, 2006 at 06:09:30PM -0500, Keven Murphy wrote: > I am having a hell of a time trying to get a file to upload. The file gets > created and then nothing gets put into the file! That sounds like a CGI version issue - there was an upload problem with some of the early 3.0's, from memory

Arbitrary handler return values from Embperl?

2000-09-14 Thread Gavin Carr
Hi Gerald et al, I've got an Embperl page where I'd like to have Embperl stop processing and return an Apache FORBIDDEN or DECLINED or some other arbitrary handler return code if particular conditions are true. Apache::exit does the stop but not the return code. I can think of a few kludges, but

Re: Arbitrary handler return values from Embperl?

2000-09-14 Thread Gavin Carr
Yeah I've tried this (and variations, with $optReturnError both ways as well) but it doesn't seem to do the job - I just get a blank page, and if an ErrorDocument is defined it doesn't get picked up. The difference can be seen below, with the first being the embperl page doing a [- $req_rec->statu

HTTP 500s using EmbperlObject

2001-01-09 Thread Gavin Carr
Hi Gerald et al, I'm getting intermittent system errors on several (all?) of my EmbperlObject pages. The pages themselves seem okay, since a reload will typically work (although not always the first time). The only message in the error_log is as follows: Can't locate object method "Path" via

Re: HTTP 500s using EmbperlObject

2001-01-09 Thread Gavin Carr
Nope, no messing with @ISA at all. On Tue, Jan 09, 2001 at 11:19:47PM +0100, Gerald Richter wrote: > > > > Can't locate object method "Path" via package "HTML::Embperl::DOC::_15" at > /opt/perl5.6/lib/site_perl/5.6.0/i686-linux/HTML/Embperl.pm line 840. > > Do you make any changes to the @ISA ar

Re: HTTP 500s using EmbperlObject

2001-01-09 Thread Gavin Carr
2001 at 10:10:24AM +1100, Angus Lees wrote: > On Wed, Jan 10, 2001 at 08:18:51AM +1100, Gavin Carr wrote: > > I'm getting intermittent system errors on several (all?) of my > > EmbperlObject pages. The pages themselves seem okay, since a reload > > will typically work

Re: HTTP 500s using EmbperlObject

2001-01-11 Thread Gavin Carr
On Wed, Jan 10, 2001 at 06:42:43AM +0100, Gerald Richter wrote: > > On Wed, Jan 10, 2001 at 08:18:51AM +1100, Gavin Carr wrote: > > > I'm getting intermittent system errors on several (all?) of my > > > EmbperlObject pages. The pages themselves seem okay, since a rel

Re: HTTP 500s using EmbperlObject

2001-01-15 Thread Gavin Carr
Hi Gerald, On Wed, Jan 10, 2001 at 06:42:43AM +0100, Gerald Richter wrote: > > checking out the affected package with Apache::Status, shows it still > > has all the variables, etc i'd expect to see. none of my pages touch > > @ISA, and Apache::Status doesn't list it as defined for any embperl > >

Re: HTTP 500s using EmbperlObject

2001-02-01 Thread Gavin Carr
On Wed, Jan 31, 2001 at 07:53:58PM +0100, Gerald Richter wrote: > > > > > > @HTML::Embperl::DOC::_3::ISA = (); > > > > > > Any suggestions as to where to go looking to track this down? > > > > I guess one/some of your pages causes the @ISA (unintentionaly) to be > > cleared. Maybe you use a modu

htaccess and EmbperlObject

2001-02-01 Thread Gavin Carr
Hi all, .htaccess files don't seem to work in EmbperlObject-ified directories, even for files that EmbperlObject doesn't end up handling. Is this a a known limitation (or a feature!), or have I butchered something? AllowOverride AuthConfig is set. I'm wanting to restrict access to certain parts

Re: htaccess and EmbperlObject

2001-02-04 Thread Gavin Carr
On Fri, Feb 02, 2001 at 07:20:18AM +0100, Gerald Richter wrote: > > .htaccess files don't seem to work in EmbperlObject-ified directories, > > even for files that EmbperlObject doesn't end up handling. Is this a > > a known limitation (or a feature!), or have I butchered something? > > EmbperlObj

Re: HTTP 500s using EmbperlObject

2001-02-08 Thread Gavin Carr
Hi Gerald, Good news - something in my scripts started tickling that ISA problem again after a couple of weeks of quiet so that it's been happening regularly today. So I installed the version out of CVS as you suggested and have been pounding on it for a couple of hours now and it's been rock so

Re: Embperl Object problem

2001-02-22 Thread Gavin Carr
On Thu, Feb 22, 2001 at 02:51:02PM -0800, Wim Kerkhoff wrote: > "G.Richter" wrote: > > > > Should the base class be accessible from the browser? > > > > > > > It's not intended to be, but it could lead to denial of service attacks, so > > I add a security check. > > What are people doing to pr

Embperl 2.0 and EmbperlObject Executes query

2001-02-27 Thread Gavin Carr
Hi Gerald et al, Not wanting to divert you from real work on Embperl 2.0, but ... Neil Gunton started a thread back in November about how to turn off Embperl constructs ([+, [-, [$ etc) within EmbperlObject pages, and observed there that it using EmbperlObject as a website construction framework

Executing file that doesn't exist

2001-05-20 Thread Gavin Carr
Hi Gerald et al, I want to be able to do an Embperl::Execute on a file that potentially doesn't exist and catch the error (within EmbperlObject, so it's not trivial to just do a -f on the file). I've tried the obvious things - the 'errors' parameter, $optDisableEmbperlErrorPage, $optReturnError,

Re: Executing file that doesn't exist

2001-05-21 Thread Gavin Carr
are no better options I can at least do a search of the path myself. Cheers, Gavin > - Original Message - > From: "Gavin Carr" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, May 21, 2001 2:34 AM > Subject: Executing file that doesn

Re: Executing file that doesn't exist

2001-05-21 Thread Gavin Carr
Hi Gerald, On Tue, May 22, 2001 at 07:33:38AM +0200, Gerald Richter wrote: > > Yes, I know about EMBPERL_OBJECT_FALLBACK, but here I'm doing an > > Embperl::Execute (of a component) not the initial > > EmbperlObject::Execute, so I don't think this applies? An > > Embperl::Execute fallback option

Re: Executing file that doesn't exist

2001-05-22 Thread Gavin Carr
Hi Gerald, Complete success on 1.3.2! Thanks. Does/will version 2.0x handle this similarly? Cheers, Gavin On Tue, May 22, 2001 at 01:14:18PM +0200, Gerald Richter wrote: > ok, you are right, my answer was a little bit too quick... > > You need to reset Embperl internals error flag, but you ca

Re: How to save dynamic HTML output to a file after user reviews it?

2001-05-23 Thread Gavin Carr
Hi Scott, If it's an embperl page that's producing your dynamic output, one method would be something like this: dynamic.ehtml - dynamic page review.ehtml - review page --dynamic.ehtml: [- $review = shift @param -] [$ if ($review ne 'R') $][$ endif $] [# Body content goes here. #] [$ if

Re: How to save dynamic HTML output to a file after user reviews it?

2001-05-23 Thread Gavin Carr
On Thu, May 24, 2001 at 11:12:24AM +1000, Gavin Carr wrote: > [- Execute({ inputfile => 'dynamic.ehtml', output => $output, > param => [ 'R' ] }); -] Whoops, output should be a reference: [- Execute({ inputfile => 'dynamic.ehtml', output =&

Embedded EmbperlObject::Execute problem

2001-07-02 Thread Gavin Carr
Hi Gerald et al, Not sure if this is a bug or me simply making assumptions about how EmbperlObject would work ... I've built a Content Management System using EmbperlObject that is working really well. But one issue I've run into is where an EmbperlObject "publishing" page does an EmbperlObject:

Re: Embedded EmbperlObject::Execute problem

2001-07-08 Thread Gavin Carr
Hi Gerald, On Sun, Jul 08, 2001 at 03:06:37PM +0200, Gerald Richter wrote: > That's the intented behaviour, because the Embperl Request object is > the way how different pages can communicate (pass data back and > forth). That's the same for %fdat, %udat etc. (and the %ENV is always > a Perl glob

Re: Embedded EmbperlObject::Execute problem

2001-07-09 Thread Gavin Carr
On Mon, Jul 09, 2001 at 12:22:10PM +0200, Gerald Richter wrote: > > If that's correct, then I was thinking of my embedded > > EmbperlObject::Execute as a (logical) new request, and expecting that > > $req would be empty like it is if I access that page directly. > > How should Embperl determinate

DBIx::Recordset and composite primary keys?

2001-10-28 Thread Gavin Carr
Hi Gerald, Doesn't look like DBIx::Recordset supports composite primary keys - is that by design or it just a feature you haven't needed? Where it would be most useful for me is on Execute updates, since that's how you're distinguishing keys from values - I guess you can use an explicit where c

Re: Any way to allow only 'partial' inheritance

2001-10-31 Thread Gavin Carr
Hi Sean, Something I've found useful in vaguely similar situations is to do your base.epl Execute with an 'output' argument, which stuffs it all into a scalar for you instead of outputting it directly. You can then check whether the include is a full html page or just a fragment and munge appropr

Re: A little Off Topic

2001-11-28 Thread Gavin Carr
Hi David, The docs cover embperl support for file uploads: http://perl.apache.org/embperl/Embperl.pod.6.html#_fdat Attachments are usually just additional files on disk that you point to from your page. HTH, Gavin On Wed, Nov 28, 2001 at 07:06:10AM -0500, Boyd, David wrote: > Hello All, >

Re: Content-Disposition and $http_headers_out

2002-02-22 Thread Gavin Carr
On Fri, Feb 22, 2002 at 02:42:07PM +0200, Jaak wrote: > Now I have one more question. I am using EmbperlObject mode. How can I > disable that for file output > with Content-type (eg. zip file from mySQL). At the moment I am getting the > file with html design. Use EMBPERL_FILESMATCH to limit Embp

Re: Taking on PHP

2002-03-13 Thread Gavin Carr
On Wed, Mar 13, 2002 at 04:18:56PM -0500, Kee Hinckley wrote: > It sometimes scares me how popular PHP has become. Aside from not > being thrilled with it in general (bastardized Perl with a weak > architecture), I also don't want to be stuck using a templating > solution that gets marginalize

Trailing whitespace

2002-04-11 Thread Gavin Carr
I've got an embperl (1.3.4) page that dumps a blob from a database with an appropriate content type, and I'm finding I'm getting trailing whitespace when I save the output to disk. For binaries this can be a problem. Simple example - a file containing: [+ 'abc' +] gets saved as (od -c output

Re: Trailing whitespace

2002-04-11 Thread Gavin Carr
On Fri, Apr 12, 2002 at 05:52:59AM +0200, Gerald Richter wrote: > > I've got an embperl (1.3.4) page that dumps a blob from a database with > > an appropriate content type, and I'm finding I'm getting trailing > > whitespace when I save the output to disk. > > You have to turn of escaping > > >

RFC: simple OO DBIx::Recordset wrapper

2002-04-17 Thread Gavin Carr
Hi all, I've got a simple object-oriented wrapper to DBIx::Recordset that I'm considering releasing to CPAN. I'm interested in getting some feedback on the interface, specifically, and on whether people think it might be useful, in general. I'd be happy to hear both from DBIx::Recordset users and

Re: DBIx::Recordset $values parameter not behaving as expected.

2002-05-14 Thread Gavin Carr
On Tue, May 14, 2002 at 11:36:00AM -0700, Scott Chapman wrote: > > # If user is a member of acctmgr group, don't show them Status_Viewed records. > > if ($group_file->ismember($req->{user},'acctmgr')) { > > $db{'$where'} = $db{'$where'} . ' AND eventcode != ?'; > > $db{'$value

EmbperlObject subcomponent inheritance (1.3.x)

2002-05-16 Thread Gavin Carr
Question - does Execute('../init.epl') search EMBPERL_OBJECT_ADDPATH directories in addition to direct parent directories? I think it should, but it's not finding my parent init.epl in an ADDPATH directory. It finds the parent fine if I move the child init.epl out of the way. This is with

Re: EmbperlObject subcomponent inheritance (1.3.x)

2002-05-19 Thread Gavin Carr
On Fri, May 17, 2002 at 10:06:37PM +0200, Gerald Richter wrote: > > Question - does > > > > Execute('../init.epl') > > > > search EMBPERL_OBJECT_ADDPATH directories in addition to direct parent > > directories? > > Yes Okay good, but this is not working for me. See below. > > I think it shoul

Re: Embperl handling DocumentRoot

2002-05-20 Thread Gavin Carr
Hi Daniel, On Sun, May 19, 2002 at 06:32:37PM -0700, Daniel Barbar wrote: > > SetHandler perl-script > PerlHandler HTML::Embperl > Options ExecCGI > > > The Perl code seems to be recognized and processed just fine, however, the > tage doesn't work. I have verified

Re: EmbperlObject subcomponent inheritance (1.3.x)

2002-05-21 Thread Gavin Carr
Hi Gerald, On Tue, May 21, 2002 at 08:04:44PM +0200, Gerald Richter wrote: > So your original usage of .. was correct. Basicly what you are doing seems > to be ok, but I see that it doesn't work. > > Where is your base template located? Where is the page you are actually > requesting located? Ca

Re: EmbperlObject subcomponent inheritance (1.3.x)

2002-05-22 Thread Gavin Carr
Hi Gerald, On Wed, May 22, 2002 at 03:13:28PM +0200, Gerald Richter - ecos gmbh wrote: > Look it a bug in the path searching logic. Goto Embperl.pm, line 617, which > is > > $skip += $pathndx if ($skip) ; > > insert > > $pathndx = 0 if (!$skip) ; > > directly below this line. > > Does this f

Re: Using %fdat inside a url - embperl 1.3.3

2002-05-23 Thread Gavin Carr
On Thu, May 23, 2002 at 11:49:33PM -0400, Kee Hinckley wrote: > Yes, and $escmode is what I use, but it doesn't work well inline. > Given the choice of writing: > [$ var $oescmode $] > [- $oescmode = $escmode; $escmode = 0; -] > [- $escmode = $oescmode -][+ > $foo +] > > or put

File locking on EmbperlObject::Execute

2002-06-04 Thread Gavin Carr
Hi Gerald, Are you doing any explicit file locking on the reads involved in an EmbperlObject::Execute? If not, could I make it a feature request? Maybe an 'flock' argument to Execute or something? I've got a situation where I want to able to write lock some of my epl components and know that t

Re: File locking on EmbperlObject::Execute

2002-06-04 Thread Gavin Carr
On Wed, Jun 05, 2002 at 08:22:36AM +0200, Gerald Richter wrote: > > I've got a situation where I want to able to write lock some of my epl > > components and know that the locking will be honoured ... > > You want to write lock the Embperl source files? Do you creating them > dynamicly? Otherwise

Re: File locking on EmbperlObject::Execute

2002-06-04 Thread Gavin Carr
On Wed, Jun 05, 2002 at 03:49:59PM +1000, Angus Lees wrote: > At Wed, 5 Jun 2002 14:37:28 +1000, Gavin Carr wrote: > > I've got a situation where I want to able to write lock some of my epl > > components and know that the locking will be honoured ... > > just do the u

Re: File locking on EmbperlObject::Execute

2002-06-05 Thread Gavin Carr
On Wed, Jun 05, 2002 at 11:20:15AM +0200, Gerald Richter - ecos gmbh wrote: > > Yeah that handles atomic writes, but not proper atomic updates - read > > data, modify, write, avoiding the race condition between the read and > > the write. I think that requires proper locking? > > If you only have

Re: How to get at constant.epl from outside the web evironment?

2002-06-12 Thread Gavin Carr
On Wed, Jun 12, 2002 at 02:33:43PM -0700, Scott Chapman wrote: > I have a constant.epl file that defines some variables as part of $req: > > [- > $req = shift; > $req->{website_database} = 'DBI:Sprite:/www/db/Annual_Review'; > $req->{website_event_table} = 'ar_events'; > $req->{we

Re: newbie

2002-07-23 Thread Gavin Carr
Hi Kevin, There are multiple ways of doing this, depending on what framework you're planning to use. For instance, the CGI module, mod_perl, and embperl (HTML::Embperl - this mailing list) all allow you to do file uploads pretty easily - your snippet is for a mod_perl solution (in perl). If you'

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

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: [! And [-

2002-07-28 Thread Gavin Carr
On Sun, Jul 28, 2002 at 03:09:16AM -0400, Justin M. Harrison wrote: > Could anybody clarify the difference between [! !] and [- -] for me? > What makes [! whatever !] so different from [- whatever -]? When is [- > whatever -] ever going to be executed twice? [- whatever -] gets executed every

Re: [! And [-

2002-07-28 Thread Gavin Carr
On Sun, Jul 28, 2002 at 06:13:56PM -0400, Justin Harrison wrote: > Hmm. I suppose that helps. I am assuming then, that it is cached between > page requests? Yep. > If you define a sub routine with [! And reload the page, then it does > not need to recompile the sub routine? Correct, because th

Re: Form Validate Error

2002-08-12 Thread Gavin Carr
On Mon, Aug 12, 2002 at 09:18:27PM -0400, Justin M. Harrison wrote: > Rules.pm: > > sub loginform { > return([ > [-key => 'username', > -name => 'username' Missing comma. :-) > -msg => "Username was not entered", > required=>1. > -msg => "Username was too short", >

Re: use lib in EmbperlObject

2002-08-15 Thread Gavin Carr
On Thu, Aug 15, 2002 at 04:12:06PM -0400, Kee Hinckley wrote: > Is there any way to put a "use lib" command in a called routine (e.g. > [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later > "use" commands? Any other suggestions. I hate having to put it in > every single file.

Re: CMS Using Embperl

2002-08-20 Thread Gavin Carr
Hi Sam, I've got one that's about a week away from its first public release (GPLed). It's got browser-based file management, EmbperlObject templating, a staging/publishing model, Wiki-style text markup, configurable metadata on files and directories, a flexible user model, and sundry other bits a

Re: CMS Using Embperl

2002-08-21 Thread Gavin Carr
Hi Andre, On Wed, Aug 21, 2002 at 09:47:48AM +0200, Andre Landwehr wrote: > what's the name of the thing so I don't miss the announcement on > freshmeat.net? ;-) > > Do you have any download address yet? It's called 'ewok', and I'll announce it on the embperl list as well as on freshmeat, just

ANNOUNCE: ewok - embperl-based content management system

2002-09-02 Thread Gavin Carr
Hi all, The first public (beta) release of ewok, a web content management system written in Embperl, is now available under the GPL at: http://www.openfusion.com.au/labs/ewok/ ewok features: - a browser-based file manager - EmbperlObject-based templating / page-wrapping - a staging/publish

Re: difference between running offline mode and mod_perl?

2002-09-02 Thread Gavin Carr
On Mon, Sep 02, 2002 at 06:52:16AM -0700, Mark Lambrecht wrote: > Thanks for the excellent Embperl module. I am a new > user and I have the following problem, for which I > could find no immediate answer on this list or in the > documentation : > - I have a epl that uses a Perl module I wrote. I

Re: using CGI within Embperl

2002-09-03 Thread Gavin Carr
Try adding 256 to your EMBPERL_OPTIONS: optDisableFormData = 256 This option disables the setup of %fdat and @ffld. Embperl will not do anything with the posted form data. Set this when using Execute from your perl script and you have

Re: $http_headers_out{'location'} = $previous

2002-12-26 Thread Gavin Carr
On Thu, Dec 26, 2002 at 02:10:13PM +, Gerardo Schimpf wrote: > I'm working with cookies and sessions, and I'm wondering how can I redirect > in embperl to the previous page (where the user is comming from) instead of > the login page... Am I beeing clear enough? Thanks in advance... $previo

Re: variable containing   is output literally as  

2002-12-30 Thread Gavin Carr
On Mon, Dec 30, 2002 at 04:03:31PM -0600, Jason Bodnar wrote: > I have the following code in my empberl document: > > [- $rw->{$field} =~ s/\s+/ /g -] > > [+ $rw->{$field} +] Try: [+ local $escmode = 0; $rw->{$field} +] Cheers, Gavin -- Open Fusion P/L - Open Source Business Solutions [ Lin

Re: PerlSetEnv EMBPERL_OBJECT_BASE (??)

2003-03-17 Thread Gavin Carr
Hi Edouard, On Mon, Mar 17, 2003 at 10:11:28AM -0800, Edouard Lagache wrote: > A minor glitch that I couldn't find in listserv archives though. Just > setting the EMBPERL_OBJECT_BASE environmental variable in the Apache > configuration file seems to have no effect. If I instead just use > _base.