Hi,
We have a script that generates our classes for us, using the Loader
and a bit of custom code to tweak the generated class to our needs.
It goes something like this:
my $loader = Rose::DB::Object::Loader->new(...);
for my $class ($loader->make_classes) {
my $meta = $class->meta;
> "Ask" == Ask Bjørn Hansen <[EMAIL PROTECTED]> writes:
Ask> Bug, missing feature or am I doing something wrong? :-)
If I recall correctly what John IM'ed me one day, once ->make_classes is
called, the meta data has already been "used" to create everything else that
is interesting. You'll n
Rose::DateTime v0.531 will fail to initialize with the latest versions of
DateTime (v0.35) and DateTime::Locale (v0.31). I've modified a bit
Rose/DateTime/Util.pm:
--- Rose/DateTime/Util.pm2006-10-03 16:52:41.0 +0300
+++ ./lib/Ro
On 23 Oct 2006 02:59:30, Randal L. Schwartz wrote:
> If I recall correctly what John IM'ed me one day, once ->make_classes is
> called, the meta data has already been "used" to create everything else that
> is interesting. You'll need to "initialize" again the parts of anything you
> change that
Applied, thanks.
-John
-
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.
On 10/23/06, John Siracusa <[EMAIL PROTECTED]> wrote:
> Applied, thanks.
Also released to CPAN as 0.532.
-John
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integ
this might require reading all the way through...
I'm wishing for something like
!$obj->not_found
perhaps
$obj->found ?
Rose Docs:
not_found
Returns true if the previous call to load failed because a row in
the database table with the specified primary or unique
On 10/23/06 11:31 PM, Jonathan wrote:
> I'm wishing for something like
> !$obj->not_found
> perhaps
> $obj->found ?
Er, so why not just add this to your common object base class?
sub found { !shift->not_found }
Any I missing something here?
-John
On Oct 23, 2006, at 11:41 PM, John Siracusa wrote:
> Er, so why not just add this to your common object base class?
>
> sub found { !shift->not_found }
>
> Any I missing something here?
a) I wanted to make sure that not_found did what i thought it did
( according to source , it seems to )
b)
On 10/23/06 11:51 PM, Jonathan wrote:
> a) I wanted to make sure that not_found did what i thought it did
> ( according to source , it seems to )
> b) i have it doing that already. it's just weird having a double
> negative... it seems odd that found isn't in there already
The success case is cle
the section that should probably be:
init_with_yaml YAML
currently reads
init_with_json YAML
i'd imagine they're functionally equivalent... but there seems to be
init_with_json and init_with_yaml methods
-
11 matches
Mail list logo