clean out pre-widget stuff
matthewt [Sun, 3 Feb 2008 20:27:18 +0000 (20:27 +0000)]
57 files changed:
lab/Reaction/Class.pm [deleted file]
lib/Reaction/UI/Renderer/XHTML.pm [deleted file]
root/bar_form [deleted file]
root/bar_list [deleted file]
root/base/actionform [deleted file]
root/base/button [deleted file]
root/base/cancelbtn [deleted file]
root/base/checkbox [deleted file]
root/base/checkbox_group [deleted file]
root/base/component [deleted file]
root/base/displayfield/list [deleted file]
root/base/displayfield/string [deleted file]
root/base/displayfield/text [deleted file]
root/base/displayfield/value_string [deleted file]
root/base/displayfield_base [deleted file]
root/base/dt_textfield [deleted file]
root/base/dual_select_group [deleted file]
root/base/error_404 [deleted file]
root/base/field_base [deleted file]
root/base/fieldset [deleted file]
root/base/file [deleted file]
root/base/footer [deleted file]
root/base/form_base [deleted file]
root/base/header [deleted file]
root/base/hidden [deleted file]
root/base/hiddenarray [deleted file]
root/base/image [deleted file]
root/base/label [deleted file]
root/base/listview [deleted file]
root/base/listview_base [deleted file]
root/base/objectview [deleted file]
root/base/pager [deleted file]
root/base/password [deleted file]
root/base/radio [deleted file]
root/base/radio_group [deleted file]
root/base/resetbtn [deleted file]
root/base/search_base [deleted file]
root/base/select [deleted file]
root/base/select_group [deleted file]
root/base/submitbtn [deleted file]
root/base/textarea [deleted file]
root/base/textfield [deleted file]
root/base/timerange [deleted file]
root/base/timerangecollection [deleted file]
root/base/view_base [deleted file]
root/base/xhtml [deleted file]
root/favicon.ico [deleted file]
root/index [deleted file]
root/static/images/btn_120x50_built.png [deleted file]
root/static/images/btn_120x50_built_shadow.png [deleted file]
root/static/images/btn_120x50_powered.png [deleted file]
root/static/images/btn_120x50_powered_shadow.png [deleted file]
root/static/images/btn_88x31_built.png [deleted file]
root/static/images/btn_88x31_built_shadow.png [deleted file]
root/static/images/btn_88x31_powered.png [deleted file]
root/static/images/btn_88x31_powered_shadow.png [deleted file]
root/static/images/catalyst_logo.png [deleted file]

diff --git a/lab/Reaction/Class.pm b/lab/Reaction/Class.pm
deleted file mode 100644 (file)
index f961baf..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-=head1 NAME
-
-Reaction::Class - Reaction class declaration syntax
-
-=head1 SYNOPSIS
-
-In My/Person.pm:
-
-=for example My::Person setup
-
-  package My::Person;
-
-  use Reaction::Class;
-  use Reaction::Types::Core qw/Str/;
-
-  class Person which {
-
-    has 'name' => Str;
-
-    has 'nickname' => optional Str;
-
-    implements 'preferred_name' which {
-      accepts nothing;
-      returns Str;
-      guarantees when { $self->has_nickname } returns { $self->nickname };
-      guarantees when { !$self->has_nickname } returns { $self->name };
-    } with {
-      return ($self->has_nickname ? $self->nickname : $self->name);
-    };
-
-  };
-
-=for example My::Person tests
-
-=begin tests
-
-my $meta = My::Person->meta;
-
-isa_ok($meta, 'Reaction::Meta::Class');
-
-my $attr_map = $meta->get_attribute_map;
-
-foreach my $attr_name (qw/name nickname/) {
-  isa_ok($attr_map->{$attr_name}, 'Reaction::Meta::Attribute');
-}
-
-ok($attr_map->{name}->is_required, 'name is required');
-ok(!$attr_map->{nickname}->is_required, 'nickname is optional');
-
-=end tests
-
-In your code -
-
-=for example My::Person usage
-
-  my $jim = My::Person->new(name => 'Jim');
-
-  print $jim->name."\n"; # prints "Jim\n"
-
-  print $jim->preferred_name."\n"; # prints "Jim\n"
-
-  $jim->name('James'); # returns 'James'
-
-  $jim->nickname('Jim'); # returns 'Jim'
-
-  print $jim->preferred_name."\n"; # prints "Jim\n"
-
-  $jim->preferred_name('foo'); # throws Reaction::Exception::MethodArgumentException
-
-=for example My::Person end
-
-=head1 DESCRIPTION
-
-=head1 AUTHORS
-
-See L<Reaction::Class> for authors.
-
-=head1 LICENSE
-
-See L<Reaction::Class> for the license.
-
-=cut
diff --git a/lib/Reaction/UI/Renderer/XHTML.pm b/lib/Reaction/UI/Renderer/XHTML.pm
deleted file mode 100644 (file)
index af98521..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-package Reaction::UI::Renderer::XHTML;
-
-use strict;
-use base qw/Catalyst::View::TT Reaction::Object/;
-use Reaction::Class;
-
-use HTML::Entities;
-
-__PACKAGE__->config({
-  CATALYST_VAR => 'ctx',
-  RECURSION => 1,
-});
-
-sub render_window {
-  my ($self, $window) = @_;
-  my $root_vp = $window->focus_stack->vp_head;
-  confess "Can't flush view for window with empty focus stack"
-    unless defined($root_vp);
-  $self->render_viewport($window, $root_vp);
-}
-
-sub render_viewport {
-  my ($self, $window, $vp) = @_;
-  my $ctx = $window->ctx;
-  my %args = (
-    self => $vp,
-    ctx => $ctx,
-    window => $window,
-    type => $vp->layout
-  );
-  unless (length $args{type}) {
-    my $type = (split('::', ref($vp)))[-1];
-    $args{type} = lc($type);
-  }
-  return $self->render($ctx, 'component', \%args);
-}
-
-around 'render' => sub {
-  my $super = shift;
-  my ($self,$args) = @_[0,3];
-  local $self->template->{SERVICE}{CONTEXT}{BLKSTACK};
-  local $self->template->{SERVICE}{CONTEXT}{BLOCKS};
-  $args->{process_attrs} = \&process_attrs;
-  return $super->(@_);
-};
-
-sub process_attrs{
-    my $attrs = shift;
-    return $attrs unless ref $attrs eq 'HASH';
-
-    my @processed_attrs;
-    while( my($k,$v) = each(%$attrs) ){
-        my $enc_v = $v;
-        next if ($enc_v eq "");
-        if ($k eq 'class' && ref $v eq 'ARRAY'){
-            $enc_v = join ' ', map { encode_entities($_) } @$v;
-        } elsif ($k eq 'style' && ref $v eq 'HASH'){
-            $enc_v = join '; ', map{ "${_}: ".encode_entities($v->{$_}) } keys %{$v};
-        }
-        push(@processed_attrs, "${k}=\"${enc_v}\"");
-    }
-
-    return ' '.join ' ', @processed_attrs if (scalar(@processed_attrs) > 0);
-    return;
-}
-
-1;
-
-=head1 NAME
-
-Reaction::UI::Renderer::XHTML
-
-=head1 DESCRIPTION
-
-=head1 METHODS
-
-=head2 render
-
-=head2 process_attrs
-
-=head1 AUTHORS
-
-See L<Reaction::Class> for authors.
-
-=head1 LICENSE
-
-See L<Reaction::Class> for the license.
-
-=cut
diff --git a/root/bar_form b/root/bar_form
deleted file mode 100644 (file)
index 1eece03..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-[%
-
-attrs.enctype = 'multipart/form-data';
-PROCESS form_base;
-
-%]
diff --git a/root/bar_list b/root/bar_list
deleted file mode 100644 (file)
index ce57b74..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-[%
-
-PROCESS listview;
-
-table_end_block = 'bar_list_table_end';
-
-BLOCK bar_list_table_end;
-
-  "\n</table>\n";
-  include( 'create_link_block' );
-  "\n<br />\n";
-
-  enctype = attrs.enctype || 'application/x-www-form-urlencoded';
-  %]<form action="[% connect_form %]" method="post" enctype="[% enctype %]"[%
-  attrs.enctype = ''; process_attrs(self.attrs); '>';
-  INCLUDE component type = 'search_base' attrs.value = 'xxx';
-  "\n</form>";
-
-END;
-
-%]
diff --git a/root/base/actionform b/root/base/actionform
deleted file mode 100644 (file)
index ab5755b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[% PROCESS form_base %]
diff --git a/root/base/button b/root/base/button
deleted file mode 100644 (file)
index 5e09c4d..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-[%
-
-PROCESS field_base;
-
-main_block = 'button_control';
-
-BLOCK button_control;
-
-  %]<input type="[% button_type || 'submit' %]" [%
-  IF attrs.value == '';
-    'value="'; loc(self.value) | html; '" ';
-  END;
-  connect_control(self, self.event);
-  process_attrs(attrs) %] />[%
-#  IF self.img_src;
-#    INCLUDE component type = 'image';
-#  ELSE;
-
-END;
-
-%]
diff --git a/root/base/cancelbtn b/root/base/cancelbtn
deleted file mode 100644 (file)
index a9d8af0..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[%
-
-PROCESS button;
-
-control_block = 'cancelbtn_control';
-
-BLOCK cancelbtn_control;
-
-  INCLUDE button_control attrs.value = 'Cancel' self.event = 'close';
-
-END;
-
-%]
diff --git a/root/base/checkbox b/root/base/checkbox
deleted file mode 100644 (file)
index dd80d86..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'checkbox_control';
-
-BLOCK checkbox_control;
-
-  %]<input type="checkbox" id="[% id_attr %]" [%
-    connect_control(self, 'value');
-    process_attrs(attrs);
-    IF self.value;
-      ' checked="checked"';
-    END;
-    UNLESS attrs.value;
-      ' value="1"';
-    END;
-  %] />[%
-
-END;
-
-%]
diff --git a/root/base/checkbox_group b/root/base/checkbox_group
deleted file mode 100644 (file)
index 52660b0..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'checkbox_group_control';
-
-BLOCK checkbox_group_control;
-
-  FOREACH v_name IN self.valid_value_names;
-    v_val = self.name_to_value_map.$v_name;
-    %]<input type="checkbox" id="[% id_attr %]" [% connect_control(self, 'value');
-    ' value="'; v_val; '"';
-    IF self.is_current_value(v_val); ' checked="checked"'; END;
-    process_attrs(attrs); ' />'; v_name; "\n";
-  END;
-
-END;
-
-%]
diff --git a/root/base/component b/root/base/component
deleted file mode 100644 (file)
index 4f455ce..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-[%-
-
-GLOBAL_DEBUG = ctx.debug;
-
-MACRO loc(text, args) BLOCK;
-
-  ctx.localize(text, args);
-
-END;
-
-MACRO include(name, args) BLOCK;
-
-  filename = ${name};
-
-  IF filename;
-    IF GLOBAL_DEBUG;
-      '<!-- Start block '; name | html; ' calling '; filename | html; " -->\n";
-    END;
-    INCLUDE $filename args;
-    IF GLOBAL_DEBUG;
-      '<!-- End block '; name | html; " -->\n";
-    END;
-  ELSE;
-    error = 'Chosen INCLUDE ' _ name _ ' is empty';
-    THROW file error;
-  END;
-
-END;
-
-MACRO connect_form(vp, event) BLOCK;
-
-  '';
-
-END;
-
-MACRO connect_control(vp, event, value) BLOCK;
-
-  'name="'; vp.event_id_for(event); '"';
-
-END;
-
-MACRO connect_href(vp, events) BLOCK;
-
-  FOREACH event = events.keys;
-    evt_args.${vp.event_id_for(event)} = events.$event;
-  END;
-  'href="'; ctx.req.uri_with(evt_args); '"';
-
-END;
-
-UNLESS type;
-  errmsg = "type is empty rendering " _ self;
-  THROW file errmsg;
-END;
-
-PROCESS $type;
-
-IF GLOBAL_DEBUG; '<!-- Rendering component '; type | html; " -->\n"; END;
-
-include( 'main_block' );
-
-IF GLOBAL_DEBUG; '<!-- End component '; type | html; " -->\n"; END;
-
--%]
diff --git a/root/base/displayfield/list b/root/base/displayfield/list
deleted file mode 100644 (file)
index 2dcf066..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[%
-
-PROCESS displayfield_base;
-
-control_block = 'list_control';
-
-BLOCK list_control;
-
-  "<ul>\n";
-  FOREACH v_val IN self.value_names;
-    '  <li>'; v_val | html; "</li>\n";
-  END;
-  "</ul>\n";
-
-END;
-
-%]
diff --git a/root/base/displayfield/string b/root/base/displayfield/string
deleted file mode 100644 (file)
index 7fa3075..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[%
-
-PROCESS displayfield_base;
-
-control_block = 'string_control';
-
-BLOCK string_control;
-
-  self.value | html;
-
-END;
-
-%]
diff --git a/root/base/displayfield/text b/root/base/displayfield/text
deleted file mode 100644 (file)
index dded894..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[%
-
-PROCESS displayfield_base;
-
-control_block = 'text_control';
-
-BLOCK text_control;
-
-  self.value | html;
-
-END;
-
-%]
diff --git a/root/base/displayfield/value_string b/root/base/displayfield/value_string
deleted file mode 100644 (file)
index 1277e83..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[%
-
-PROCESS displayfield_base;
-
-control_block = 'vstring_control';
-
-BLOCK vstring_control;
-
-  self.value_string | html;
-
-END;
-
-%]
diff --git a/root/base/displayfield_base b/root/base/displayfield_base
deleted file mode 100644 (file)
index 3fdcfca..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-[%-
-
-main_block    = 'displayfield_base_field';
-
-control_block = 'displayfield_base_control';
-
-BLOCK displayfield_base_field;
-
-  IF self.label;
-    '<label>'; loc(self.label); '</label>: ';
-  END;
-
-  include( 'control_block' );
-
-END;
-
-BLOCK displayfield_base_control;
-
-  "CONTROL";
-
-END;
-
--%]
diff --git a/root/base/dt_textfield b/root/base/dt_textfield
deleted file mode 100644 (file)
index 749e3ca..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'textfield_control';
-
-BLOCK textfield_control;
-
-  attrs.maxlength = '255'; # SimpleStr requires <= 255
-  %]<input type="text" [% IF id_attr; 'id="'; id_attr; '"'; END; connect_control(self, 'value_string');
-  ' value="'; self.value_string | html; '"'; process_attrs(attrs) %] />[%
-  attrs.maxlength = '';
-
-END;
-
-%]
diff --git a/root/base/dual_select_group b/root/base/dual_select_group
deleted file mode 100644 (file)
index 1cc5243..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-[%
-
-PROCESS select_group;
-
-control_block = 'dual_select_group_control';
-
-BLOCK dual_select_group_control;
-
-  -%]</p><table[% process_attrs(attrs) %]>
-  <tr>
-    <td>
-[%- self.label = ''; self.tmp_message = self.message; self.message = '';
-  values_list_type = 'available_values';
-  INCLUDE component type = 'select_group' self.hide_selected = 1 attrs.size = 10 attrs.name = 'add_values' | indent(4);
-  attrs.name = ''; attrs.size = ''; %]
-    </td><td align="center">[%
-  INCLUDE component type = 'submitbtn' attrs.value = '>>' self.event = 'add_all_values' | indent(4);
-  '<br />';
-  INCLUDE component type = 'submitbtn' attrs.value = '>' self.event = 'do_add_values' | indent(4);
-  '<br />';
-  INCLUDE component type = 'submitbtn' attrs.value = '<' self.event = 'do_remove_values' | indent(4);
-  '<br />';
-  INCLUDE component type = 'submitbtn' attrs.value = '<<' self.event = 'remove_all_values' | indent(4); %]
-    </td><td>
-[%- attrs.value = '';
-  values_list_type = 'current_values';
-  INCLUDE component type = 'select_group' self.hide_selected = 1 attrs.size = 10 attrs.name = 'remove_values' | indent(4);
-  attrs.name = ''; attrs.size = '';
-
-  FOREACH v_val IN self.current_values;
-    v_val = self.obj_to_str(v_val);    
-    INCLUDE component type = 'hidden' self.val = v_val attrs = '' | indent(4);
-  END;
-
-#  self.message = self.tmp_message; self.tmp_message = ''; %]
-    </td>
-  </tr>[%
-  %]</table><p>[%
-
-END;
-
-%]
diff --git a/root/base/error_404 b/root/base/error_404
deleted file mode 100644 (file)
index 0177cba..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[%
-
-main_block = 'error_404_main';
-
-BLOCK error_404_main;
-
-  loc("404 Not Found");
-
-  %] <a href="[% ctx.uri_for(ctx.action.chain.0.attributes.Chained.0) %]">[%
-
-  loc("Return to root");
-
-  %]</a>[%
-
-END;
-
-%]
diff --git a/root/base/field_base b/root/base/field_base
deleted file mode 100644 (file)
index 3605a8c..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-[%-
-
-main_block    = 'field_base_field';
-
-control_block = 'field_base_control';
-
-BLOCK field_base_field;
-
-  IF self.label;
-    '<label>'; loc(self.label); '</label>: ';
-  END;
-
-  include( 'control_block' );
-
-  IF self.message;
-    "\n<span>"; loc(self.message); '</span>';
-  END;
-
-END;
-
-BLOCK field_base_control;
-
-  "CONTROL";
-
-END;
-
--%]
diff --git a/root/base/fieldset b/root/base/fieldset
deleted file mode 100644 (file)
index 7daa8be..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'fieldset_control';
-
-BLOCK fieldset_control;
-
-  %]<fieldset id="[% self.field_name | html %]"[% process_attrs(attrs) %] />[%
-  IF self.text;
-    '<legend>'; self.text; '</legend>';
-  END;
-
-# INCLUDE( 'control_block' );
-
-  %]</fieldset>[%
-
-END;
-
-%]
diff --git a/root/base/file b/root/base/file
deleted file mode 100644 (file)
index c89c397..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'fileselect_control';
-
-BLOCK fileselect_control;
-
-  %]<input type="file" [% IF id_attr; 'id="'; id_attr; '"'; END; connect_control(self, 'value');
-  # browsers ignore this for security reasons, can be uncommented for testing.
-  # ' value="'; self.value.filename | html; '"';
-  process_attrs(attrs) %] />[% 
-
-END;
-
-%]
diff --git a/root/base/footer b/root/base/footer
deleted file mode 100644 (file)
index aa00551..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-[%-
-
-#main_block = 'footer';
-
-#BLOCK footer;
-
-  %]<p>FOOTER</p>
-  [%
-
-#END;
-
--%]
diff --git a/root/base/form_base b/root/base/form_base
deleted file mode 100644 (file)
index cb988ec..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-[%
-
-main_block    = 'form_base_control';
-
-control_block = 'form_base_control';
-
-header_block  = 'form_base_header';
-fields_block  = 'form_base_fields';
-button_block  = 'form_base_buttons';
-footer_block  = 'form_base_footer';
-
-form_id = 0;
-
-BLOCK form_base_control;
-
-  form_id = form_id + 1;
-
-  enctype = attrs.enctype || 'multipart/form-data';
-  %]<form action="[% attrs.action || connect_form %]" method="post" id="element_[% form_id %]" enctype="[% enctype %]"[%
-  IF attrs.name != ""; ' name="'; attrs.name; attrs.name = ''; '"'; END;
-  attrs.enctype = ''; attrs.action = '';
-  process_attrs(self.attrs) %]>[% "\n";
-
-  include( 'header_block' );
-  include( 'fields_block' );
-
-  id_attr = ''; '<p>';
-  include( 'button_block' );
-  include( 'footer_block' );
-
-  "</p>\n</form>";
-
-END;
-
-BLOCK form_base_header;
-
-  '';
-
-END;
-
-BLOCK form_base_fields;
-
-  FOREACH f_name = self.field_names;
-    field = self.fields.$f_name;
-    id    = form_id _ '_' _ loop.count;
-    '<p>'; window.render_viewport(field); "</p>\n";
-  END;
-
-END;
-
-BLOCK form_base_buttons;
-
-  allowed_events = self.accept_events;
-
-  IF allowed_events.grep('^ok$').size;
-    INCLUDE component type = 'submitbtn' self.value = 'ok' self.event = 'ok' self.label = self.ok_label;
-  END;
-
-  IF (self.field_names.size != 0) && (allowed_events.grep('^apply$').size);
-    INCLUDE component type = 'submitbtn' self.value = 'apply' self.event = 'apply' self.label = self.apply_label;
-  END;
-
-  IF allowed_events.grep('^close$').size;
-    INCLUDE component type = 'cancelbtn' self.value = 'cancel' self.event = 'close' self.label = self.cancel_label;
-  END;
-
-END;
-
-BLOCK form_base_footer;
-
-  IF self.message;
-    ' <span>'; self.message; '</span>';
-  END;
-
-END;
-
-%]
diff --git a/root/base/header b/root/base/header
deleted file mode 100644 (file)
index 933457f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-[%-
-
-#main_block = 'header_block';
-
-#BLOCK header_block;
-
-  %]<p>HEADER</p>[%
-
-#END;
-
--%]
diff --git a/root/base/hidden b/root/base/hidden
deleted file mode 100644 (file)
index 6b5f6c4..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'hidden_control';
-
-BLOCK hidden_control;
-
-  name = attrs.name || 'value'; attrs.name = '';
-  %]<input type="hidden" [% IF id_attr; 'id="'; id_attr; '"'; END; connect_control(self, name);
-  ' value="'; self.val; '"'; process_attrs(attrs) %] />[%
-
-END;
-
-%]
diff --git a/root/base/hiddenarray b/root/base/hiddenarray
deleted file mode 100644 (file)
index 8168ad3..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'hiddenarray_control';
-
-BLOCK hiddenarray_control;
-
-  name = attrs.name || 'value'; attrs.name = '';
-  FOREACH val IN self.value;
-    %]<input type="hidden" [% IF id_attr; 'id="'; id_attr; '"'; END; connect_control(self, name);
-    ' value="'; val; '"'; process_attrs(attrs) %] />[% "\n";
-  END;
-
-END;
-
-%]
diff --git a/root/base/image b/root/base/image
deleted file mode 100644 (file)
index 36cf927..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-[%
-
-main_block = 'image_base';
-
-BLOCK image_base;
-
-  %]<img src="[% self.img_src | html %]" alt="[% self.text | html %]"[% process_attrs(attrs) %] />[%
-
-END;
-
-%]
diff --git a/root/base/label b/root/base/label
deleted file mode 100644 (file)
index e380ba0..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'label_control';
-
-BLOCK label_control;
-
-  %]<label id="[% self.field_name | html %]" [% connect_control(self, 'value') %] value="[% self.field_value | html %]" />[%
-
-#  INCLUDE( 'control_block' );
-
-  '</label>';
-
-END;
-
-%]
diff --git a/root/base/listview b/root/base/listview
deleted file mode 100644 (file)
index 382630d..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-[% 
-
-PROCESS listview_base;
-
-header_field_block = 'listview_header_field';
-
-BLOCK listview_header_field;
-
-  desc = 0;
-  IF (self.order_by == field_name && !self.order_by_desc);
-    desc = 1;
-  ELSE;
-    desc = 0;
-  END;
-
-  "\n  <th"; process_attrs(attrs); '><a '; connect_href(self, order_by => field_name, order_by_desc => desc); '>';
-  loc(self.field_label(field_name)); '</a></th>';
-
-END;
-
-header_block = 'listview_header';
-
-BLOCK listview_header;
-
-  INCLUDE listview_base_header;
-  IF self.row_action_prototypes.size;
-  %]
-  <th colspan="[% self.row_action_prototypes.size %]"[%
-    process_attrs(attrs); %]>[% loc('Actions'); %]</th>[%
-  END; 
-
-END;
-
-row_block = 'listview_row';
-
-BLOCK listview_row;
-
-  INCLUDE listview_base_row;
-  FOREACH action IN self.row_actions_for(row);
-    %]  <td[% process_attrs(attrs); %]><a href="[% action.uri %]">[%
-          loc(action.label) %]</a></td>[%
-    IF loop.last == 0; "\n"; END;
-  END;
-
-END;
-
-row_field_block = 'listview_row_field';
-
-BLOCK listview_row_field;
-
-  field_value = field_value || row.$f_name;
-
-  IF field_value.isa('DateTime');
-    field_value = field_value.strftime("%F %H:%M:%S");
-  END;
-  INCLUDE listview_base_row_field;
-
-END;
-
-%]
diff --git a/root/base/listview_base b/root/base/listview_base
deleted file mode 100644 (file)
index 9b71c30..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-[%
-
-main_block = 'listview_base_main';
-
-table_start_block  = 'listview_base_table_start';
-table_end_block    = 'listview_base_table_end';
-row_block          = 'listview_base_row';
-row_field_block    = 'listview_base_row_field';
-header_block       = 'listview_base_header';
-header_field_block = 'listview_base_header_field';
-footer_block       = 'listview_base_footer';
-footer_field_block = 'listview_base_footer_field';
-create_link_block  = 'listview_base_create';
-
-show_footer = 1;
-
-BLOCK listview_base_main;
-
-  include( 'table_start_block' ); %]
-  <thead>
-    <tr>[% include( 'header_block' ) | indent(4); %]
-    </tr>
-  </thead>[%
-
-  IF show_footer && self.footer_field_names.size != '';
-    "\n  <tfoot>";
-    include( 'footer_block' ) | indent(4);
-    "\n  </tfoot>";
-  END;
-
-  %]
-  <tbody>
-    [%
-
-  FOREACH row = self.current_rows;
-    "<tr>\n";
-    include( 'row_block' ) | indent(4);
-    "\n    </tr>";
-  END; %]
-  </tbody>[%
-
-  include( 'table_end_block' );
-
-END;
-
-BLOCK listview_base_table_start;
-
-  #IF self.has_per_page;
-  IF self.has_per_page && self.pager.last_page > self.pager.first_page;  
-    INCLUDE component type = 'pager';
-  END;
-
-  %]<table>[%
-
-END;
-
-BLOCK listview_base_table_end;
-
-  "\n</table>\n";
-  include( 'create_link_block' );
-
-END;
-
-BLOCK listview_base_row;
-
-  FOREACH f_name = self.field_names;
-    include( 'row_field_block' );
-  END;
-
-END;
-
-BLOCK listview_base_row_field;
-
-  field_value = field_value || row.$f_name;
-  IF field_value.can('display_name'); field_value = field_value.display_name; END;
-  '  <td'; process_attrs(attrs); '>'; field_value || row.$f_name; "</td>\n";
-
-END;
-
-BLOCK listview_base_header;
-
-  FOREACH field_name = self.field_names;
-    include( 'header_field_block' );
-  END;
-
-END;
-
-BLOCK listview_base_header_field;
-
-  "\n<th>"; self.field_label(field_name); '</th>';
-
-END;
-
-BLOCK listview_base_footer;
-
-  "\n<tr>";
-
-  FOREACH footer_field_name = self.footer_field_names;
-    include( 'footer_field_block' );
-  END;
-
-  '</tr>';
-
-END;
-
-BLOCK listview_base_footer_field;
-
-  "\n  <td>"; self.field_label(footer_field_name); '</td>';
-
-END;
-
-BLOCK listview_base_create;
-
-  '<p>';
-  action = ctx.controller.action_for('create');
-  IF action;
-     action = ctx.uri_for(action);
-    '<a href="'; action; '">'; loc("Create record"); '</a>';
-  END;
-  '</p>';
-
-END;
-
-%]
diff --git a/root/base/objectview b/root/base/objectview
deleted file mode 100644 (file)
index 567d3c8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[% PROCESS view_base %]
diff --git a/root/base/pager b/root/base/pager
deleted file mode 100644 (file)
index cde0ce4..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-[%
-
-main_block    = 'pager_main';
-
-start_block   = 'pager_start';
-prev_block    = 'pager_prev';
-current_block = 'pager_current';
-next_block    = 'pager_next';
-end_block     = 'pager_end';
-list_block    = 'pager_list';
-
-start_label_block   = 'pager_start_label';
-prev_label_block    = 'pager_prev_label';
-current_label_block = 'pager_current_label';
-next_label_block    = 'pager_next_label';
-end_label_block     = 'pager_end_label';
-list_label_block    = 'pager_list_label';
-
-BLOCK pager_main;
-
-  '<div>[ ';
-  data = [];
-
-  str = BLOCK; include( 'start_block' ); END;
-  data.push(str) IF str;
-
-  str = BLOCK; include( 'prev_block' ); END;
-  data.push(str) IF str;
-
-  str = BLOCK; include( 'current_block' ); END;
-  data.push(str) IF str;
-
-  str = BLOCK; include( 'next_block' ); END;
-  data.push(str) IF str;
-
-  str = BLOCK; include( 'end_block' ); END;
-  data.push(str) IF str;
-
-  data.join(" |\n");
-  " ]</div>\n";
-
-END;
-
-BLOCK pager_start;
-
-  %]<a [% connect_href(self, 'page' => self.pager.first_page); process_attrs(attrs) %]>[%
-  include( 'start_label_block' ) %]</a>[%
-
-END;
-
-BLOCK pager_start_label;
-
-  loc('Start'); ' ('; self.pager.first_page; ')';
-
-END;
-
-BLOCK pager_prev;
-
-  IF self.pager.current_page != 1;
-    %]<a [% connect_href(self, 'page' => self.pager.previous_page); process_attrs(attrs) %]>[%
-    include( 'prev_label_block' ) %]</a>[%
-  END;
-
-END;
-
-BLOCK pager_prev_label;
-
-  loc('Previous'); ' ('; self.pager.previous_page; ')';
-
-END;
-
-BLOCK pager_current;
-
-  %]<a [% connect_href(self, 'page' => self.pager.current_page); process_attrs(attrs) %]>[%
-  include( 'current_label_block' ) %]</a>[%
-
-END;
-
-BLOCK pager_current_label;
-
-  loc('Current'); ' ('; self.pager.current_page; ')';
-
-END;
-
-BLOCK pager_next;
-
-  IF self.pager.current_page != self.pager.last_page;
-    %]<a [% connect_href(self, 'page' => self.pager.next_page); process_attrs(attrs) %]>[%
-    include( 'next_label_block' ) %]</a>[%
-  END;
-
-END;
-
-BLOCK pager_next_label;
-
-  loc('Next'); ' ('; self.pager.next_page; ')';
-
-END;
-
-BLOCK pager_end;
-
-  %]<a [% connect_href(self, 'page' => self.pager.last_page); process_attrs(attrs) %]>[%
-  include( 'end_label_block' ) %]</a>[%
-
-END;
-
-BLOCK pager_end_label;
-
-  loc('End'); ' ('; self.pager.last_page; ')';
-
-END;
-
-BLOCK pager_list;
-
-  FOREACH page IN self.pager.list;
-    '<a'; connect_href(self, 'page' => page); process_attrs(attrs); '>';
-    include( 'list_label_block' ); "</a>\n";
-  END;
-
-END;
-
-BLOCK pager_list_label;
-
-  page;
-
-END;
-
-%]
diff --git a/root/base/password b/root/base/password
deleted file mode 100644 (file)
index ba3f389..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'passwordfield_control';
-
-BLOCK passwordfield_control;
-
-  %]<input type="password" [% IF id_attr; 'id="'; id_attr; '"'; END; connect_control(self, 'value');
-  ' value="'; self.value | html; '"'; process_attrs(attrs) %] />[%
-
-END;
-
-%]
diff --git a/root/base/radio b/root/base/radio
deleted file mode 100644 (file)
index a4e897a..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'radio_control';
-
-BLOCK radio_control;
-
-  %]<input type="radio" id="[% id_attr %]" [% connect_control(self, 'value');
-  process_attrs(attrs) %] />[%
-
-END;
-
-%]
diff --git a/root/base/radio_group b/root/base/radio_group
deleted file mode 100644 (file)
index b64e5b8..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'radiogroup_control';
-
-BLOCK radiogroup_control;
-
-  FOREACH value IN self.values.keys;
-    '<input type="radio" id="[% id_attr %]" [% connect_control(self, 'value');
-    IF self.default == value; ' checked="checked"'; END;
-    process_attrs(attrs); " />\n";
-  END;
-
-END;
-
-%]
diff --git a/root/base/resetbtn b/root/base/resetbtn
deleted file mode 100644 (file)
index 859d5c8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[%
-
-PROCESS button;
-
-control_block = 'resetbtn_control';
-
-BLOCK resetbtn_control;
-
-  INCLUDE button_control button_type = 'reset' attrs.value = 'Reset';
-
-END;
-
-%]
diff --git a/root/base/search_base b/root/base/search_base
deleted file mode 100644 (file)
index 24bbfff..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'search_base_control';
-
-BLOCK search_base_control;
-
-  INCLUDE component type = 'textfield';
-  INCLUDE component type = 'submitbtn' attrs.value = 'Search';
-
-END;
-
-%]
diff --git a/root/base/select b/root/base/select
deleted file mode 100644 (file)
index a387fa1..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'select_control';
-
-BLOCK select_control;
-
-  IF values_list_type;
-    values_list = self.${values_list_type};
-  ELSE;
-    values_list = self.valid_values;
-  END;
-
-  name = attrs.name || 'value'; attrs.name = '';
-  '<select ';
-  IF id_attr; 'id="'; id_attr; '"'; END;
-  connect_control(self, name); process_attrs(attrs); ">\n";
-
-  IF attrs.nullable == 1 || !(self.attribute.required);
-    attrs.nullable = '';
-    "  <option value=\"\">--</option>\n";
-  END;
-
-  FOREACH v_val IN values_list;
-    v_val = self.obj_to_str(v_val);
-    v_name = self.value_to_name_map.${v_val} || v_val;
-    '  <option value="'; v_val | html; '"';
-    IF (self.is_current_value(v_val) || self.value == v_val ) && !self.hide_selected;
-      ' selected="selected"';
-    END;
-    '>'; v_name | html; "</option>\n";
-  END;
-  '</select>';
-
-END;
-
-%]
diff --git a/root/base/select_group b/root/base/select_group
deleted file mode 100644 (file)
index f740d77..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[%
-
-PROCESS select;
-
-control_block = 'select_group_control';
-
-BLOCK select_group_control;
-
-  INCLUDE select_control attrs.multiple = 'multiple';
-  attrs.multiple = '';
-
-END;
-
-%]
diff --git a/root/base/submitbtn b/root/base/submitbtn
deleted file mode 100644 (file)
index 6e2246c..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[%
-
-PROCESS button;
-
-control_block = 'submitbtn_control';
-
-BLOCK submitbtn_control;
-
-  INCLUDE button_control button_type = 'submit' attrs.value = 'Submit' self.event = 'ok';
-
-END;
-
-%]
diff --git a/root/base/textarea b/root/base/textarea
deleted file mode 100644 (file)
index 57114f9..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'textarea_control';
-
-BLOCK textarea_control;
-
-  attrs.maxlength = '';
-  %]<textarea id="[% id_attr %]" [% connect_control(self, 'value');
-  process_attrs(attrs) %]>[% self.value | html; '</textarea>';
-
-END;
-
-%]
diff --git a/root/base/textfield b/root/base/textfield
deleted file mode 100644 (file)
index a43f445..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[%
-
-PROCESS field_base;
-
-control_block = 'textfield_control';
-
-BLOCK textfield_control;
-
-  attrs.maxlength = '255'; # SimpleStr requires <= 255
-  name = attrs.name || 'value'; attrs.name = '';
-  %]<input type="text" [% IF id_attr; 'id="'; id_attr; '"'; END; connect_control(self, name);
-  ' value="'; self.value | html; '"'; process_attrs(attrs) %] />[%
-  attrs.maxlength = '';
-
-END;
-
-%]
diff --git a/root/base/timerange b/root/base/timerange
deleted file mode 100644 (file)
index a987cfd..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-[%
-
-main_block = 'timerange_field';
-
-BLOCK timerange_field;
-
-  include( 'control_block' );
-
-  IF self.message;
-    "\n<span>"; loc(self.message); '</span>';
-  END;
-
-END;
-
-control_block = 'timerange_control';
-
-BLOCK timerange_control;
-
-  name = attrs.name || 'value_string'; attrs.name = '';
-  self.label = '';
-  data = self.value_string.split(',');
-  #USE dumper; dumper.dump(data);
-  data.0.replace('T', ' ') | ucfirst; ' to '; data.1.replace('T', ' ');
-  IF data.2 == 'none'; data.2 = ''; END;
-  IF data.2 != '';
-    ' every '; data.4.replace('dai', 'day').replace('ly', '');
-    ' between '; data.2.replace('T', ' '); ' and '; data.3.replace('T', ' ');
-  END;
-  inner = {
-    value => self.delete_label,
-    event => 'delete',
-    location => self.location,
-  };
-#  INCLUDE component type = 'button' button_type = 'submit' self = inner;
-  '<input type="submit" value="'; self.delete_label; ;'" '; connect_control(self, 'delete'); ' />';
-  "<br />\n";
-  '<input type="hidden" '; connect_control(self, name); ' value="'; self.value_string; '"'; process_attrs(attrs); ' />';
-  "\n";
-
-#  INCLUDE component type = 'hiddenarray' self.value = ctx.stash.ranges;
-
-END;
-
-%]
diff --git a/root/base/timerangecollection b/root/base/timerangecollection
deleted file mode 100644 (file)
index 2c0bf1a..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-[%
-
-PROCESS form_base;
-
-fields_block = 'timerangecollection_control';
-
-BLOCK timerangecollection_control;
-
-  include( 'error_block' );
-  include( 'results_block' );
-  FOREACH f_name = self.field_names;
-    NEXT IF f_name.match('range');
-    field = self.fields.$f_name;
-    '<p>'; window.render_viewport(field); "</p>\n";
-  END;
-
-END;
-
-results_block = 'timerangecollection_results';
-
-BLOCK timerangecollection_results;
-
-  FOREACH field = self.range_vps;
-    '<p>'; window.render_viewport(field); "</p>\n";
-  END;
-  '<input type="hidden"'; connect_control(self, 'max_range_vps'); ' value="'; self.range_vps.size; '" />';
-#  INCLUDE component type = 'hidden' self.name = 'max_range_vps' self.val = self.range_vps.size;
-
-END;
-
-error_block = 'timerangecollection_error';
-
-BLOCK timerangecollection_error;
-
-  IF self.warning;
-    '<p>'; self.warning; '</p>';
-  END;
-  IF self.error;
-    '<p>'; self.error; '</p>';
-  END;
-
-END;
-
-button_block = 'timerangecollection_buttons';
-
-BLOCK timerangecollection_buttons;
-
-  INCLUDE component type = 'submitbtn' self.value = 'add' self.event = 'add_range_vp' self.label = '';
-
-  IF self.has_on_next_callback;
-    INCLUDE component type = 'submitbtn' self.value = 'next' self.event = 'next' self.label = '';
-  END;
-
-  IF self.is_changed; self.value = 'cancel'; ELSE; self.value = 'close'; END;
-  INCLUDE component type = 'cancelbtn' self.label = '' self.event = 'close';
-  '<br />';
-
-END;
-
-%]
diff --git a/root/base/view_base b/root/base/view_base
deleted file mode 100644 (file)
index e67ac8f..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-[%
-
-main_block    = 'view_base_control';
-control_block = 'view_base_control';
-fields_block  = 'view_base_fields';
-
-BLOCK view_base_control; 
-
-  include( 'fields_block' );
-
-END;
-
-BLOCK view_base_fields;
-
-  FOREACH f_name = self.field_names;
-    field = self.fields.$f_name;
-    window.render_viewport(field); "<br />\n";
-  END;
-
-END;
-
-%]
diff --git a/root/base/xhtml b/root/base/xhtml
deleted file mode 100644 (file)
index 0c0ea26..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-[% BLOCK xhtml_main; -%]
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
-
-<head>
-  <title>[% window.title %]</title>
-
-  [%- FOREACH stylesheet IN stylesheets; -%]
-  <link rel="stylesheet" type="text/css" href="[% ctx.uri_for('/stylesheets', stylesheet) %]" />
-  [%- END; -%]
-  [%- FOREACH javascript IN javascripts; -%]
-  <script src="[% ctx.uri_for('/javascript', javascript) %]" type="text/javascript"></script>
-  [%- END; -%]
-
-  <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
-  <meta name="GENERATOR" content="Catalyst/TT" />
-</head>
-
-<body>
-[% INCLUDE header;
-window.render_viewport(self.inner); %]
-[% INCLUDE footer; %]
-</body>
-</html>
-[%- END;
-main_block = 'xhtml_main';
--%]
diff --git a/root/favicon.ico b/root/favicon.ico
deleted file mode 100644 (file)
index 5ad723d..0000000
Binary files a/root/favicon.ico and /dev/null differ
diff --git a/root/index b/root/index
deleted file mode 100644 (file)
index 70d0472..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-[%
-
-main_block = 'index';
-
-BLOCK index;
-
-%]
-
-<h2>Using InterfaceModel, Reflector</h2>
-<p><a href="[% ctx.uri_for('/testmodel/foo') %]">foo</a></p>
-<p><a href="[% ctx.uri_for('/testmodel/bar') %]">bar</a></p>
-<p><a href="[% ctx.uri_for('/testmodel/baz') %]">baz</a></p>
-
-[%
-
-END;
-
-%]
diff --git a/root/static/images/btn_120x50_built.png b/root/static/images/btn_120x50_built.png
deleted file mode 100644 (file)
index c709fd6..0000000
Binary files a/root/static/images/btn_120x50_built.png and /dev/null differ
diff --git a/root/static/images/btn_120x50_built_shadow.png b/root/static/images/btn_120x50_built_shadow.png
deleted file mode 100644 (file)
index 15142fe..0000000
Binary files a/root/static/images/btn_120x50_built_shadow.png and /dev/null differ
diff --git a/root/static/images/btn_120x50_powered.png b/root/static/images/btn_120x50_powered.png
deleted file mode 100644 (file)
index 7249b47..0000000
Binary files a/root/static/images/btn_120x50_powered.png and /dev/null differ
diff --git a/root/static/images/btn_120x50_powered_shadow.png b/root/static/images/btn_120x50_powered_shadow.png
deleted file mode 100644 (file)
index e6876c0..0000000
Binary files a/root/static/images/btn_120x50_powered_shadow.png and /dev/null differ
diff --git a/root/static/images/btn_88x31_built.png b/root/static/images/btn_88x31_built.png
deleted file mode 100644 (file)
index 007b5db..0000000
Binary files a/root/static/images/btn_88x31_built.png and /dev/null differ
diff --git a/root/static/images/btn_88x31_built_shadow.png b/root/static/images/btn_88x31_built_shadow.png
deleted file mode 100644 (file)
index ccf4624..0000000
Binary files a/root/static/images/btn_88x31_built_shadow.png and /dev/null differ
diff --git a/root/static/images/btn_88x31_powered.png b/root/static/images/btn_88x31_powered.png
deleted file mode 100644 (file)
index 8f0cd9f..0000000
Binary files a/root/static/images/btn_88x31_powered.png and /dev/null differ
diff --git a/root/static/images/btn_88x31_powered_shadow.png b/root/static/images/btn_88x31_powered_shadow.png
deleted file mode 100644 (file)
index aa776fa..0000000
Binary files a/root/static/images/btn_88x31_powered_shadow.png and /dev/null differ
diff --git a/root/static/images/catalyst_logo.png b/root/static/images/catalyst_logo.png
deleted file mode 100644 (file)
index 21f1cac..0000000
Binary files a/root/static/images/catalyst_logo.png and /dev/null differ