Hi John,

Thanks for the sample code.

sub relationships_by_column
{
  my($self, $col_name) = @_;

  my @rels;

  foreach my $rel ($self->relationships)
  {
    next  unless($rel->can('column_map');

Does this mean that not all relationships define a column_map? What would a relationship without a column map do?

    my $col_map = $rel->column_map or next;

Does this mean that not all relationships with a column_map method return a column map?

IMHO, it would be nice if th API didn't require checking the return value.

But my question is, what are you doing that has to differ between columns
that are included as part of a relationship column map and those that
aren't?  IOW, what are "do one thing" and "do another thing" in your
example?

Generating HTML forms, of course!

Really, I'm porting AsForm and FromCGI from Class::DBI. Does something similar already exist? I see Rose::HTML::Objects and Rose::DB::Object which implies some things, but I don't see the equivalent of Rose::DB::Object::AsForm.

I started with a straight port to see what it looks like - about the same frankly, now I want to try refactoring to see if more can be done.

Aaron


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to