diff Lib/IMPL/Object/Autofill.pm @ 206:c8fe3f84feba

+IMPL::Web::Handlers::ViewSelector +IMPL::Web::Handlers::ErrorHandler *IMPL::Web::Handlers::RestController moved types mappings to ViewSelector
author sergey
date Thu, 03 May 2012 16:48:39 +0400
parents 2ffe6f661605
children 47f77e6409f7
line wrap: on
line diff
--- a/Lib/IMPL/Object/Autofill.pm	Thu May 03 01:00:02 2012 +0400
+++ b/Lib/IMPL/Object/Autofill.pm	Thu May 03 16:48:39 2012 +0400
@@ -58,19 +58,19 @@
             } $class->get_meta('IMPL::Class::PropertyInfo')) {
                 my $name = $prop_info->Name;
                 if (ref $prop_info->Mutators || !$prop_info->Implementor->isa('IMPL::Class::Property::Direct')) {
-                    $text .= "\t\$this->$name(\$fields->{$name}) if exists \$fields->{$name};\n";
+                    $text .= "    \$this->$name(\$fields->{$name}) if exists \$fields->{$name};\n";
                 } else {
                     my $fld = $prop_info->Implementor->FieldName($prop_info);
                     if ($prop_info->Mutators & prop_list) {
-                        $text .= "\t\$this->{$fld} = IMPL::Object::List->new ( ref \$fields->{$name} ? \$fields->{$name} : [\$fields->{$name}] ) if exists \$fields->{$name};\n";
+                        $text .= "    \$this->{$fld} = IMPL::Object::List->new ( ref \$fields->{$name} ? \$fields->{$name} : [\$fields->{$name}] ) if exists \$fields->{$name};\n";
                     } else {
-                        $text .= "\t\$this->{$fld} = \$fields->{$name} if exists \$fields->{$name};\n";
+                        $text .= "    \$this->{$fld} = \$fields->{$name} if exists \$fields->{$name};\n";
                     }
                 }
             }
         } else {
             # meta not supported
-            #$text .= "\t".'$this->$_($fields->{$_}) foreach keys %$fields;'."\n";
+            #$text .= "    ".'$this->$_($fields->{$_}) foreach keys %$fields;'."\n";
         }
         $text .= "}\n\\&_impl_object_autofill;";
         return eval $text;