witten
/
luminotes
Archived
1
0
Fork 0
Commit Graph

130 Commits

Author SHA1 Message Date
Dan Helfman d3e040d984 Blog post URLs are now user-friendly and SEO-friendly. 2008-11-18 15:11:58 -08:00
Dan Helfman 4855ac0c7e New note_count member on model.Notebook. 2008-11-17 23:42:29 -08:00
Dan Helfman 7185a9f8a3 Fixed a bug in which search result note summaries were not showing the portion of the note that matched the search term. 2008-11-14 12:30:03 -08:00
Dan Helfman a6ca368e4c Fixing typos within new SQL. 2008-11-11 22:01:57 -08:00
Dan Helfman 6480b86574 Major SQL changes to support faster searching, plus changes to model.Note to support the new SQL. Unit tests all pass.
note_current is now a table containing the current versions of each note, rather than a view.
This makes the tsearch2 index much less bloated with duplicate information
2008-11-11 21:45:18 -08:00
Dan Helfman 8f4cdd662d Adding a database index to the session table. 2008-11-10 12:32:02 -08:00
Dan Helfman b8a7881b7a Adding a much-needed index to the session table. 2008-11-07 13:12:03 -08:00
Dan Helfman c9ca87c544 Adding drop for session table. 2008-11-07 12:29:25 -08:00
Dan Helfman 1889bf8a23 model.User.sql_update_access() now able to take either bool read_write value or Notebook.READ_* value. 2008-11-04 12:22:44 -08:00
Dan Helfman 6708675fec Factored out page navigation (pagination) code and made use of it on forum thread list page. 2008-10-31 15:17:59 -07:00
Dan Helfman b368fa23b6 Fixed SQL statement bugs related to new Note.username member. 2008-10-31 11:43:53 -07:00
Dan Helfman dccab45de3 The username of the author of a forum post now shows up in the UI. 2008-10-30 16:53:42 -07:00
Dan Helfman b4a40d2c25 More work on the discussion forums. 2008-10-30 15:26:27 -07:00
Dan Helfman 58c8fdac00 Fixed an occasional bug that caused unexpected logouts by moving the session info into the database. No more write races. 2008-10-29 14:26:22 -07:00
Dan Helfman 3e51057d2d Order forum threads in reverse chronological order by creation date. 2008-10-28 14:38:01 -07:00
Dan Helfman 4048240419 Fixed typo in table name. Added schema_version to dropped tables. 2008-10-28 14:03:21 -07:00
Dan Helfman 36af0bbfed Propagating notebook tags to the UI code. 2008-10-24 15:07:36 -07:00
Dan Helfman 388f2fcb02 Foundational work for both tags and discussion forums. Should have checked this in in smaller pieces. 2008-10-24 11:51:19 -07:00
Dan Helfman f2b88441ee Leading/trailing spaces in note titles are now ignored when making links to such notes. 2008-09-28 14:48:22 -07:00
Dan Helfman 9247683a72 Lots more work on the payment code necessary to support Luminotes Desktop. 2008-09-11 00:36:12 -07:00
Dan Helfman 30283b0e29 More unit tests passing on Windows. 2008-08-21 14:22:20 -07:00
Dan Helfman 1c834af8df Okay, just doing the datetime precision hack unconditionally on Windows. 2008-08-21 00:43:15 -07:00
Dan Helfman 0e2e665cca Making float into int to stifle deprecation warning. 2008-08-21 00:35:05 -07:00
Dan Helfman 3fa1e8f8e6 Hack to work around poor timer precision on Windows. This bug prevented Persistent.update_revision() from working consistently. 2008-08-21 00:33:19 -07:00
Dan Helfman 410f6f8cbf Added basic note searching for SQLite. Should really be using SQLite's full-text search instead.
In sql_load_notes, no longer adding offset clause if start = 0 since SQLite doesn't like offset without limit.
Switched from using "ilike" to "like" with lower(), since "ilike" is a PostgreSQL-specific extension.
Moved BACKEND flags from Database to Persistent to prevent need from circular imports (model files importing controller.Database).
2008-08-19 17:48:33 -07:00
Dan Helfman 85443e3849 Fixed another limit/offset ordering problem to make SQLite happy. 2008-08-19 14:45:13 -07:00
Dan Helfman d0d0946788 Added backend parameter to sql_calculate_storage() for SQLite support. Also fixed bug in which salt could contain "\" character. 2008-08-19 14:21:59 -07:00
Dan Helfman f6fbf724f3 quote() function now correctly handles bools as input such that SQLite gets a 't' or 'f' value as appropriate. 2008-08-18 18:07:08 -07:00
Dan Helfman 98042c5c3f Fixed ordering of SQL offset/limit clauses to make SQLite happy. 2008-08-18 18:05:51 -07:00
Dan Helfman 9d4a33218f Updated Database.py, initdb.py, and updatedb.py to support local SQLite database. Still need other changes in model/*.py though. 2008-08-15 17:27:03 -07:00
Dan Helfman 4b795ef722 Removed locale setting from model/schema.sql and put it in the INSTALL instructions instead. 2008-08-05 16:40:19 -07:00
Dan Helfman 1c44759ca5 Updated with missing DROP of group-related tables/views. 2008-08-03 13:57:03 -07:00
Dan Helfman 3fd3f23fe0 No longer stripping out puncutation when searching titles. 2008-06-30 02:09:14 -07:00
Dan Helfman fe139cc749 First pass for suggest-as-you-type for linking. 2008-06-27 16:11:09 -07:00
Dan Helfman 599971ba01 When linking to a note by title, the note resolution is now
case-insensitive instead of case-sensitive.
2008-06-25 20:04:06 -07:00
Dan Helfman a8a6070da0 Implemented controller.users.signup_group_member().
Modified UI code to call this method correctly and display results.
Split generic user signup functionality out into a separate private method.
2008-06-06 14:46:29 -07:00
Dan Helfman 0faa06ea10 Called controller.Users.calculate_group_storage() from various places. Fixed model.User.sql_calculate_group_storage(). 2008-06-05 15:59:01 -07:00
Dan Helfman f8efc2f178 Added a new group_storage_bytes member to model.User and some SQL to calculate it. 2008-06-04 19:46:08 -07:00
Dan Helfman 78f049c305 Fixed bug in model.Group SQL select. 2008-06-02 19:53:09 -07:00
Dan Helfman 79e2c45533 New controller.Groups class and a new controller.Users.check_group() method.
Also a new model.Group.sql_load_users() method.
Lots of unit tests.
2008-05-29 16:36:14 -07:00
Dan Helfman 173adffa82 Updated to also reap group-related data. 2008-05-29 14:01:22 -07:00
Dan Helfman df3d170362 View groups that you're a member of, with an indicatation if you're an admin of that group.
- modify controller.Users.current() to return the user's groups
    - update test_current() unit tests to expect empty groups list in results
  - modify Main_page, Notebook_rss, Front_page, Tour_page, and Upgrade_page to accept a new groups parameter
    - Main_page should add it as a hidden HTML variable
  - update Wiki.js to read the hidden groups variable and display the groups in account settings
2008-05-28 16:05:38 -07:00
Dan Helfman bcedc11e9a Added user_group-related SQL methods to model.User. 2008-05-28 13:33:33 -07:00
Dan Helfman f610577bf8 New model.Group class to wrap group-related tables. 2008-05-28 13:32:38 -07:00
Dan Helfman d38ca756a2 Added database schema changes to support user group-related tables, views, and indices. 2008-05-27 15:22:18 -07:00
Dan Helfman ae5c911c1c New multiple-notebook search query was way too slow. Now fixed.
- make model.Notebook.sql_search_notes() search either with user_id or an anonymous user_id, not both
  - update controller.Notebooks.search(), so if the anonymous user has access to the given notebook,
    then run the search as the anonymous user instead of the given user id
  - update unit tests
  - don't search trash/deleted notebooks
2008-05-19 22:36:21 -07:00
Dan Helfman 02a3544590 Search result now return notes from multiple notebooks.
- change model.Notebook.sql_search_notes() to be a static method
   - take a first_notebook_id argument and a user_id argument
   - join user_notebook on notebook_id and matches on user_notebook.user_id instead of notebook_id
   - order by notebook_id = first_notebook desc, rank instead of just rank
   - include search result for notebooks readable by anonymous user, but only if such a notebook is given as first_notebook_id
 - update code that calls model.Notebook.sql_search_notes()
 - update model.Note.to_dict() to include notebook_id
 - modify Wiki.display_search_results()
   - separate search results for the current notebook and results for all other notebooks
   - indicate which notebook each result is from
   - if there are results in other notebooks but no results in the current notebook, indicate that clearly
   - when you click on a result note link in the current notebook, it should simply open a new note
   - when you click on a result note link in another notebook, it should open in a new window
 - test in IE
 - update unit tests for:
   - controller.Notebooks.search()
   - model.Notebook.sql_search_notes()
   - model.Note.to_dict()
2008-05-19 15:16:25 -07:00
Dan Helfman 18982dc129 Implemented basic user account settings. Now you can change your email
address.
2008-05-08 03:05:35 +00:00
Dan Helfman d7f9e96604 Forgot to update the schema.sql file based on delta/1.3.14.sql 2008-05-07 20:40:34 +00:00
Dan Helfman c6ab3b5da0 Fixed a database indexing bug that prevented notes with really long (~2700+
character) titles from saving correctly.

Changed the literal quotation character in the starting wiki note to the
""" character entity so it doesn't show up as a change in the diff.
2008-05-05 22:56:20 +00:00