Commit graph

1177 commits

Author SHA1 Message Date
Alexey Verkhovsky 541a5d3994 Deleted all references to PageRenderer from PageSet selectors; using wiki_references instead 2005-09-11 08:05:19 +00:00
Alexey Verkhovsky bec3c98227 Moved the last unit test where it belongs 2005-09-11 06:28:59 +00:00
Alexey Verkhovsky 6ff74f6b5a Update wiki_references to a newly created page from 'W' to 'L' 2005-09-11 06:15:59 +00:00
Alexey Verkhovsky 0c6626c375 Corrected WikiReference::link_type when a newly created page refers to itself (should be 'L', not 'W') 2005-09-11 05:59:21 +00:00
Alexey Verkhovsky cd68db01d2 Store wiki references found during rendering 2005-09-11 05:44:34 +00:00
Alexey Verkhovsky bfecd09b56 Fixed includes; started wrking onn caching strategy 2005-09-11 04:23:50 +00:00
Alexey Verkhovsky 70fa15e3f3 Continue extracting URL generation logic from model classes 2005-09-10 11:07:40 +00:00
Alexey Verkhovsky 7e500dfe57 Controllers create renderer objects and pass them on to page.revise and page.rollback methods 2005-09-10 06:12:57 +00:00
Alexey Verkhovsky 4838f6e684 Deleted the last of the rendering logic from Revision (making it a totally anemic entity, by the way) 2005-09-09 20:40:35 +00:00
Alexey Verkhovsky 427f989d69 Extacted rendering logic from the model 2005-09-09 05:31:27 +00:00
Alexey Verkhovsky acfae2818c Rmoved a redundant require 2005-09-09 03:32:54 +00:00
Alexey Verkhovsky fa0cf9032f Extracted link generation from Web into a separate class 2005-09-09 03:31:49 +00:00
Alexey Verkhovsky 829d54a368 Fixed functional tests 2005-09-09 03:23:33 +00:00
Alexey Verkhovsky 49fccc41c1 Cleaned up unit tests and began refactoring link generation 2005-08-25 07:41:25 +00:00
Ben Bleything 7aaa35ae4a Ye olde converter script.
* Script now parses the madeleine storage into SQL
  * Added a new option, -o/--outfile to specify where the output from
    the script should go
  * ./import_storage -t /home/joe/instiki/storage/2500 \
      -i /home/joe/instiki -o /home/joe/export.sql

Exporting the instiki.org snapshot I have takes about 40 seconds (with
output to screen) and generates an approximately 17 meg SQL script from
the ~900k Madeleine snapshot.  Oh well.

Tested with MySQL.
2005-08-22 16:57:01 +00:00
Ben Bleything 0238780355 Set a couple of props on script/import_storage to prepare for the next
checkin...
2005-08-22 16:50:38 +00:00
Alexey Verkhovsky e5b7037259 Small correction to the last commit 2005-08-18 03:35:25 +00:00
Alexey Verkhovsky 84d4e71d3e Patch for Watir test from Bret Pettichord 2005-08-18 03:34:13 +00:00
Alexey Verkhovsky 64dae975ae Patch for Watir test from Bret Pettichord 2005-08-18 03:22:18 +00:00
Alexey Verkhovsky cd1d5135a0 script/import_storage, half-way done. The idea is to have it output a series of INSERT statements that the user can review and execute in a database of user's choice. The part that I have done loads the Madeleine storage and iterates through webs/pages/revisions there 2005-08-16 06:47:52 +00:00
Ben Bleything b29c59e470 Line ending cleanup. Most of these are svn propsets which should make
the files check out appropriately in the future.  The three files in
app/models had inconsitent line endings, so they had to be fixed by
hand.
2005-08-15 19:17:32 +00:00
Alexey Verkhovsky 47946e1c57 Committing OS X build files from Oleg 2005-08-15 00:40:34 +00:00
Alexey Verkhovsky 4849ca62fb Fix for ticket:189 2005-08-15 00:37:16 +00:00
Alexey Verkhovsky 32bd6e47b7 Fix for ticket:189 2005-08-15 00:35:14 +00:00
Alexey Verkhovsky 7493bc8af9 Fixed exports and other file downloads 2005-08-15 00:24:15 +00:00
Alexey Verkhovsky 61eacae836 Fix for exports and other file downloads 2005-08-15 00:07:43 +00:00
Alexey Verkhovsky 06959ab278 Moved pretty date formatting from revision to the main view helper, where this presentation logic obviously belongs 2005-08-14 23:35:10 +00:00
Alexey Verkhovsky 5b075ca338 Renamed revised_on to revised_at everywhere (for consistency) 2005-08-14 23:27:55 +00:00
Alexey Verkhovsky c381287714 Fixed revision numbers in page.rhtml. All Watir tests now pass. 2005-08-14 23:22:31 +00:00
Alexey Verkhovsky d24cf7c8e1 Fixed continuous revision check 2005-08-14 23:09:10 +00:00
Alexey Verkhovsky 052754b068 Dropped number from revision table. Also dropped timestamp. We will rely on autoincremented ID for sorting, and will for now store the time of last edit of the revision in revised_at. Later we will refactor content into a separate table (so as not to load the whole 300 kb of text and cached HTML every time we need page.revisions in code). Rake tests all pass, but watir tests indicate that some revision traversing links are still broken 2005-08-14 22:26:54 +00:00
Alexey Verkhovsky 476d7810f6 Added Revision.timestamp attribute, which is a timestamp to the precision of msec. Intention is to get rid of the revision.number and use this one for sotrting etc. The problem with created_at / updated_at in this role is that trhey have precision of seconds, which is not good enough for some of the purposes. 2005-08-14 18:58:36 +00:00
Alexey Verkhovsky b4ae0b3065 Moving back some model classes to where they belong. Model classes need not map to database entities to be model classes 2005-08-14 04:42:19 +00:00
Alexey Verkhovsky 4f7e5bca30 Changes in Watir test to accomodate the AR backend 2005-08-14 04:06:31 +00:00
Ben Bleything f07d0e32c6 Fix shebangs. Consistentlicious! 2005-08-11 05:46:38 +00:00
Ben Bleything 50343b79e8 Finish Rails-ifying the tree. Adds missing files and directories and
brings a few miscellaneous files up to date.
2005-08-11 05:36:35 +00:00
Alexey Verkhovsky 0f35016069 Also check if the specified page is there, and return 404 if not 2005-08-11 05:36:11 +00:00
Alexey Verkhovsky fe868135c4 Check existance of a revision and respond with 404 if it doesn't exist. 2005-08-11 05:30:20 +00:00
Alexey Verkhovsky 503aa99c63 Set default port to 2500 2005-08-10 06:16:15 +00:00
Rick Okin a91bd946b3 Added db/*.db to svn:ignore 2005-08-10 05:59:42 +00:00
Rick Okin fa82bfdb9c Without Madeleine, chunks can again use their object_id as a unique identifier, instead of an artificial one. This speeds up rendering somewhat, and eliminates the last mention of Madeleine from the codebase :) 2005-08-10 05:58:18 +00:00
Rick Okin 2c7a2779c7 Deleting Madeleine... with pleasure (it is cool, but not for wiki data) 2005-08-10 05:28:05 +00:00
Ben Bleything b94559bc4c remove development_structure.sql and ignore it in the future. We're
going to be hurting if we're developing on multiple db engines and keep
this file around.
2005-08-09 04:40:55 +00:00
Rick Okin fffe1b897e added log directory, set default database.yml 2005-08-09 03:52:54 +00:00
Ben Bleything 17833e23a5 Add executable bit to script/console and script/create_db 2005-08-09 03:45:09 +00:00
Rick Okin 08a66badb9 Removed debugging code from the last commit 2005-08-09 02:29:51 +00:00
Rick Okin 634bc67342 More lenient parsing of blocked_ips.txt and spam_patterns.txt 2005-08-09 02:28:37 +00:00
Rick Okin 6832b2edf9 removed old models' 2005-08-09 02:20:50 +00:00
Rick Okin 26c046cdfa move to AR 2005-08-09 02:20:28 +00:00
Rick Okin c4b7b2d9f2 added chunks 2005-08-09 02:07:39 +00:00