Rolf Schaufelberger | 1 Mar 13:58 2005
Picon

Re: invalid CODE

Am Dienstag 01 März 2005 13:18 schrieb Simon Flack:
> Rolf Schaufelberger wrote:
> > Hi,
> >
> > I want to use the Maypole (Class::DBI) Classes outside Maypole (I have
> > some scripts, feeding my database)
> >
> > So, for Maypole I have my
> > BeerDB.pm and some BeerDB/Pub.om, BeerDB/Beer.pm etc
> >
> > To use it outside Maypole I've setup a
> > Beer/DBI.pm which just calls
> > Class::DBI::Loader to create the classes.
> >
> > But now I get an compile error
> >
> > invalied CODE attribute: Exported at bla/bla/BeerDB/Users.pm
> >
> > (and BeerDB/Users I have: sub authenticate : Exported {..} )
> >
> > adding "use attributes" changed nothing, reading the attributes man page
> > doesn't really help me. What's wrong ?
>
> 'Exported' isn't a built in code attribute, and must be defined in your
> BeerDB::* CDBI classes or in their  <at> ISA inheritance tree. When you use
> your Class::DBI classes in Maypole, the Exported attribute will be
> defined for you. You're getting this error since you're trying to use
> those classes outside Maypole without defining the attribute.

Yes, that was probably the last thing I've understood when reading the man 
(Continue reading)

Christopher Hicks | 1 Mar 22:33 2005
Picon

use URI in Plugin/Authentication/UserSessionCookie.pm

Among other problems I had was that MPA:USC blew up because there was no 
use URI line before the "URI->new()" code in login_user.  Sticking use URI 
in fixed this.

--

-- 
</chris>

"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Sebastian Riedel | 10 Mar 12:08 2005
Picon

Catalyst app survives slashdotting! :)

Jesse Sheidlower (the_jester in #maypole) used Catalyst for the newest 
incarnation of the Science Fiction Citation Project 
(http://www.jessesword.com/sf), which got slashdotted yesterday.

http://slashdot.org/articles/05/03/09/182214.shtml?tid=214&tid=1

The server is just a poor two year old PIII 750Mhz with twin 15k SCSI 
drives (hardware RAID1) running Apache 1.3.31, mod_perl 1.29, MySQL and 
Catalyst.

It not only survived, it served with a reasonable speed all the time! :)

--
sebastian
Sebastian Riedel | 10 Mar 12:12 2005
Picon

Re: Catalyst app survives slashdotting! :)

Sebastian Riedel wrote:

> The server is just a poor two year old PIII 750Mhz with twin 15k SCSI 
> drives (hardware RAID1) running Apache 1.3.31, mod_perl 1.29, MySQL 
> and Catalyst.

Oh yeah, and it's running on FreeBSD...

--
sebastian
Sebastian Riedel | 10 Mar 22:49 2005
Picon

Catalyst Mailinglists!

Thanks to Danijel we now have Mailinglists for Catalyst, yay!

You can subscribe at:

    http://lists.rawmode.org/mailman/listinfo/catalyst

and

    http://lists.rawmode.org/mailman/listinfo/catalyst-dev

We also now officially opened our irc channel #catalyst on irc.perl.org

Have fun!

--
sebastian
Sebastian Riedel | 20 Mar 22:05 2005
Picon

Re: Testing?

Dave Howorth wrote:

> Do any of you have a testing methodology for Maypole-based apps that 
> you're able to share?

Catalyst has a very extensive testing framework, maybe you want to 
backport it.

--
sebastian

Gmane