/[cvs]/nfo/perl/libs/Data/Storage/Handler/Tangram.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Storage/Handler/Tangram.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.45 by jonen, Sun Dec 14 01:48:36 2003 UTC revision 1.47 by jonen, Tue Aug 31 14:26:08 2004 UTC
# Line 3  Line 3 
3  #  $Id$  #  $Id$
4  #  #
5  #  $Log$  #  $Log$
6    #  Revision 1.47  2004/08/31 14:26:08  jonen
7    #  updated
8    #
9    #  Revision 1.46  2004/05/06 12:54:34  jonen
10    #  + bugfix related to multiple select-'filter'
11    #
12  #  Revision 1.45  2003/12/14 01:48:36  jonen  #  Revision 1.45  2003/12/14 01:48:36  jonen
13  #  small HACK at _insertChildNode: some special Childnodes should not be created because existing objects have to be selected!  #  small HACK at _insertChildNode: some special Childnodes should not be created because existing objects have to be selected!
14  #  TODO: make this more generic, e.g. implement a special flag at Schema  #  TODO: make this more generic, e.g. implement a special flag at Schema
# Line 529  sub getListFiltered { Line 535  sub getListFiltered {
535    my @results;    my @results;
536    $logger->debug( __PACKAGE__ . "->getListFiltered( nodename => '" . $in->{nodename} . "' )" );    $logger->debug( __PACKAGE__ . "->getListFiltered( nodename => '" . $in->{nodename} . "' )" );
537    
538    #print Dumper($filters);    #print "Filter_payload: " . Dumper($in->{filters}) . "\n";
539    
540    # 1. "Remote Object Handle" - get set of objects from odbms by object name    # 1. "Remote Object Handle" - get set of objects from odbms by object name
541    my $remote = $self->{_COREHANDLE}->remote($in->{nodename});    my $remote = $self->{_COREHANDLE}->remote($in->{nodename});
# Line 585  sub getListFiltered { Line 591  sub getListFiltered {
591        $orm_filter_tmp = $left->$op($right);        $orm_filter_tmp = $left->$op($right);
592      }      }
593    
594      if (not $orm_filter) {      if (!ref($orm_filter)) {
595        $orm_filter = $orm_filter_tmp;        $orm_filter = $orm_filter_tmp;
596      } else {      } else {
597        $orm_filter = $orm_filter->and($orm_filter_tmp);        $orm_filter = $orm_filter->and($orm_filter_tmp);
# Line 594  sub getListFiltered { Line 600  sub getListFiltered {
600    }    }
601    
602    $orm_query->{filter} = $orm_filter;    $orm_query->{filter} = $orm_filter;
603      
604      # debug point:
605      #print "Filter: " . Dumper($orm_query->{filter}) . "\n";
606    
607    # was:    # was:
608    
# Line 835  sub sendQuery { Line 844  sub sendQuery {
844        my $object = $cursor->getNextEntry();        my $object = $cursor->getNextEntry();
845    
846        $self->erase($object);        $self->erase($object);
847          $self->unload($object);
848    
849      } elsif ($crud eq 'CREATE') {      } elsif ($crud eq 'CREATE') {
850                
# Line 1029  sub createNode { Line 1039  sub createNode {
1039          # because they maybe exists and should only be SETTED not CREATED!          # because they maybe exists and should only be SETTED not CREATED!
1040          # TODO: Create a flag at the scheme for that reason!          # TODO: Create a flag at the scheme for that reason!
1041          #   (e.g child_node => 1 for child-nodes only like e.g. UserData)          #   (e.g child_node => 1 for child-nodes only like e.g. UserData)
1042          if($attr_options->{$_}->{class} eq 'NetPerson' || $attr_options->{$_}->{class} eq 'Event') {          if($attr_options->{$_}->{class} eq 'NetPerson' || $attr_options->{$_}->{class} eq 'Event' || $attr_options->{$_}->{class} eq 'BetRule') {
1043            #$obj->{$_} = undef();            #$obj->{$_} = undef();
1044          } else {          } else {
1045            $obj->{$_} = $self->createNode($attr_options->{$_}->{class});            $obj->{$_} = $self->createNode($attr_options->{$_}->{class});

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.47

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed