ab07f03911Fixing broken regular expression which was greedily eating nearly entire contents of notes. Unit tests for this is really necessary.
Dan Helfman
2007-08-21 05:53:56 +0000
f6418a1d50Greatly simplified Firefox link creation code, thereby fixing an intermittent bug where hitting ctrl-L to start a link after a space would occasionally not work.
Dan Helfman
2007-08-20 23:14:16 +0000
824882a1d8Factored out hardcoded support email address from various places. Now it's configurable in the common settings.
Dan Helfman
2007-08-20 20:28:17 +0000
082697fe5aMore title tags for various links.
Dan Helfman
2007-08-20 20:10:19 +0000
22767f1cc9Added some explanitory title tags to various pulldown options.
Dan Helfman
2007-08-20 20:02:42 +0000
e0e144a200Fix for broken inheritance, which incidentally cause a link's pulldown not to show up more than once because the pulldown's derived shutdown() method wasn't being invoked the first time.
Dan Helfman
2007-08-20 19:51:02 +0000
f4428c65baSelecting all text in link pulldown's title field only on focus not, not every click.
Dan Helfman
2007-08-20 18:43:45 +0000
59fdcd2340Forgot to svn add password reset tool.
Dan Helfman
2007-08-18 02:16:30 +0000
13318ee807* Wrote really basic password reset utility for the admin. * Changed python2.4 bang line to python2.5 in tools/ directory. * Added some warnings about stopping the server before running various tools.
Dan Helfman
2007-08-18 02:12:56 +0000
7973d87a7d* Turned "search:" label into a search button that, when clicked, displays a pulldown with "titles only" and "everything" radio buttons, defaulting to "titles only". * Wiki javascript code for submitting a search now sends a new titles_only parameter according to what the user has selected in the search pulldown. * controller.Notebooks.search() now takes a new titles_only boolean argument, which does exactly what you would expect.
Dan Helfman
2007-08-17 22:26:02 +0000
5a4ec1911bDisplay "there are no notes here" when showing an empty trash.
Dan Helfman
2007-08-16 23:27:29 +0000
faaa4b6fddGot external links working! * Altered Html_cleaner to allow link targets. * Modified Wiki.load_editor(), Wiki.resolve_link(), and Link_pulldown() to support external links with "_new" targets. * Modified Editor.mouse_clicked() to explicitly open a new window for external links clicked in read-write editors, because the browser won't open clicked link by itself unless they're in read-only iframes. * Removed a duplicate Editor.contents() function. * Increased Link_pulldown title field size to 30 characters.
Dan Helfman
2007-08-16 22:27:58 +0000
a6182dffebAutoselect title field text in link pulldowns when clicked.
Dan Helfman
2007-08-16 20:17:14 +0000
8f8f0a2262In Link_pulldown's constructor, if the note has no destination note id set, try loading the note from the server by title.
Dan Helfman
2007-08-16 20:11:01 +0000
a849935b1dBugfix that prevented undo from working.
Dan Helfman
2007-08-16 19:55:11 +0000
3424e6ad12Some refactoring of the new link resolving and launching code, because, well, it was just plain broken:
Dan Helfman
2007-08-16 01:29:18 +0000
e87eee87c8Protection for a lack of an href.
Dan Helfman
2007-08-15 20:46:37 +0000
8e819b7c01Work-around for bug in IE where positions of iframe contents are not only relative to the iframe itself, but also relative to how far the user has scrolled.
Dan Helfman
2007-08-15 20:35:02 +0000
52fd0d154a* Implemented a link_title() convenience function to get the link title from a link, either from it's query string "title=" arg or from the actual contained title. * Made use of this new function in various places where title-grabbing was being done manually. * Made Editor.mouse_clicked() highlight and bail if there's already an open editor with a matching title. (Previously, it only did this matching by id.) * Wiki.load_editor() now looks to an open Link_pulldown's title field for the note's title, if available. * Link_pulldown formats "title=" query string args with MochiKit's queryString() to escape spaces and such. * Updated NOTE_LINK_PATTERN in wiki download view (untested currently).
Dan Helfman
2007-08-15 00:18:30 +0000
429dc44370Fixed a bug where Link_pulldown.display_preview() didn't correctly support either a DOM node or a string for its contents argument. Also no strip()ing the scraped contents text so removing the note title works better.
Dan Helfman
2007-08-14 20:56:13 +0000
cae5d2272dWhen loading and parsing a note for display in an editor, there's now an optional link argument so that the link clicked to launch the editor can be updated with the new editor's assigned id.
Dan Helfman
2007-08-14 20:34:31 +0000
69caeaf655Code mostly related to manipulating wiki links, plus a new link pulldown: * Implemented a new controller.Notebooks.lookup_note_id() method to get only a note's id given its title. * Added some new link resolution code to Editor and Wiki, to fill in a link's id according to its destination note. * Factored out some of the link finding code into a common Editor.find_link_at_cursor() method. * Factored out query parsing into a common parse_query() function, which operates on a link node. * Added new Link_pulldown class-thingy to represent the little pulldown you see when the cursor's on a link. * Refactored Pulldown's positioning code to support offset positioning (needed for elements within an iframe).
Dan Helfman
2007-08-14 04:13:49 +0000
ec9cd1066cNo longer moving any iframes when displaying search results that are already open, as that causes the iframe contents to revert to as they were when the iframe was loaded.
Dan Helfman
2007-08-11 21:49:33 +0000
d5345304ccForgot to actually set the notebook_id within Editor.
Dan Helfman
2007-08-11 21:34:56 +0000
dbbc93a830Tweaks to CSS for downloaded HTML version of wiki.
Dan Helfman
2007-08-10 20:17:40 +0000
7a26017a28Update the toolbar state everytime the mouse is clicked in case the cursor has moved.
Dan Helfman
2007-08-10 19:32:12 +0000
ea64cc97a2If you undelete a note via undo, now it's indicated in the options pulldown that it's a startup note.
Dan Helfman
2007-08-10 19:19:47 +0000
3de7d59d64No longer hiding any editors when you click a link in a note in the middle of the page.
Dan Helfman
2007-08-10 19:07:00 +0000
3002bea65cIncreasing padding within note frames a bit.
Dan Helfman
2007-08-10 19:06:01 +0000
40bd2de13cSome SSL clarifications to the INSTALL document, and added directions for installing prereqs on Debian.
Dan Helfman
2007-08-10 01:12:33 +0000
8189ec78acAdded export to release.sh.
Dan Helfman
2007-08-09 19:45:46 +0000
8fd463e22dMore docstrings.
Dan Helfman
2007-08-09 19:44:26 +0000
a866c617ecMore API documentation on the controllers.
Dan Helfman
2007-08-09 19:06:01 +0000
3dd4af0534Making the source code link an actual external link.
Dan Helfman
2007-08-08 20:18:55 +0000
00e4c69df3Simple shell script to tar up a release file.
Dan Helfman
2007-08-08 20:12:15 +0000
4a89afebbfNew "contact us" and "faq" pages. Modified navigation accordingly.
Dan Helfman
2007-08-07 23:31:20 +0000
2871c18721Changed /about/contact links to mailto links, and improved CSS of 404 / uh oh pages.
Dan Helfman
2007-08-07 20:29:37 +0000
f2eac9cb1fImplemented a basic trash, including undo upon note deletion and undeletion from the trash: * model.Note has a deleted_from member to indicate the notebook id it was deleted from (if any) * controller.Notebooks sets the deleted_from member and makes all deleted notes startup notes in the trash * new controller.Notebooks.undelete_note() method * split up the idea of UI messages into errors and informational messages, with separate CSS * updated Editor and Wiki UI code to deal with new deleted_from variable * added "undelete" button when viewing a deleted note, and "delete" changes to "delete forever" * added a "trash" link to the notebook links * reorganized responsibilities for displaying notebook/user links among Wiki.populate() and Wiki.display_user() * when deleting messages in a notebook with a trash, displaying "The note has been moved to the trash"... with a working undo button! * tweaked focusing logic in display_search_results(), which has been renamed to display_loaded_notes()
Dan Helfman
2007-08-07 01:48:43 +0000
c02d27e841CSS tweaks involving: * line height (increasing) * font size (switching to % instead of em) * note width (in IE)
Dan Helfman
2007-08-06 00:51:04 +0000
1c72e5a87fFix to recognize and rewrite note links that have target="_top", such as those for "try it out" and "login".
Dan Helfman
2007-08-03 22:44:29 +0000
1796ccca71Schema evolution: Adding a trash member to those Notebooks that don't have it.
Dan Helfman
2007-08-03 21:55:02 +0000
4e28620348* Added a trash Notebook to model.Notebook. * Made sure the trash is not exposed by the read-only notebook view. * Modified model.User.check_access() to consider read-write access to a notebook to be sufficient for access to that notebook's trash. * Modified controller.Users so new users are created with a notebook that has a trash. * Changed controller.Notebooks so deleted notes go to the trash (if any).
Dan Helfman
2007-08-03 21:12:17 +0000
4356336f6bUpdated unit tests for redirect upon non-http / request when logged in. Also updated INSTALL with info about Apache configuration.
Dan Helfman
2007-08-03 19:43:16 +0000
ccb81d18eeChecking the start of the requested URL to determine whether it was an https request simply didn't work. Apache doesn't forward that information. So instead, I'm now using a hacky work-around that looks at the proxy IP to determine whether it was an http or https request.
Dan Helfman
2007-08-03 19:29:20 +0000
9e0b611790When the user is logged in and hitting the root page ("/") without https, do a redirect to https.
Dan Helfman
2007-08-02 23:25:57 +0000
5ceed4bf32CSS tweaks to better handle smaller browser window widths in both Firefox and IE.
Dan Helfman
2007-08-02 22:47:20 +0000
c5dddb76dbAdding a lame initial favicon.ico.
Dan Helfman
2007-08-02 19:54:47 +0000
4a3571a4e8Changing logout redirect to honor whatever the http_url setting happens to be.
Dan Helfman
2007-08-02 18:57:53 +0000
0ac518e395* controller.Users.current() now returns an http_url if one is configured in config/Common.py * changed controller.Users and controller.Root constructor arguments to support this. * Updated INSTALL document accordingly. * Client now will prepend this new http_url variable to the logout link.
Dan Helfman
2007-08-02 18:52:20 +0000
ef53bb8159Fix for broken URL generation.
Dan Helfman
2007-08-02 04:05:15 +0000
b58f5cb1a1* tools/updatedb.py now takes an optional navigation note id parameter, so the titleless navigation note can be updated. * both tools/initdb.py and tools/updatedb.py set link ids appropriately, rather than just leaving them all as "new" * both tools/initdb.py and tools/updatedb.py set certain links to use https if configured as such in config/Common.py * tools/initdb.py no longer creates a default "witten" user * Added target="_top" to links that should replace the top-level window, and updated client code to ignore links with targets. * Removed form_base_url from Editor.js, as https URL is now tacked on by initdb.py/updatedb.py instead.
Dan Helfman
2007-08-02 04:01:11 +0000
a5694d3661Wording changes to about/features.
Dan Helfman
2007-08-01 22:18:37 +0000
304cf6f422Beefed up the INSTALL file with information about both development and production mode.
Dan Helfman
2007-08-01 21:25:25 +0000
251fcf1996Added support for a form base URL, in case you want forms to be submitted to, for instance, an SSL server.
Dan Helfman
2007-08-01 21:13:24 +0000
0a457585d9Expanded the page displayed when Javascript is disabled so search engines actually get something useful. Made the page <title> contain "personal wiki notebook".
Dan Helfman
2007-08-01 20:46:26 +0000
3d3c4a6ad4Moving default port to 8081 so as not to conflict with Coderific.
Dan Helfman
2007-08-01 20:24:46 +0000
8ba824ef4fRemoving debugging print.
Dan Helfman
2007-08-01 20:23:12 +0000
58665fe14aHandle None notes.
Dan Helfman
2007-08-01 20:10:54 +0000
78b2404cf3Tyepo fix.
Dan Helfman
2007-08-01 20:09:27 +0000
ccfcd3ccfe* Added convenience method to model.Notebook called is_startup_note(), and made use of it. * is_startup_note() checks whether the object id of the given note is in the list of startup notes, not whether the actual object is. * This fixed a bug in which the same note could be saved to the list of startup notes multiple times, thereby causing funny display problems when the same note was loaded twice.
Dan Helfman
2007-08-01 02:23:54 +0000
f23fcdde21* Can now click on revision timestamps to open up the contents of previous note revisions with a small timestamp at the top. * Revisions can be opened either in the current page or in a new window/tab. * Added ability for a read-write notebook to contain read-only notes. This supports showing read-only revisions. * Fixed updatedb.py to properly load the anonymous user. * Updated initdb.py and updatedb.py to deadl with new-style /notebooks/notebookid?note_id=noteid wiki links. * Made Persistent copy the revisions_list on each revision update so different revisions don't share lists. * Prevented Note from updating its revision twice upon construction. Now it's only updated once. * Work-around for nasty urlparse() caching bug related to unicode strings that cherrypy barfs on. * Added optional revision flag to various controller.Notebooks methods to allow opening of a notebook with a particular note revision displayed.
Dan Helfman
2007-07-31 22:53:57 +0000
b7b88f25a3Accidentally left out of last commit.
Dan Helfman
2007-07-28 04:23:17 +0000
2c20d60f9e* Rewrote all wiki note links to be of the form: /notebooks/notebookid?note_id=noteid * Refactored some of validator decorator to use clearer variable names internally. * Validator decorator now supports treating arguments with default values as optional. * controller.Notebooks.default() takes an optional note_id argument. * controller.Notebooks.contents() takes an optional note_id argument. * Wiki.js now makes use of these new controller APIs. * Editor.js now takes a notebook_id argument to its constructor so it can properly make links.
Dan Helfman
2007-07-28 04:22:44 +0000
f81707ea2fFor none_okay validator flag, allow empty strings as well.
Dan Helfman
2007-07-28 04:11:14 +0000
e963007ae5This __setstate__ function is no longer necessary, as all databases have been converted to the new schema.
Dan Helfman
2007-07-28 04:09:37 +0000
069532b58cReverting to previous revision. Didn't mean to checkin these changes yet, as they're not complete.
Dan Helfman
2007-07-27 00:33:32 +0000
35459270beNow ignoring link clicks that are with the right or middle mouse buttons.
Dan Helfman
2007-07-27 00:32:42 +0000
ccc1cc2f2dFix for bug introduced by revisions list that preventing opening of new editors by clicking links.
Dan Helfman
2007-07-26 23:02:24 +0000
0cbbc68282Simulating max-height for pulldowns in brain-dead IE6.
Dan Helfman
2007-07-26 19:38:49 +0000
f05d3db661* Added a "changes" tab with a list of revision timestamps for each note. Note yet clickable. * Made controller.Notebooks.save_note() return the newly minted revision timestamp upon a successful save. * Whenever we get back a revision timestamp from save_note(), we store in in the client's list of revisions for that note. * Now raising Access_error in controller.Notebooks in various places where the notebook requested is unknown. * Tweaked pulldown CSS a bit. Now will sport a handy-dandy scrollbar if the pulldown gets too tall, at least in real browsers. * Fixed bug where clicking "show on startup" checkbox directly didn't visually toggle the checkbox.
Dan Helfman
2007-07-26 01:18:41 +0000
55b8ac6446Fix for nasty session timeout in which you'd get spontaneously logged out for no apparent reason. The fix is to enable cherrypy's implicit session file locking, which, interestingly enough, isn't enabled implicitly.
Dan Helfman
2007-07-25 20:04:24 +0000
e356b3349eAnother work-around for None notes.
Dan Helfman
2007-07-24 21:12:12 +0000
35e06bccefFixing unit test that was broken by earlier switching to secondary id keys including class names.
Dan Helfman
2007-07-24 00:03:50 +0000
c05e143269When scrolling the window, scroll to the top of the note controls instead of just the top of the iframe.
Dan Helfman
2007-07-23 23:49:57 +0000
120c29954cMore changes to search results displaying: * Now, already open editors that happen to be in the search results are forcibly moved to be with the result of the search results.
Dan Helfman
2007-07-23 23:42:53 +0000
94f75f23a7Search results display changes: * Search results are now appended to the open notes, instead of replacing them. * Already-open notes that also happen to be in the search results are closed so that they're not shown twice.
Dan Helfman
2007-07-23 23:19:15 +0000
bcd1dcbcd9Increasingly brittle, but this fixes the following bug: * hit bold, type some text, hit space, start a link. this will not actually start a link and will just insert a space
Dan Helfman
2007-07-23 22:57:48 +0000
a6fff8da31Yet more selection shenanigans for starting a link in Firefox. Hopefully less buggy now.
Dan Helfman
2007-07-21 20:14:48 +0000
852a432712Making each object have a list of its previous revisions.
Dan Helfman
2007-07-21 04:17:31 +0000
8e6b152483Factored out options pulldown into a separate "sub-class" of Pulldown.
Dan Helfman
2007-07-20 22:41:20 +0000
0129c2a2c3Schema change to secondary ids are stored with their class, not just their bare id.
Dan Helfman
2007-07-20 20:05:02 +0000
bd8a6894e2Added Noscript section to the main page so people without Javascript enabled are greeted to slightly more than a blank page.
Dan Helfman
2007-07-20 19:11:22 +0000
78fef663b2Now, if an exception is raised within a function decorated with @update_client, it get propagated to the client in the form of a not-very-helpful generic error message.
Dan Helfman
2007-07-19 23:13:19 +0000
ed594fd798Added info about saving notes.
Dan Helfman
2007-07-19 22:36:23 +0000
c34811f378Replaced Scheduler's internal use of threading.Event with threading.Semaphore to prevent race condition that caused timeouts.
Dan Helfman
2007-07-19 22:18:07 +0000
203a8f9e70Another filter to skip None notes.
Dan Helfman
2007-07-19 20:15:07 +0000
2b307b6690Html_cleaner no longer converts ":" to ":".
Dan Helfman
2007-07-19 19:23:59 +0000
1ecad1a00cFix so None doesn't ever get added to result list, which screws up the parser.
Dan Helfman
2007-07-19 19:06:22 +0000
24a7205d3aHtml_nuker now converts some character/entity refs to their ascii equivalents, which allows searching for things that contain non-alphanumeric characters encoded as char/entity refs.
Dan Helfman
2007-07-19 19:03:40 +0000
6bb233f8daWhen Html_nuker was initialized with allow_refs, the code was incorrectly allowing character/entity references, so ":" was becoming just "58".
Dan Helfman
2007-07-19 18:24:08 +0000
0e968d0b60Fix for negative indexing.
Dan Helfman
2007-07-19 02:50:58 +0000
302dd0c869Clarifying link creation.
Dan Helfman
2007-07-18 22:32:47 +0000
8df8036255Ending a link in IE no longer moves the cursor to the end of the line.
Dan Helfman
2007-07-18 21:51:59 +0000
dcc42cf808Simplified the "welcome to your wiki" note.
Dan Helfman
2007-07-18 21:47:43 +0000
de9e3a55e3Fixing Firefox link creation when in the middle of a line.
Dan Helfman
2007-07-18 21:29:47 +0000
5dca7e972eChanging note link key to ctrl-L and unordered list to ctrl-U.
Dan Helfman
2007-07-18 20:28:42 +0000
abd9948588When downloading the wiki as HTML, skip None notes.
Dan Helfman
2007-07-18 20:17:58 +0000
733e104872Now that the databases are changed from Entry to Note, removing schema evolution stuff.
Dan Helfman
2007-07-18 20:05:55 +0000
eb957d169bRe-adding Entry yet again, and putting __setstate__() back in Notebook to properly update the database's schema for Entry -> Note.
Dan Helfman
2007-07-18 20:05:13 +0000
60d01fe483Updating reloaddb.py to use the new Database.reload() method.
Dan Helfman
2007-07-18 20:03:55 +0000