[jifty-devel] Fail to specify "length is 55" in Jifty Actions' schema definition

Agent Zhang agentzh at gmail.com
Sun Nov 26 00:20:50 EST 2006


Hello,

I'm getting compilation errors when I try to specify the Action schema
as follows:

# header omitted here...

package Qooqle::Action::Search;
use base qw/Jifty::Action/;

use Jifty::Param::Schema;
use Jifty::Action schema {

param search_keys =>
    label is '',
    length is 55;

param wholeword_only =>
    type  is 'checkbox',
    label is 'Wholeword only',
    default is 0;

};

Jifty issued the following warnings:

WARN - Number found where operator expected at
E:\Qooqle\blib\lib/Qooqle/Action/Search.pm line 18, near "is 55"
WARN -  (Do you need to predeclare is?)
WARN - Couldn't require Qooqle::Action::Search : syntax error at
E:\Qooqle\blib\lib/Qooqle/Action/Search.pm line 18, near "is 55"

Here's my machine's configuration:

WinXP, ActivePerl 5.8.7, Jifty 0.61123_01 (from CPAN), Jifty::DBI 0.29
(from CPAN). Tricky Jifty dependencies were installed from Jifty's
tcool ppm repos.

Am I doing something wrong here? Thanks in advance. :)

Cheers,
Agent


More information about the jifty-devel mailing list