Hi,
I'm finally playing with [= =] , here is couple of questions/problem
reports
1) all translated expressions go into one Data::Dumper file, it would be
much more convenient to have one dictionary per language because you
have typically different translators for different languages and it the
Hi,
please help, I'm getting desperade.
The very same Embperl2 page works fine in Firefox, but in Explorer it
says Internal Server Error. This is consistent across all pages and all
my virtual servers based on Embperl2. There's nothing interesting in
the logs, nothing in the error logs, acces
Gerald Richter wrote:
<>The very same Embperl2 page works fine in
Firefox, but in Explorer
it says Internal Server Error.
Well, I'm not sure it is the source, but the primary cadidate is app
object - maybe I don't just understand how to use it, but as long as I
put anything in in
Gerald Richter wrote:
Â
<>the init method must return zero or a
valid http return code, otherwise Embperl generates a 500 server error
Excellent, thanks a lot, now it works great (now I understand why I got
return code 1 in the access log - I could not find what it means ;-) )
Pete Moran wrote:
Hi all,
I have started using apache 2 and Embperl 2.0b11 - however I have
noticed that I can't seem to add additional search paths.
A sample configuration
PerlSetEnv EMBPERL_OBJECT_ADDPATH
/var/website/htdocs/uk;/var/website/htdocs/shared/;/var/website/htdocs/
try : instead
Angus Lees wrote:
At Tue, 13 Jul 2004 12:30:42 +0200, RobertCZ wrote:
Gerald Richter wrote:
I tried to play with it and it seems that Postgres as a store does
SELECT ... FOR UPDATE,
To me it looks like only one Apache child is working and other are
just
RobertCZ wrote:
Angus Lees wrote:
At Tue, 13 Jul 2004 12:30:42 +0200, RobertCZ wrote:
Gerald Richter wrote:
I tried to play with it and it seems that Postgres as a store does
SELECT ... FOR UPDATE,
To me it looks like only one
Gavin Carr wrote:
and if I do the following (again as the postgres user):
perl -MDBIx::Database -le
'DBIx::Database->new("dbi:Pg:dbname=template1","postgres",undef,undef,"foo",1)'
I get a long list of errors about non-existent relations. Does the above
work okay for you on 7.3?
it does... at
Gerald Richter wrote:
After a long time were I didn't have time to working on DBIx::Recordset I
now at least fixed the problem with Perl 5.8, so it can be used also with
the actual Perl.
Since Terrence is currently the owner on CPAN I cannot upload it the CPAN,
so until I get the owernership again,
Hi,
* I'm porting some old pages to Embperl2 and I have noticed the
following difference: When ... img src=tst.gif ... is not quoted,
Emperl2 generates ... img src tst.gif ... (without =) and breaks all
images and links. I know it's incorrect not to escape parameter values
in HML, but it use t
Hi,
I'm playing with Apache::ImageMagick under mod_perl 2 and
Apache::compat (mainly because AIM needs Apache::File which is not
supported under mp2). AIM/mp2 returns the correct modified file but with
wrong file size (size of the original file, not the modified one). It
does work under mod_pe
RobertCZ wrote:
I'm playing with Apache::ImageMagick under mod_perl 2 and
Apache::compat (mainly because AIM needs Apache::File which is not
supported under mp2). AIM/mp2 returns the correct modified file but
with wrong file size (size of the original file, not the modified
one). It does
Geoffrey Young wrote:
RobertCZ wrote:
RobertCZ wrote:
I'm playing with Apache::ImageMagick under mod_perl 2 and
Apache::compat (mainly because AIM needs Apache::File which is not
supported under mp2). AIM/mp2 returns the correct modified file but
with wrong
hi,
embperl mail archive has broken search... it doesn't find anything with
even the most simple words i can think of... including 'embperl' ;-)
- robert
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Hello,
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.
- Robert
b
Gerald Richter wrote:
* I'm porting some old pages to Embperl2 and I have noticed
the following difference: When ... img src="" ... is not quoted,
Emperl2 generates ... img src tst.gif ... (without =) and
breaks all images and links. I know it's incorrect not to
escape parameter val
Gerald Richter wrote:
embperl mail archive has broken search... it doesn't find
anything with even the most simple words i can think of...
including 'embperl' ;-)
The server has moved and I forget to update the search engine. Should be
fixed by tomorrow after the indexer ha
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 d
Hi,
Embperl 1 used to expand hash/array in URL into query string like in
href=[+ scalar { %fdat, id => 1 } +] but this doesn't seem to work in
Embperl 2. Is this a known bug?
- Robert
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Hi,
I'm trying simple
[- Execute('_ref.eo') -]
or
[- Execute({ filename => '_ref.eo', package => PACKAGE }) -]
When it's in the base object file, it works OK, but it does nothing in
ordinary HTML (executed) file - not even error or a trace in the
error/embperl log - and it worked in 1.3
I must
Dirk Jagdmann wrote:
I'm trying simple
[- Execute('_ref.eo') -]
In Embperl 2 you have to add a ';' in every statement in a [--] block
and you have to omit it it [++] blocks.
Thank you, I knew it would be something stupid - now it seems at least
some of the problematic pages work again.
- Robe
RobertCZ wrote:
Dirk Jagdmann wrote:
I'm trying simple
[- Execute('_ref.eo') -]
In Embperl 2 you have to add a ';' in every statement in a [--] block
and you have to omit it it [++] blocks.
Thank you, I knew it would be something stupid - now it seems at least
some
Hi,
I need to give user a new session but I don't want to delete old data
for archival purposes - so don't want $r->DeleteSession - what's the
right way? User don't need to remember old session, so I can just make a
new session and resnd a new cookie, but what is the standard way?
And one mor
Hi,
the docs say Embperl2 sends all formfields, even when empty but it
clearly doesn't work - did I misunderstood something? How can I turn
this on?
- Robert
---
[- use Data::Dumper; -]
[+ Dumper(\%fdat) +]
-
Hi,
default_messages don't seem to work:
---
*** [= Heading =] ***
*** [= Submit =] ***
---
would print correct thing with test.html?lang=en but only
*** Hlavicka ***
*** ***
when test.html?lang=cz
It looks like defauly messages are completely ignored. app file
included
Gerald Richter wrote:
the docs say Embperl2 sends all formfields, even when empty but it
clearly doesn't work - did I misunderstood something? How can I turn this on?
optAllFormData is still an option in Embperl 2, so you should be able to set
it.
Great, thanks.http://perl.apache.org/emb
Gerald Richter wrote:
when extracting messages. I believe in some older version
quotes like [= 'Hello World' =] would fix it, but in RC2 it
just prints it with quotes 'Hello World'.
The problem is perhaps this definition
'Embperl output msg id' => {
'text' => '[=',
Gerald Richter wrote:
my %messages =
(
'cz' =>
{
'Heading' => 'Hlavicka',
'Submit' => undef,
You need to remove, the above line, then it will work.
It seems to work better, but is this practical? undef serves to
tr
Now it does the extracting right (with a lot of quotes ;-)), but it
does not seem to show the actual translations in the page itself
- Robert
Gerald Richter wrote:
when extracting messages. I believe in some older version
quotes like [= 'Hello World' =] would fix it, but in RC2 i
Gerald Richter wrote:
'$Embperl::Syntax::MsgIdExtract::Ids{scalar(%#0%)} = q{} if (!exists
($Embperl::Syntax::MsgIdExtract::Ids{scalar(%#0%)})) ;',
Try to change %#0% to %#\'0%
OK, now I got it working and it's really cool (with the exception of
the last couple of bugs).
Hi,
I'm stuck with this MsgIdExtract.pm problem: [= Hello World =] gives
error
[582]ERR: 24: Error in Perl code: Can't locate object method "Hello"
via package "World" (perhaps you forgot to load "World"?) at
/home/www/phl/doc/accom.html line 31.
when extracting messages. I believe in so
Hi,
I'm trying to get rid of all those [+ do { local $escmode = 0; $x } +]
just because $x has some Czech characters. epchar.min.c seems to work
OK, but I don't understand relative advatages/disadvanages of
epchar.c.min vs. epchar.c.iso-latin-2 ... Can some please explain what
I'm loosing when
Hi,
Embperl::Mail doesn't send Date header which makes the mail look dated
'1.1.1970' in Mozilla based clients. I add it manually like this
($year,$month,$day, $hour,$min,$sec) = Today_and_Now();
$date =
Day_of_Week_Abbreviation(Day_of_Week($year,$month,$day)) . ",
y using it in my two big projects and it's really REALLY
nice ;-)
-Original Message-
From: RobertCZ [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 15, 2004 12:49 PM
To: embperl@perl.apache.org
Cc: Gerald Richter
Subject: Multilingual support / was Re: Urgent: MsgId
Gerald Richter wrote:
I'm trying to get rid of all those [+ do { local $escmode =
0; $x } +] just because $x has some Czech characters.
epchar.min.c seems to work OK, but I don't understand
relative advatages/disadvanages of epchar.c.min vs.
epchar.c.iso-latin-2 ... Can some pleas
Derrick Spell wrote:
I have an array of hashes that I would like to store in %udat. First
of all, is this possible? Second, what is the correct syntax. I have
tried:
$udat{AoH} = @AoH;
but the array doesn't seem to be there when I try to retrieve it.
You cant put array there, just an array re
this is perfectly equivalent to Embperl, just use %fdat as usual
- robert
Michael Stepanov wrote:
Hi,
Recently I've configured Embperl::Object. So, now I'm
trying to move an existing web site from Embperl to
Embperl::Object. I have a question: how can I use
query string?
Imagine, I have a link:
Gerald Richter wrote:
I have fixed/changed the points you requested in your mail below. It's now
in the CVS, you might give it a try...
Great, thanks, I'm going to test it, but I remember there were some
special procedure necessary to use CVS version for EP2 and docs
http://perl.apache.org/embp
Hi,
I have just spent couple of hours trying to figure out why
'Embperl_MailHost xxx' configuration directive doesn't work for me until
I RTFS where it's used as $ENV{'EMBPERL_MAILHOST'}. Now with SetEnv
EMBERL_XXX it works fine, but why is everything set up using Embperl_XXX
directives only E
Hello,
I noticed that with EP2 this
doesn't work while
[- $http_headers_out{'Content-Type'} = $content{$lang}; -]
seems to work fine... What's the problem? Under EP1 it used to work OK.
- Robert
PS It's usually not a problem, but couple of my servers have russian or
korean (or sim
Philip Hazelden wrote:
I noticed that with EP2 this
doesn't work while
[- $http_headers_out{'Content-Type'} = $content{$lang}; -]
seems to work fine... What's the problem? Under EP1 it used to work OK.
What's the actual output of the two? It looks to me like you should be
usin
RobertCZ wrote:
I noticed that with EP2 this
doesn't work while
[- $http_headers_out{'Content-Type'} = $content{$lang}; -]
seems to work fine... What's the problem? Under EP1 it used to work OK.
OK, it seems one have to remove AddDefaultCharset from Apache conf
Terrence Brannon wrote:
* Did a mailing list ever get setup for Recordset? Should we?
Some time ago people on this list (incl. Gerald, of course ;-) ) agreed
it makes no sense to create a new list, the embperl mailing list can
serve for both (and for other related Gerald's stuff like
Apache::
Hi,
I have problem with the mails sent from Embperl::Mail::Execute,
because Thunderbird thinks the email is dated '1.1.1970 1:00'. I have to
manually add Date to the mail headers on every page with something like
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
$date2 = spri
Hi,
when calling Embperl::Mail twice from the same page, second time it
may send the body of the first email. Following code sends two emails
with different subjects, but with identical body 'test1 test1'
- R.
use Embperl::Mail;
$mail = qq{ test1 test1 };
Embperl::Mail::Execute({
input
RobertCZ wrote:
ups, second example should be
$mail2 = qq{ test2 test2 };
Embperl::Mail::Execute({
input => \$mail2,
subject => 'Embperl email test2',
to => '[EMAIL PROTECTED]',
from => '[EMAIL PROTECTED]',
});
Gerald Richter wrote:
when calling Embperl::Mail twice from the same page, second
time it may send the body of the first email. Following code
sends two emails with different subjects, but with identical
body 'test1 test1'
The problem should go away when you specify diff
Hi, Gerald,
I see RC5 is quite changed from previous versions, what are your plans
for Embperl? Will next RC support both old and new mod_perl? Given
Gentoo quite changed the Apache is installed recently, now this quite
new mod_perl... it makes me nervous about my next upgrade :-(
- Robert
--
Gerald Richter wrote:
OK, now I run it with inputfile => email1.eo / inputfile =>
email2.eo and it works, thanks a lot. However, both email?.eo
are identical, I just call them with a modified udat, so it's
not optimal, I need to mainten it twice. Is there a way to
use inputfile/othe
Gerald Richter wrote:
Well, nobody comments? Does that mean nobody is using AIM? It's great
to know I'm the only person using AIM with Embperl2...
At least I do not use it currently with Apache2 and I don't have enough free
time to check out where the problem is, also I would
Hi,
I need to send email in two different languages
app.eo:
---
...
my $lang = $fdat->{lang} || $r->app->udat->{lang} || 'en' ;
my %messages = %{ do '/home/www/nbcz/etc/dict/dict.dump' };
...
html:
-
...
$udat{lang}= 'cz';
Execute({ inputfile => 'email.eo', mtime => undef, to
Gerald Richter wrote:
You can change the message hash inside the page:
...
$udat{lang}= 'cz';
$epreq -> messages ([\%cz_msgs]) ;
Thanks - this works. I can leave for holiday knowing last problem is
fixed - YAY! ;-)
PS I'd take notebook on holiday ( :-(
Gerald Richter wrote:
Hmm - I'm not sure what change from 2.0 to 1.3 would look
like - I got a lot of [= =] etc. Thanks anyway.
Inside Embperl you need not to change anything. Embperl 2.0 gives you the
same interface and fucntions on Apache 1.3 and on Apache 2.0. Only if you
Gerald Richter wrote:
Embperl 1.3 will not like it, but what I said was that Embperl 2.0 on
Apache 1.3 and mod_perl 1.x works on Windows.
So please install
- Apache 1.3
- mod_perl 1.x
- Embperl 2.0
This combination will work on Windows
Aha, I see. I've just tried to install stuff accordi
Neil Gunton wrote:
This may be a little off the usual topic (bug reports, howto etc) but
I am genuinely curious to know what other list members think about it.
Back in 2000 or so, when I started using apache, mod_perl and Embperl,
it was a really dynamic scene and quite exciting with all the
RobertCZ wrote:
2) There seems to be less of a traditional web (server) programing and
more of client Java/JavaScript work.
Look at this AJAX stuff... Users want more flexible and more
responsive web apps and more and more of the functionality move to the
client. I'm these days spendi
Hello,
Recordset seems to have problem with Postgres 8, probably because of
some changes in Postgres schema handling 7.4 -> 8.0 (because it works
fine with 7.4 and older versions). The problem manifests itself with
some 'no relation triggers found' (and then a lot of 'command ignored'
errors
Hi,
as I reported, I have problems with mails sent from Embperl::Mail and
Thunderbird/Netscape - mails are dated 1.1.1970. I don't know what deep
cause of the problem is butI fixed it simply by adding Date: header
manually. I guess more people will have similar problem so I propose
patch Em
Otto Lang wrote:
I'm developing a new application using Embperl 2.0 final with the newest
perl-modules I could find (CGI.pm-3.11, ...). Everything works fine
unless
I try to access the %udat-hash.
And Opera 8.02 comes up with an internal server error:
Can't locate object method "TIESC
Gerald Richter wrote:
I have made a similar version of your patch, that moves the date generation
into C code, because a similar routine is already there. It also handles the
timezone.
It's in the CVS and will be in 2.0.1
Thanks for patching it - I'm back from holiday just to download and
Gerald Richter wrote:
- Diretive Embperl_Output_Esc_Charset allows to
generaly switch between Latin1, Latin2 and UTF-8.
(For UTF-8 this is not necessary when Perl's UTF-8
Flag is correctly set, but this is not the case
for all datasources)
Hello,
Hello,
I've never tried it before but I understand that Embperl 2 can define
new tags - can it redefine common HTML tags too? I have stuff like
all over the place, it would be cool to just write Title Title
Is there easy way to do it?
Thanks
- Robert
---
$escmode = 0;
_ep_rp(%$x%, "");
}}
}) ;
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
RobertCZ wrote:
> I've never tried it before but I understand that Embperl 2 can
> define new tags - can it redefine common HTML tags too? I have stuff
> like
>
>
Gerald Richter wrote:
Try
$self -> AddTagBlock ('h2', undef, ['color'], undef, { perlcode => q{
{ local $escmode = 0;
_ep_rp(%$x%, " Escape (%&'color%, 2) . "&text="
. $epreq -> Escape (XML::Embperl::DOM::Node::iChildsText(%$n%),
2)
. "\">");
Gerald Richter wrote:
One more problem: the escaping ( initial local $escmode = 0 )
stops workins after first use and only is restore when some
Embperl processed HTML is found eg
Mmmh, I guess we need to recompile Embperl.
Go to xsbuilder/maps/ep_structure.map and remove
Gerald Richter wrote:
Missing directory
/usr/src/cpan/Embperl-2.1.0/xsbuilder/tables/Embperl at
/usr/lib/perl5/vendor_perl/5.8.6/ExtUtils/XSBuilder/ParseSourc
e.pm line 494.
A sorry, I forgot that this directory is not part of the tar.gz, please run
perl xsbuilder/source_s
Gerald Richter wrote:
{ $epreq -> component -> curr_esc_mode = 0;
Oops, sorry mix of C and Perl won't work...should be
$epreq -> component -> curr_esc_mode(0) ;
WORKS!!!
Thanks a lot.
- Robert
PS Will this be part of the standard
Gerald Richter wrote:
WORKS!!!
Well, now I see it works when I write
[$ syntax + ParkhotelPruhonice $]
Parkhotel Průhonice
in the file itself, but when I try
[- Execute({inputfile => '*', syntax => 'Embperl ParkhotelPruhonice'}) -]
in base file as recommended i
Gerald Richter wrote:
Well, now I see it works when I write
[$ syntax + ParkhotelPruhonice $]
Parkhotel Průhonice
in the file itself, but when I try
[- Execute({inputfile => '*', syntax => 'Embperl
ParkhotelPruhonice'}) -]
in base file as recommended in the docs...
I gu
Gerald Richter wrote:
PS2 When I'm at it: doesn't have to be closed and
Embperl respects it and according to the HTML specs TR
doesn't have to be closed too - can default Embperl be made
more forgiving and ignore unclosed TR's? My hack just remove
processing completely, that is ha
Gerald Richter wrote:
My question is, is there a way I can store the document
requested to a variable in the base.epl file.
Take a look at http://perl.apache.org/embperl/pod/doc/Config.-page-3-.htm,
there is a filename and uri methods.
If you have an
> Diretive Embperl_Output_Esc_Charset allows to
> generaly switch between Latin1, Latin2 and UTF-8.
Hi,
I tried to put
Embperl_Output_Esc_Charset Latin2
into httpd.conf and now apache refuses to start at all with no message
in error.log. The same with Latin1 And the epchar.min compilation
Gerald Richter wrote:
Hi,
I tried to put
Embperl_Output_Esc_Charset Latin2
into httpd.conf and now apache refuses to start at all with
no message in error.log. The same with Latin1 And the
epchar.min compilation trick doesn't seem to work - I
replaced epchar.c with epchar.
no, input => \$mail is ok as long as you also specify inputfile =>
'somename' (as is said clearly in the docs) otherwise embperl can't
cache it correctly
PILCH Hartmut wrote:
> just use something like
>
> $mail = "error message";
> Embperl::Mail::Execute({ input => \$mail, mtime => undef
sorry for off-topic: how to move the following conf from plain text to
section? specifically, what is PerlSetVar equivalent in
section?
PerlFixupHandler Apache::ImageMagick
PerlOptions +GlobalRequest
PerlSetVar AIMScriptDir
/ho
[ AIMScriptDir =>
"/home/www/_cms/doc/$vhost/img/aim" ],
[ AIMCacheDir =>
"/tmp/aimcache/$vhost" ],
[ AIMCache => "Off" ],
not very clear what exactly you are doing - you have two apache virtual
servers both using Embperl::Object and they clash? you use
Embperl_App_Name, right?
if I dont understand, would you mind showing us some simplified code?
- robert
Daniel wrote:
Hi,
I'm running two websites from the same
Hi,
can I set Embperl_Cookie_Expires per-virtual host? I don't want any
problem with my main application but need to experiment on other
vhosts... Thanks.
- Robert
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
RobertCZ wrote:
can I set Embperl_Cookie_Expires per-virtual host? I don't want any
problem with my main application but need to experiment on other
vhosts... Thanks.
abybody?
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Randy Kobes wrote:
Wow, I'm impressed! Yes, that does fix the problem. I've placed an
Embperl ppm package up at
http://theoryx5.uwinnipeg.ca/ppms/
for ActivePerl 8xx, based on 2.2.0; this doesn't have
mod_perl-1 support built in, as I'm having (local)
difficulties with this, but it does includ
Hello,
I've just upgraded to 2.2 and now one of my vhost says
[22750]ERR: 24: Error in Perl code: Can't locate object method
"curr_esc_mode" via package "Embperl::Component" at
/home/www/_cms/doc/parkhotel-pruhonice/cms/hotel_en.html line 2.
Apparently the problem is in this syntax file
.
RobertCZ wrote:
Hello,
I've just upgraded to 2.2 and now one of my vhost says
[22750]ERR: 24: Error in Perl code: Can't locate object method
"curr_esc_mode" via package "Embperl::Component" at
/home/www/_cms/doc/parkhotel-pruhonice/cms/hotel_en.html line 2.
Hello,
I'm trying to install Embperl on Ubuntu 7.04, package libemperl-perl
(2.2.0-1) has the following problem
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax
error on line 4 of /etc/apache2/mods-enabled/zembperl.load: API module
structure `embperl_module' in file
/
Gunnar Wolf wrote
...
P.S.1 I understand Apache 2.2 is new on Ubuntu 7.04, perhaps the packge
is for Apache 2.0 and the DSO format has changed?
You are right on your last appreciation - We had a similar problem in
Debian, for which the fix [1] was as simple as recompiling Embperl
against
I remember vaguely I had similar problem some time agou - solved it
using LWP
- Robert
Frank Wesemann wrote:
Hello list,
just to make sure I didn't miss something:
Am I right in the assumption that I can not make a Embperl subrequest
directly to a remote server?
I tried in myaction.ep:
Hello,
is anybody using Embperl 2 (with Apache 2 & mod_perl 2 and perhaps
Imagemagick & postgresql ) on recent Mac OS X? I'm thinking about new
MacBook Pro but I'm not everything will work fine without a lot of black
magic... Comments?
- Robert
P.S. I found perhaps a year ago a repository
g very similar, and I
can't remember the name of that. (Fink does source code, with local
compilation; it's therefore a bit more complicated than the other - but
as a programmer, it means I can fiddle with the packages easily. The
other project shipped binaries.)
Ed
On Tue, 5 Jun 200
Adam Hasselbalch Hansen napsal(a):
Hey.
Saw here http://www.gossamer-threads.com/lists/modperl/embperl/17312
that you got a working copy of Apache::ImageMagick on Apache2/mod_perl2.
Something you still have?
Cheers,
Adam
Hi,
it's old and ugly hack - it works for what I do quite fine, but
88 matches
Mail list logo