Commit Graph
35 Commits
Author SHA1 Message Date
Bharat Mediratta 8a4ab78bfb Oops, injecting the function name caused an extra call in the call
stack.  The test passed, but the actual code failed.  Fixed now.
2008-11-03 06:02:40 +00:00
Bharat Mediratta fa9dda4c01 Create an initial attempt at the album controller, set it up with a default route
and add a link to it from the welcome page.
2008-11-03 05:55:34 +00:00
Bharat Mediratta a089399e73 Default theme, built with YUI. A mock right now, not functional at
all (except in some very minor ways).  It's unclear if this is the
best final structure.  Right now the album controller knows a
considerable amount about the layout of the page, which may not be the
best way to do things.
2008-11-03 05:53:20 +00:00
Bharat Mediratta 6da6b8ed52 Theme helper. Right now it has one api method, theme::url which
returns a url local to the theme that you're in.  For example, if
you're in themes/foo/views/page_header.html.php and you call
theme::url("images/foo.png") then it'll create a url to:
themes/foo/images/foo.png
2008-11-03 05:52:13 +00:00
Bharat Mediratta 6c35abd30a whitespace fix 2008-11-03 05:36:44 +00:00
Bharat Mediratta 8831e89f40 More bootstrap code.
* core_installer::install now creates the root album and the albums/thumbnails
  directories under VARPATH.
* Add a test for core_installer
2008-11-03 02:08:07 +00:00
Bharat Mediratta 33e9cdad15 Uninstall/reinstall core on every test run (for now). 2008-11-03 02:05:59 +00:00
Bharat Mediratta 019ea9cd35 Rename columns lft/rgt to left/right. 2008-11-03 02:05:11 +00:00
Bharat Mediratta 8183289bb1 Add some padding between paragraphs. 2008-11-03 01:20:45 +00:00
Bharat Mediratta 2578b598dd Change styles a bit to make it a little more consistent. 2008-11-03 01:13:51 +00:00
Bharat Mediratta 7d2c828a4c Put info about installed modules directly into the scaffolding page,
and create methods to install/uninstall modules.
2008-11-03 00:27:35 +00:00
Bharat Mediratta 7ae73fcd65 Change structure of item table to match MPTT class (which is a little different from ORM_MPTT which we used in gx 2008-11-03 00:26:55 +00:00
Bharat Mediratta df36d28b8a Make the unit_test database config the default so that our test runs don't
mess up the real database.
2008-11-03 00:07:38 +00:00
Bharat Mediratta e173f36bcb Create some basic infrastructure:
* item model (contains basic item info, similar to the gx version)
  * module model (has info about each module and which version of it is installed)
  * added a very basic unit test to verify that we can create an instance of item
  * Updated our test controller to require a unit_test db config and
    call core::install if it hasn't been done already.

New pattern:
  * core/helpers/core_installer.php creates core_installer helper.
    When we install a new module you call xxx_installer::install(),
    and when you want it to go away, you do xxx_installer::uninstall()

Create
2008-11-02 23:55:09 +00:00
Bharat Mediratta aff7048b1f Turn on short_open_tags 2008-11-02 22:01:30 +00:00
Bharat Mediratta 2f151cf39f Ignore view files in no_trailing_closing_php_tag_test since they will occasionally
end in tags like <?= this ?>
2008-11-02 21:56:14 +00:00
Tim Almdal a38752607e replace a tab with the appropriate number of spaces 2008-11-02 21:39:10 +00:00
Bharat Mediratta 231117b4a3 Change this to be inline instead of an iframe, and fix it up so that
it walks you through creating the database also.
2008-11-02 21:12:15 +00:00
Bharat Mediratta 3f21b08e5f Read local database config file 2008-11-02 19:59:09 +00:00
Bharat Mediratta d742de4e11 Improve welcome scaffolding to walk you through getting the var
directory set up correctly and a database config file in place.
2008-11-02 19:56:57 +00:00
Bharat Mediratta 3ec437029b Add mptt and forge modules to the module load list
disable logging if the log dir is not writable.
2008-11-02 18:57:50 +00:00
Bharat Mediratta bd8cd9364c Fix all our preambles to make the preamble test pass. 2008-11-01 22:43:28 +00:00
Bharat Mediratta 06174a4f74 Add a test to verify that we have the right preamble on files. 2008-11-01 22:42:59 +00:00
Bharat Mediratta 3757b39dfe Improve formatting 2008-11-01 22:41:09 +00:00
Bharat Mediratta 6f98bd445a Clean up tests a bit. 2008-11-01 22:05:08 +00:00
Bharat Mediratta a7f22994ed Add a new test to verify that view files end in .html.php 2008-11-01 18:45:25 +00:00
Bharat Mediratta 60fbea6fd0 Add first test; this verifies that we leave the ?> off at the end of PHP files. 2008-11-01 10:47:00 +00:00
Bharat Mediratta 5a3731d0c6 Remove all html::specialchars(); we're not getting rendered in a
browser.
2008-11-01 10:45:51 +00:00
Bharat Mediratta 08f9822b72 Exclude demo tests 2008-11-01 09:02:24 +00:00
Bharat Mediratta f8b4c66906 Set up unit test framework. Tweak configuration so that it only runs in
command line mode, and expects to put data into test/var.  Create a module
to wrap it that generates a nice text-only view of the output.
2008-11-01 07:55:48 +00:00
Bharat Mediratta 146f34dc07 Improve the welcome page to be a bit more explanatory about the product. 2008-11-01 03:58:08 +00:00
Bharat Mediratta 53ef67d000 Move gallery3 out of the eval branch and up to its real home. Note that
I'm inverting the normal paradigm by putting trunk/vendor/tags/branches
inside the gallery3 project.  This is actually the recommended form when
you have multiple projects inside a svn repository.
2008-10-31 22:42:08 +00:00
Bharat Mediratta a69515ecb3 Placeholder app for Gallery3, along with a customized index.php and a README
git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18409 57fcd75e-5312-0410-8df3-f5eb6fbb1595
2008-10-31 22:38:54 +00:00
Bharat Mediratta eba717f95f Merge over vendor code.
git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18408 57fcd75e-5312-0410-8df3-f5eb6fbb1595
2008-10-31 22:12:14 +00:00
Bharat Mediratta fff10f8b70 Welcome to Gallery 3
git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18399 57fcd75e-5312-0410-8df3-f5eb6fbb1595
2008-10-31 19:48:16 +00:00