EplSite revision and optimization for next version

2003-06-02 Thread ckassab
Hi guys! An optimization of EplSite has begun, everyone is invited. You can see the todo list in http://www.eplsite.org Please give your feedback as comments in the site or here in the embperl list. There is a task that seems to be missing and it is the migration from embperl 1.3.x to embperl 2

Executing multiple files using embperl 2.09b

2003-06-12 Thread ckassab
Hi: I have this structure: in file index.epl [- Execute ({inputfile => 'mainprogram.epl', package => __PACKAGE__}); Execute ($theeplsitepath.'skins/'.$skin.'/colors.epl'); Execute ({inputfile => $theeplsitepath.'includes/subs.epl', package => __PACKAGE__}); -] If inside file mainprogram.epl i tr

Execute without __PACKAGE__

2003-06-16 Thread ckassab
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 files containing subs, when i try to change the way to execute files like

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__ thank you..

2003-06-18 Thread ckassab
Hi guys: Thank you very much for your support. I will be delivering a maintenance release for EplSite before begin to develop using embperlobject using embperl 2. Regards Carlos Kassab > I really also recommend EmbperlObject for your rewrite. To get a > starting point take a look at > > http:

extrange behavior with EmbperlObject 2.09b

2003-06-27 Thread ckassab
Hi all: I am testing embperl Object from Embperl 2.09b but i saw something i do not understand: my base.eplo have this: [- Execute ('config.eplo'); -] [- Execute ('colors.eplo'); -] [- Execute ({'isa' => 'mainfile.eplo'}); -] [- Execute ({'isa' => 'subs.eplo'}); -] [- Execute ('*') -]

More testing of embperl 2.0b9

2003-07-02 Thread ckassab
Hi all: I continue testing embperl objects 2.0b9 and now i found that embperl is closing mytables before i want close them. This is my file base.eplo: Testing tables [- Execute ({'inputfile' => 'page_header.eplo', escmode =>0}); -] [- Execute ('*') -] [- Execute ({

Re: more testing of embperl 2.0b9

2003-07-05 Thread ckassab
Gerald: Thank you for your help, now it is not closing my tables. Carlos Kassab > Hi, > > Embperl needs a proper nesting, for that reason it closes all open html > tags which it processes. To avoid this problem,you can turn off > processing of html tags with > > [$ syntax EmbperlBlocks $] > > an

First site using EplSite

2003-07-05 Thread ckassab
Hi: This email is to tell you that there is a first site that now is using EplSite as a portalsystem in CGI mode. You can visit the site here: http://www.kapig.com.mx/ Carlos Kassab - To unsubscribe, e-mail: [EMAIL PROTECTED]

EplSite Version 1.2 has been released

2003-07-06 Thread ckassab
Hi all: This version is mainly a maintenance release but it contains some enhancements overthe previos version 1.1. Everybody using EplSite 1.1 is encouraged to upgrade. You can see the complete news in http://www.eplsite.org/ Now we are going directly to EmbPerlObject 2.x Carlos Kassab

use of uninitialized value in embperl object 2.0b9

2003-07-10 Thread ckassab
Hi: I am using cgi mode to develop but i am gettin this message "use of uninitialized value". Do you know how can i disable this message? Thank you in advance Carlos Kassab - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

EMBPERL_SESSION_HANDLER_CLASS to 'no' in embperl 2.0b9

2003-07-10 Thread ckassab
Hi: I am getting this message: Set EMBPERL_SESSION_HANDLER_CLASS to 'no' to avoid this message In embperl 1.3.x i edited file embperl.pm and set the value but in embperl2.0 it does not seems to work. Do you know what is the way to set this variable to no in embperl 2.0b9? I am using CGI mode to

Re: EMBPERL_SESSION_HANDLER_CLASS to 'no' in embperl 2.0b9

2003-07-11 Thread ckassab
Gerald: > Just put them on top of your epocgi.pl e.g. > > $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no' ; I put this in epocgi.pl but it did not worked. What i did was to edit file Site/lib/Embperl/OUT.pm and put the instruction there after "use Embperl::Constant ;" #start original lines of file

Re: EMBPERL_SESSION_HANDLER_CLASS to 'no' in embperl 2.0b9

2003-07-11 Thread ckassab
Gerald: > Just put them on top of your epocgi.pl e.g. > > $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no' ; > > or in your httpd.conf I set the value in httpd.conf and it worked fine. I did some testing with IIS and there i had tu put the value in file OUT.pm Regards Carlos Kassab > >> I am gett

Re: Cwd / chdir

2003-07-15 Thread ckassab
Cameron: In eplsite i use the next routine to get the list of files from a directory: $langdir ="."; # it means actual directory but you can specify a different opendir (LANGUAGEDIR,$langdir) || die "ca not opendir $langdir: $!"; rewinddir(LANGUAGEDIR); @languages = grep { /.epl/ } r

Embperl2 and IIS best performance setup

2003-07-20 Thread ckassab
Hi all: Somebody knows what is the configuration for best performance to workt wiht embperl2and IIS? Thank you in advance for your help Carlos Kassab - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Embperl Wishes and comments

2003-08-02 Thread ckassab
I know nobody ask for it but i would want to say my wishes. - Embperlobject is great but, is it posible to have for embperl 2 the feature to call subs from other files without using embperl object? maybe it is good to avoid the file search used in embperlobject using the base file base.epl. - Ac

Re: Embperl Wishes and comments

2003-08-03 Thread ckassab
> At 10:37 PM -0700 8/2/03, <[EMAIL PROTECTED]> wrote: >>I know nobody ask for it but i would want to say my wishes. >> >>- Embperlobject is great but, is it posible to have for embperl 2 the >>feature to call subs from other files without using embperl object? >>maybe it is good to avoid the file

Playing with syntax

2003-08-03 Thread ckassab
Hi all: I have been playing with embperl syntax and i found something funny. If you see the file below, i am using embperl with asp syntax, it could be great for ASP people trying to develop aplications in embperl. CKG file test.epl: [$syntax EmbperlBlocks ASP $] this is the title <% $title =

Re: Embperl Wishes and comments

2003-08-03 Thread ckassab
Hi: > What happens if you use > > [$ sub mysub $] > [- print OUT "hello"; -] > [$ endsub $] > > instead? > it works now but if do something more complex like this: file subs.epl: [$ sub mysub $] [- print OUT "hello"; -] [$ endsub $] file index1.epl: [- Execute ({ inputfile => '

I found one way to get global subs..what do you think?

2003-08-04 Thread ckassab
Hi: I found one way to get global subs in embperl. This is not the best way to do it but it works. The best solution is that embperl handle this. The bad news with this way to get global subs is that you will need to evaluate the same code if you need it in different files loaded, the good news is

Re: I found one way to get global subs..what do you think?

2003-08-04 Thread ckassab
Hi all: Did you see the scripts related to this email? I think it could be a way to get blobal variables too for configuration files. If You could give some feedback on performance it would be very good. If somebody wants i send the files as attachment, please ask me to do it. Thank you in adv

Re: Embperl Wishes and comments

2003-08-04 Thread ckassab
Gerald: > I had started with a book about Embperl in german, but this project is > on halt at the moment for two reason: 1.) my limited time, 2.) Embperl > is to special that many people will buy such a book and the O'Reilly > don't excepted to sell much books at the moment, because they sell

EUREKA!!!!!! I found the right easy way to get global subs!!!!

2003-08-05 Thread ckassab
Hi: Reading the Perl documentation i found that if i declare muy subs like this: $globalp->{mytitle} = sub { my $title = shift; print OUT "$title"; }; The sub is assigned to the variable $globalp->{mytitle} so i can call it just doing: $globalp->{mytitle}("my title

Re: Problem with import subroutine

2003-08-10 Thread ckassab
Hi: Are you using embperl object?, if so, see the next link: http://take23.org/articles/2001/02/07/embperlobject.xml If you are NOT using embperl object, the way to solve this problem is like this: file index.epl: [$syntax EmbperlBlocks ASP $] -> this is because i like this kind of syntax [- Exe

Re: sharing data across SSI's (Executes)

2003-08-30 Thread ckassab
Be careful wiht this, it could consume memory. > On Thu, Aug 28, 2003 at 02:17:56PM -0400, Brian Burke wrote: >> [- $test = true; -] > > Unless true is a constant, you probably mean: > [- $test = 'true'; -] > >> >> >> [- Execute ('form.inc') -] > > Change this to: > [- Execute({inputfile => 'f

Re: sharing data across SSI's (Executes)

2003-09-01 Thread ckassab
Ok, I do not know about your comment here but what i want to say is that when you load your file with __PACKAGE__ it could consume memory, see part of the note below. This is part of the tip i found in embperl site:perl.apache.org/embperl: "The thing you need to be careful of here is that if one

Re: sharing data across SSI's (Executes)

2003-09-02 Thread ckassab
Hi: > > Thanks for the advice. Is there a preference to using > $req->{test} versus $udat{test} ? For global variables the natural way to do it in embperl is as Luiz Fernando told you,see below this mail. you can use this method to refference subs wiht variables too. [- $req = shit; -] [-

Problem with charset in embperl 2

2003-09-11 Thread ckassab
Hi all: i have this file: this is the title special chars in spanish: áéíóú if i save this file using UTF-8 and i get it using embperl 2 i see this: special chars in spanish: áéíóà if i save the file using ISO-8859-1 everything works fine(but what happen with thecharset?). if i change an

Re: Upload file

2003-10-08 Thread ckassab
Hi: In EplSite WorkFlow i am using this routine and works fine: use CGI; $query = new CGI; if( $file = $query->param('ImageName') ) { @thefile = split(/\\/,$file); $elements = @thefile; $thedocument = "[EMAIL PROTECTED]"; $thedocument =~ s/\s/_/g;

Re: Newbie help with SELECTS

2003-10-31 Thread ckassab
Hi: >> [- $select = 'SELECTED' -] >> > +]>TEST I use this kind of code many times in eplsite and it works. If you see your code your variable $select is not the same in both cases. Have your tried to see what is the source of your html output? > The magic is in %fdat, set the $fdat{} to the d

Re: Wiki and/or Forum

2003-11-15 Thread ckassab
Benni: You will find a forum in the next version of EplSite. EplSite 2 will be released in a few days and it works with EmPerl 1.36 and 2.0b9. Please visit us in http://www.eplsite.org in a few days. Calos Kassab > Hi! > > Is there an WikiWiki and/or an discussion-forum programmed with > EmbP

EplSite 2 has been released!!!!

2003-11-16 Thread ckassab
Hi all: EplSite 2 has been released!!! This version has many improvements, the most important are: - Now you can run EplSite safety under mod_perl, we have eliminated files loaded with __PACKAGE__. - Now everything works with embperl 1.3.4 or .6 and embperl 2.x. - Improved multilanguage instal

EplSite 2.1

2003-11-18 Thread ckassab
There was a problem with the main module that is the WorkFlow, this problem was because a last time change in the html fields generated in an automatic way. Because this we have decided to release version 2.1 that fix this problem. We are sorry for the problems it could cause. Every people that d