Revision history for OpenInteract package static_page

1.53  Tue Dec  4 03:23:09 EST 2001

      Update conf/spops.perl to include pagetext and script in the
      'field'; plus a bad version of the Handler got into the
      distributed version.

1.52  Wed Oct 17 08:17:53 EDT 2001

      Change ruleset_add -> ruleset_behavior in OI/BasicPage.pm

1.51  Fri Oct 12 08:55:12 EDT 2001

      Modified OI/Handler/BasicPage.pm to enable pages to declare they
      do not want their content run through TT. Thanks to Reinier Post
      <rp@win.tue.nl> for reporting the error which led to this.

1.50  Sun Oct  7 16:34:17 EDT 2001

      Added 'module' declaration in package.conf

1.49  Wed Aug 22 00:28:29 EDT 2001

      Update the handler to call check_security on the page class
      itself rather than directly on SPOPS::Secure::Hierarchy. (Why
      did I do this in the first place??)

1.48  Tue Aug 21 01:06:43 EDT 2001

      Self-promotion update -- initial page reflects that LDAP works
      out of the box. (Woo hoo!)

1.47  Wed Aug 15 09:42:27 EDT 2001

      Change <object>.OI.html_(en|de)code to OI.html_(en|de)code.

1.46  Mon Aug 13 12:12:37 EDT 2001

      Changed all relevant templates to new template format (using OI.blah)

1.45  Mon Aug 13 11:26:12 EDT 2001

      Modified template(s) with <!-- TEMPLATE SCRIPT --> key to have
      normal <script>...</script> tags.

1.44  Mon Aug 13 00:29:03 EDT 2001

      Fixed hasty schema change.

1.43  Sun Aug 12 11:17:21 EDT 2001

      Modify data/install_security.dat to use new
      'transform_default_to_id' action.

1.42  Sat Aug 11 17:36:51 EDT 2001

      Changed conf/spops.conf->isa from OpenInteract::SPOPS to
      OpenInteract::SPOPS::DBI

1.41  Mon Jul 23 17:29:26 EDT 2001

      Simple fixes in handler (ensure box names get added and give
      some feedback)

1.40  Mon Jul 16 09:42:16 EDT 2001

      Remove 'page_count' item from 'conf/action.perl' (sorry!)

1.39  Tue Jul 10 10:01:43 EDT 2001

      Tweaks to template, and only fetch children whose *directory*
      matches the selected directory.

1.38  Tue Jul 10 08:59:13 EDT 2001

      - Added two new properties to 'basic_page' table: 'is_file' and
      'directory'. The property 'is_file' will determine whether a
      page is in the database or in the filesystem. The property
      'directory' is set whenever you save a 'basic_page' object from
      the 'location' property.

      - Added ruleset with 'pre_save_action' rule to set 'directory'
      property based on 'location' property.

      - Added class method 'list_directories()' so we can find the
      directories currently being used in the system.

      - Modified the method 'listing()' in
      OpenInteract/Handler/BasicPage.pm to retrieve a list of
      directories and then only retrieve the basic_page objects (via
      an Iterator) found in the directory selected. This should use
      dramatically fewer resources.

      - Modified (slightly) the 'save()' call in
      OpenInteract/Handler/BasicPage.pm to reflect modified SPOPS API.

1.37  Sat Jun 16 20:17:17 EDT 2001

      Moved the 'page_count' component to the 'base_component'
      package.

1.36  Thu Jun  7 13:10:01 EDT 2001

      Override the 'object_description' method from 'SPOPS.pm' to
      replace the 'url' key in the returned hashref with the location
      of the basic_page object rather than
      '/BasicPage/show/?location=blah'. This way, pages that use
      relative HTML links will still work properly. (Plus it just
      looks better.)

1.35  Thu Jun  7 00:29:44 EDT 2001

      Fixed bizarre oversight in handler where directory requests
      wouldn't get pushed onto the stack of locations to check.

1.34  Tue Jun  5 09:38:44 EDT 2001

      Use the 'column_group' key in the 'fetch_group()' Handler call.

1.33  Tue Jun  5 09:22:42 EDT 2001

      Added 'column_group' key to 'conf/spops.perl' for
      non-memory-clogging listings.

1.32  Thu May 31 09:50:00 EDT 2001

      Added login page, separate from the login box.

1.31  Tue May 29 23:31:36 EDT 2001

      Changed all relevant '$R->scrib( ... )' calls to 
      '$R->DEBUG && $R->scrib( ... )'

1.30  Mon Apr  2 01:10:20 EDT 2001

      Moved the security settings for '/oi_docs' out of this module
      and into 'system_doc'. If you're upgrading this is no big deal
      -- the security should already be saved. If you're installing
      new this is no big deal since you don't really care where the
      security settings come from :-)

1.29  Sun Apr  1 22:22:43 EDT 2001

      Added lots of documentation in 'doc/package.pod' (trying to make
      this a trend and habit :-)

      Also updated the list of databases in 'html/index.html'.

1.28  Tue Mar 13 08:23:56 EST 2001

      Comment out the DATE_FORMAT stuff in 'conf/spops.perl' -- we'll
      probably remove it in the future or maybe even put DB-specific
      stuff in there during the 'create_website' action...

1.27  Tue Mar 13 07:20:31 EST 2001

      Changed security level data: 'oid' -> 'object_id'

1.26  Sun Mar  4 16:04:01 EST 2001

      Changed security level data: 'level' -> 'security_level'

1.25  Sun Mar  4 13:34:50 EST 2001

      Updated OpenInteract/Handler/BasicPage.pm to only check security
      for files in the filesystem if the 'basicpage' object is also
      using security.

1.24  Tue Feb  6 17:08:30 EST 2001

      Small change to OpenInteract/Handler/BasicPage.pm to reset the
      content type when we encounter an error, security or
      otherwise. Note that you **must** use version 1.24+ of the 'base'
      package if you expect this to work. If you use an earlier
      version you can set $R->{page}->{content_type} all you want but
      nothing will happen.

1.23  Tue Feb  6 13:04:19 EST 2001

      Fixed OpenInteract/Handler/BasicPage.pm to deal with embedded
      information in static pages properly (parentheses were in the
      wrong place, duh).

1.22  Thu Feb  1 23:55:57 EST 2001

      Fixed old reference to data file (install_sql) which isn't there
      anymore.

1.21  Wed Jan 31 23:09:33 EST 2001

      Fixed two items in OpenInteract/Handler/BasicPage.pm -- return
      undef from '_retrieve_file' if a page isn't found and ensure we
      pass $p (which includes the security level) into the
      _assign_object_boxes() every time. 

      Cleanup.

1.20  Tue Jan  2 00:52:37 EST 2001

      Add the 'hierarchy_field' and 'hierarchy_separator' to the
      'conf/spops.perl' configuration.

1.19  Tue Jan  2 00:29:09 EST 2001

      We now set SPOPS::Secure::Hierarchy on by default with the
      distribution, and since the static page URL '/oi_docs' is now
      setup with the latest version of 'oi_manage' to be installed
      with every new website we setup security on that hierarchy root
      to have no permissions for WORLD and write permissions for the
      group 'site admin'.

      Changed the default directory index from 'home.html' to
      'index.html'.

1.18  Fri Dec 29 15:51:05 EST 2000

      Modified the handler to recognize non-displayable requests and
      set the 'send_file' property of $R->{page} when such a request
      comes in. This allows us to put PDF, DOC, ZIP files into a
      static file directory and have them be protected along with
      everything else. As an added bonus, we don't even need to set
      the MIME content type since Apache does this for us. Excellent!

      Also added the ability of a page to specify the main (or 'base')
      template it wants to use. This required modifying the template
      for editing the page and the database table structure to hold
      the information, plus a small modification to the handler. You
      could always define multiple 'main' templates but now you can
      specify them on a per-page basis. (It would be nice if this
      would also inherit, or if we could present a list of templates
      designated as 'main' to choose from, but one thing at a time...)

      If you're upgrading, execute the following statement to upgrade
      your table. (This is for MySQL -- other DBs should use an
      appropriate variant.)

      ALTER TABLE basic_page ADD main_template VARCHAR(40) NULL

      If you don't execute this statement then all you'll get are
      errors.

1.17  Fri Dec 29 13:23:32 EST 2000

      Modified the _fetch_file() method to allow static pages to
      define the content to display on the page using the HTML comment
      '<!-- OI BODY -->' and to only take content between the
      <body></body> tags.

1.16  Fri Dec 29 11:44:47 EST 2000

      Modified OpenInteract/Handler/BasicPage to make the edit()
      method work properly

1.15  Fri Dec 29 10:25:48 EST 2000

      Modified OpenInteract/Handler/BasicPage to use the class of the
      'basicpage' database object even for static files. This will
      allow you to transfer to and from the database and the
      filesystem as necessary while still maintaining the same
      security settings.

1.14  Fri Dec 29 10:12:12 EST 2000

      Fixed error in OpenInteract/Handler/BasicPage which wasn't
      returning the right information from _check_active_date (note to
      self: never use 'return' within an eval {} block)

1.13  Fri Dec 22 14:28:11 EST 2000

      Fixed dumb error where we were denying users with READ access
      rather than users with less than READ access.

1.12  Thu Dec 21 01:17:54 EST 2000

      Dumb mistake -- used SPOPS->now instead of SPOPS::Utility->now.

1.11  Thu Dec 21 00:29:50 EST 2000

      Fixed template/static_dir_listing.tmpl to use SET directives
      where we do an inline conditional assignment (e.g., "[% this =
      that IF the_other %]") -- kind of a bug in TT2.

1.10  Wed Dec 20 18:17:19 EST 2000

      Filesystem/object storage now works, as does security getting
      (not setting -- that's elsewhere) for either a filesystem file
      or object file. Also commented the new entries in
      conf/action.perl and cleaned up conf/spops.perl.

1.09  Wed Dec 20 14:46:45 EST 2000

      Add the 'storage' property to the action.perl; implement
      filesystem/object storage differentiation (and combination) in
      the handler and add the appropriate configuration directives to
      conf/action.perl.

1.08  Mon Dec 18 17:11:31 EST 2000

      Start this Changelog; start changes to allow
      OpenInteract/Handler/BasicPage.pm to use either database files,
      filesystem files, or a combination of both. Also allow the
      handler to use the new hierarchical security mechanism.
