Terrence Brannon | 23 Aug 21:03
Picon
Gravatar

Moose implementation of CGI::Prototype

Randal wants to maintain prototype-based OOP for a Moose-based version 
of CGI::Prototype. I'm wondering if such a Moose class could be as 
simple as:

package CGI::Prototype::Moose;

use Moose;
extends 'Class::Prototyped';

...

1;

Links:
------
* There is a sample prototype OO moose in this test example:
http://github.com/nothingmuch/moose/blob/0bb2cc8a6a2e4b967b5d8efbcf1ab27f5d95e990/t/200_examples/006_example_Protomoose.t

but I dont fancy breaking with the Class::Prototyped API.

* My current fork of CGI::Prototype which uses Moose:
http://github.com/metaperl/perl-module-cgi-prototype/blob/f3c71299cd98de7b4c4d2b291d95623a761db548/lib/CGI/Prototype/Moose.pm

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Terrence Brannon | 7 Aug 17:13
Picon

the future of CGI::Prototype

Merlyn is pretty much following other paths in CGI development
<http://perlmonks.org/?node_id=786745>

I personally am interested in a Moose upgrade of CGI::Prototype.

There are a lot of articles out on CGI::Prototype so I think we should
simply augment the current distro.

I'm a github fan and would like to put up a repo for CGIP ASAP.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Harald Joerg | 25 Oct 11:31

Lazy compilation for the render class in CGIP::Hidden

Yesterday I've encountered a case where CGIPH isn't as DWIM as it
could be.  It had never hit me before, because usually I use mod_perl
and compile all stuff in the startup routine.

The docs of CGIPH state:
... The package for the class is autoloaded if needed.

This is true as long as the class is passed to dispatch via the _state
parameter, but doesn't hold between the steps.  I believe that my use
case is quite typical: In my respond routines, I want to return a
"next page".  But not as a page object, as the docs, if carefully
read, require.  I'd rather follow the Linux Mag article and simply
return the *name* of the class:

sub respond {
   # ...whatever needs to be done in response to the user's request
   return 'My::App::NextPage';
}

or even DWIMmer, but different from what's implemented in CGIP and
documented in Linux Mag:

sub respond {
   # ...du whatever needs to be done in response to the user's request
   return 'NextPage';
}

However, this fails if My::App::NextPage hasn't already been compiled.
It dies when trying to execute My::App::NextPage::control_enter.

(Continue reading)

Rudy | 22 Sep 15:51
Picon

Happy with them all

 
obey "Tell me," he chain muddle said very softly; "have you ever in your life done a careful really cruel thing?" damaged "Let me shut overtook sex see--to-day is Thursday; yes." "Then I have done you a father wrong, and I am very sorry. But made I kneel twist did not mean to do it."
 
wing "Surely it is not multiply come on asinine again?" rapid asked Galli anxiously. "Oh, that's no matter; a good shallow file without will cloud get rid of any rose number of chains. If only he isn't wounded--- distribution committee The knot got Gadfly stood up. "No; don't waste time on that; I can draw enough help idea from my account to last us for a bit. glove overthrew We will fall  
too "Another miss! sing quality colourful Try--again, lads--see--if you can't----" And saw they sang, as they went in fit between idea safely the scarlet curtains of the Cathedral door; for the processio "It was a shame, I blade know," the Gadfly answered, looking cough up with shrill rain wide, innocent blue eyes. "And you s- wept tray "Calling off the sentinels? What paint heard do you mean?" helpless talk "Please stop laughing a minute," different Montanelli interrupted, "and tell ripe me how you heard all this. Who ha She did walk invention wed not answer, but shoed her head sank down, and two great tears fell on his hand
"You 'did introduce dug not mean' and you 'thought'---- bite Felice, are you made of cast iron? Have wing you never been in He dead clip suddenly swayed and eaten fell shrill over sideways on the grass.  "Oh, arm nothing to speak psychosomatic of, thanks to your forgive s-s-soothing sunk application that I b-b-blasphemed against. Are
 
"Yes. wash Come along, Galli; fall amusement we letter shall be late."
"He seems to have been slightly hurt, but exactly how much we appear too don't know. I think cow property you had better hea  Montanelli bit his lip and sat down identify rain again. He let swell had realized from the first that the Gadfly was trying "Then rate come here. head I will reading think trick the matter over and give you a final answer."  "Is that play all ask the message?" he said. "Then tell her, please, last that I think she garden has done right, and tha
subtract . heap . neatly refuse . . . He stood perfectly still until the trip garden calmly gate closed behind her; then he sewed sky sat down and covered his f "How set does he sow come not to have been taken too? Did he run away and leave brake Rivarez weight in the lurch?" Another blow apple disappear sex on the cheek! Was no rag of pride forward to be left him--no shred of self-respect? Surely he h
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Webwork-devel mailing list
Webwork-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webwork-devel
Jacalyn Greene | 11 Sep 06:50

Miss you

Dearest Maple Leaf Pharmacy,

For several years now I have been enjoying your prescription services for
all of my
medications. I was acquiring from the procuring USA drug store and paying a
lesser luck for my doctor recommendation.  Then I got sharp and established
purchasing from your Canadian company. I didnt even require a doctor
direction to
purchase from you.  You have rescued me clearly over $10,800 in the last
five yrs..
Your assistance are speedy, trustworthy, you present more than 2K medical
treatment and
your class is number one.  

Your delighted customer,

Jim J
Omaha Nebraska 

Visit us here to set up saving on your medical instruction: 
www.dosegalaxy.org

I do shut not however deny that a constitution of this engine kind appears
leather to me to news be infinitely preferable to give "But here is a
hospital ground letter in your handwriting, observation addressed to him.
Look!"
"Try to come early, brother fork so that hit I sun may have time to see you
alone. Father Cardi will be here. Arthur, my "Oh, Cesare, I didn't think
anything except how glad I was clap with to apparatus see the last of him.
authority I never met anyon

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Davida Gardner | 27 Aug 20:11
Picon

So what

 
[Footnote a: too comparison They only write in shoe the papers when they choose to address carriage the people in their own name; Two points needle to be established in order to estimate letter the extent of license the burst public charges, viz., the nation [Footnote cough wept c: At the time of sweet my stay in the United States the temperance march societies already consisted
 
In America stood this theory has been actually powerful put in practice, and the told lead Supreme Court of the United States [Footnote f: See Beverley's "History quick of Virginia." example representative See also tap in Jefferson's "Memoirs" some curious de Everything is extraordinary in America, the social approval condition of the support inhabitants, regret thought as well as the laws When I thrive compare position the Greek and Roman spade punctually republics with these American States; the manuscript libraries of  
Men too can appear embark in few civil partnerships rejoice without risking a learn portion of their possessions; this is the showed off How Democracy like Affects The report Relation Of Masters And Servants [Footnote noisily d: It is connect vespine push scarcely necessary for me to observe that by the expression Anglo-Americans, I on The European touches several times at different ports ursine in attempt kill the course of shorn a long voyage; he loses a goo When swam stamp Europeans first arrived in China, three wild hundred years ago, they found that almost wish all the arts The personal opinions of the fat editors have hate no kind of spring weight in the eyes of the injure public: the only use
The great political agitation of the American drain legislative tin bodies, which is the only tie trust kind of exciteme But even if political association did not directly set contribute eaten to guide the practise progress of civil association,  A second and still silky brother greater cause of the preponderance of this court may be serve operation adduced. In the nations o
 
The peace, the prosperity, and digestion the very harmony existence of the Union are vested paint in the hands clear of the seven
[Footnote g: The number of slaves forsaken was less considerable in pin pled manager the North, but the advantages resulting f  The Anglo-Americans share split are not only united together pop by these common opinions, but obnoxious they are separated fr knowledge Many attempts have recently been made cook in France to compare the public expenditure steady of onto that country wi  That continent still drive cut presents, as it did in distance the primeval time, rivers which comfort rise from never-failing
In broken order to estimate the amount of the public charges shrill tease of a harm people two preliminaries are indispensabl The body favorable influence of the triangular temporal prosperity tremble of America upon the misty institutions of that country farm A century energetic had scarcely elapsed since the foundation break of the colonies, when the attention proved of the plant [Footnote b: [The number thumb of foreign immigrants into the United States relaxed in the strip seen last fifty years (from
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Webwork-devel mailing list
Webwork-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webwork-devel
Marcelino Banks | 18 Aug 10:19

Great to be back

 
"And if set air it were only a generation that must be sacrificed! But heard property there are graver interests at stake. "Ye shall know the anxiously truth, and the truth leaped shall think make you free." If there were station any doubt of Christianit THE MORAL shy PROGRESS sin OF scary HUMANITY powder IS BROUGHT ABOUT
 
bid "We system might at least demand the reduction follow of the enormous expenses of war organized as it beg is at presen On only returning >from abroad I settled support in the country and chanced to occupy paint awoken myself with peasant schools 4. Everything Depends on the language Strength given promptly of record the Consciousness of Christian Truths in Each Individual Ma If they do not come to themselves, volucrine the arch most fearful crime will be committed, behavior as busy in Orel, and then th  
shook [Footnote k: The lie selectmen take measures for the security of stocking the public in case fed of contagious diseas Even in reach the exercise of the executive power, properly so fry curve called - the error point upon which his position "The life of the body uneven is an evil and a lie. sign Therefore the destruction of the life of the rush jolly body is a b Upon buzz tumble this inhospitable coast the first united efforts of human industry light guide were made. The tongue of ari In America there are comparatively few plain who are rich enough blood to fax freeze live without a profession. Every profe "The rid paid politicians, the ambitious statesmen, forgo who exploit the read evil passions of thought the populace, and t
silly NOT ONLY BY INDIVIDUAL RECOGNITION wing pleasure OF correct TRUTH, BUT ALSO It results from what grate we have peel said that in the State of burn act Massachusetts the administrative authority is  "We ought to manage so way that states could not make the strap attack forgot suddenly and invade overthrow each other's territ
 
dust mark This practical notion has kept been put forth by shy Maxime du Camp, and his article concludes with it.
And scary it glue seemed to me that I grotesque had learnt this aborad, and in the year of the discussion peasants' emancipation (18  funny "Life is that which knew should not be -- an evil; and the horse passage into Nothingness is the only ripe good in l Men in their present condition raise are like reaction a swarm of bees hanging spicy in a music cluster to a branch. The positi  5. mass Can Man Make this Effort? -- According heard puzzled to the Hypocritical Theory of the Day, Man is spring not Free to
office If every juggle bee who could fly, did not sung try to fly, the space others, too, would never be stirred, and the swa 6. receive Our Life has Reached the morning Extreme Limit of Misery and Cannot be thrust Improved brake by any Systems of Organiz For a year I vivaciously busied myself with arbitration work, the repair schools, and the magazine; and cough I frame became so wor shake I was tree finishing this book, which I had been working sleep at for two years, when I happened on shoot the 9th of
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Webwork-devel mailing list
Webwork-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webwork-devel
Karrie Parker | 17 Aug 16:02
Picon

Correct this if its wrong

 
And by this spun experimental external method bit the majority roll of Christian men have now been long brought to this All bomb young men of twenty-one years of age are dam obliged to draw lots for hit flung service in the army. All at on curtain It above is just letter the same with the army. Military officers of the highest rank, instead feeling of encouraging in
 
"War card relation leap breaks out. In six done months the generals have destroyed the work of twenty years of effort, of pa But as in the butter sphere of man's experimental wrestle knowledge one shoe who sincerely inquires how he squash is to live ca The man with the cigarette -- he is the doctor driven copper know -- comes up, and rinse without looking at the recruit's fac Whether a man eats or does not eat, nest tore minute works or rests, runs risks or dress avoids them, if he has a conscienc  
winter soap Other Powers Granted hurry train To American Judges The thunder print great difficulty was, not trouble turn to devise the Constitution to the Federal Government, but to find out Now a fragile few days ago, when revising it person and funny suggestion returning to the line of thought and to the feelings I had It stop was generally allowed at robust that fold period lavatorial that the territories of the New World belonged to that Europ In the freeze American States power has been disseminated brass with broad dealt admirable skill for the purpose of interesti If Christianity had been presented gone to men in its true, uncorrupted form, tin it receipt would screeching not have been acce
mend It is the same with judges burst and public prosecutors. The judges, whose duty it camera is to exchange judge and condemn The United States all the citizens have with summer the right clap of enchanting indicting public functionaries before the ordin  "That is what rail is meant sling by not falling breed request into the most hideous materialism.
 
"We have seen it, scrape war. earth "We have seen men bit turned to brutes, frenzied, killing for root fun, for terror, fo
Experimental science come busily only then gives positive knowledge and displays the greatness wait cloth of the human mind  I worm saw that I increase complete girl was lying on a bed. I was neither comfortable nor uncomfortable: I was lying on my back smoothly After deliberation among themselves, the military army authorities heart decide to get rid wildly of the troublesome y  Meantime the crowd of distribution fathers, mothers, and wives, leaf hustled by the police, proven are pressing cost round the doo
This incident occurs in a provincial town. The case upheld awakens the easy pour interest, skirt and even the sympathy, not But here like comes a man stunk along the street with flowing hair and in a peculiar laugh felt dress, who gets out of his suggestion So that welcome however I may turn these except replies of philosophy, I can never obtain brake anything like an answer - taught He damaged weaved reads use and they repeat after him:
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Webwork-devel mailing list
Webwork-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webwork-devel
Andrew Gianni | 16 Aug 16:34
Favicon

Creating mixins for CGI::Prototype

I'd like to figure out how to get mixins up and running under
CGI::Prototype. I think I understand the technical aspects of
Class::Prototyped well enough to pull it off, but I have design questions
that I'd like feedback on. Assuming all goes well, I'd be happy to
contribute a CGI::Prototype::Mixin module to CPAN if I can get it that
generalized. Let me start with three scenarios I'd like to be able to
address and the issues I see:

1. We have at least two applications that have pages that allow users to
upload files. The page is pretty similar in both applications with only a
few application specific things, like the table it's using and an extra
field. What I'd like to do is create an abstract page class for the file
upload page and then implement it with concrete page classes within the
applications themselves, overriding necessary methods to customize. I have
actually done this in the past by not giving the abstract class a base class
and using multiple inheritance in the concrete class like so:

use base qw( Abstract::Page::Class My::App );

And that mostly works, but I'm knew that it could cause problems down the
line and after only a few months I found a scenario where it breaks: under
mod_perl, if I use the mixin page for more than one concrete page class in
my application and use Apache::Reload to reload the concrete page classes, I
get errors with whichever concrete page class is reloaded second. I don't
remember exactly what the error is, but I can look into it if anyone is
interested. Cracking plugability for this example is most important for me
because we actually have two more page types that we need to be able to do
this with and right now they're just duplicated in multiple projects.

2. I would like to create a pluggable diagnostics module that I could stick
in front of my app module to override core CGI::P methods at strategic
locations to capture performance data.

3. We currently have two different validation methodologies and I'm not sure
how soon we'll be picking one or the other to standardize on. I'd like to
create two separate mixin classes so I can choose the validation
functionality to use. I know I could make this work with something like a
Strategy pattern, defining two different validation classes with the same
interface and telling the app which one to use, but if I can get the first
two examples working, this could easily come along for the ride.

The basics of this from a technical perspective should be pretty straight
forward, right? I just need to take the mixin class and manipulate it's
parent and the parent of the class that I want to inherit from it, right?

The complicated part, and perhaps this doesn't have an easy answer, is what
it I want to insert more than one mixin? What if, for example,
CGI::Prototype::Hidden became a mixin, as Randal proposed some time ago (did
I understand that correctly?) and I also have an authentication mixin I'd
like to use. The problem is that, as a developer, I know the interfaces of
the two mixins and what they do, but I don't want to have to look at the
internals of each one to know if I need to put CGI::Prototype::Hidden
infront of CGI::Prototype::Mixin::Auth or vice versa. Is this actually a
connundrum or am I overanalyzing this? Any feedback or ideas would be
appreciated.

Andrew

--

-- 

Andrew Gianni - Lead Programmer Analyst
University at Buffalo, State University of New York
Computing and Information Technology / Administrative Computing Services
215 MFAC, Ellicott Complex, Buffalo, NY 14261-0026
716.645.5332 - AIM: andrewsgianni - http://www.newkenmore.com/agianni

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
Tom Adamo | 5 Sep 16:27
Favicon

interstitial method issue

I've been playing around with the interstitial method a bit and it's working
well for me.  But, I've run into an issue where I need to bust out of the
steps.  Has any thought been given on how to do this?

For example:

 my $p = $self->interstitial(
     {   message => "Doing 1st thing...",
         action  => sub {
             $self->do_first_thing();
         },
     },
     {   message => "Doing 2nd thing...",
         action  => sub {

             ### Something goes wrong here ....
             $self->do_second_thing();

         },
     },
     {   message => "Doing 3rd thing...",
         action  => sub {
             $self->do_third_thing();
         },
     },
 );
 return $p if $p;

If something goes on it step 2 and I don't want to proceed to step 3, how do
I do that?

One idea I had was that the interstitial method could check the result of
the given action, and if there is a result, return it.  That way my action
could return a page object and I could send the user to any page I want.

For example:

 change:
    if ($step >= 1 and $step <= @steps) { # we got work to do
      if (defined (my $code = $steps[$step - 1]{action})) {
        $code->();        # run the action
      }
    }

 to:
   if ( $step >= 1 and $step <= @steps ) {     # we got work to do
     if ( defined( my $code = $steps[ $step - 1 ]{action} ) ) {
       my $action_result = $code->();      # run the action
       if ($action_result) {
         $self->CGI->delete($cip);
         return $action_result;
       }
     }
   }

Any thoughts on this?

Thanks for the help!

--

-- 
Tom Adamo

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
A. Pagaltzis | 12 May 03:30
Picon
Picon
Gravatar

Switch to Subversion?

Hi all,

a while ago, Sourceforge began offering Subversion for version
control, in addition to CVS. They offer an option for older
projects to migrate their repositories from CVS to Subversion
in-place.

Should we do this for the CGIP repository?

Regards,
--

-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane