Sun, 07 Dec 2008 17:02:10 +0000 Move document sidebar entries extraction to document.View
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 17:02:10 +0000] rev 705
Move document sidebar entries extraction to document.View This way other modules can benefit from the same logic. Also make use of the sidebar.getSidebarMenu method so that getMenusForScope is no longer specific to full menu's. Patch by: Sverre Rabbelier
Sun, 07 Dec 2008 17:01:44 +0000 Factor out sidebar entry construction
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 17:01:44 +0000] rev 704
Factor out sidebar entry construction This makes it possible to reuse this logic in other modules as well, preventing code duplication. While at it, move additional_sidebar merging before the other entries (additional entries should go first, since the other entries are mostly dev-only etc). Patch by: Sverre Rabbelier
Sun, 07 Dec 2008 15:29:37 +0000 Rename getSidebarLinks to getSidebarMenus
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:29:37 +0000] rev 703
Rename getSidebarLinks to getSidebarMenus Patch by: Sverre Rabbelier
Sun, 07 Dec 2008 15:29:10 +0000 Remove bogus scope from Site
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:29:10 +0000] rev 702
Remove bogus scope from Site This makes Site an unscoped entity (similar to how User and Sponsor do not have a scope). Patch by: Sverre Rabbelier
Sun, 07 Dec 2008 15:28:36 +0000 If an entity is unscoped, do not try to retrieve a scope
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:28:36 +0000] rev 701
If an entity is unscoped, do not try to retrieve a scope Patch by: Sverre Rabbelier
Sun, 07 Dec 2008 15:02:29 +0000 Dynamically add sidebar items for programs
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:02:29 +0000] rev 700
Dynamically add sidebar items for programs This adds sidebar items for programs as appropriate. From the docstring: A menu item is generated for each program that is currently running. The public page for each program is added as menu item, as well as all public documents for that program. Additionally, we allow access to a program's public page to everyone, even if the user is not logged in. Patch by: Sverre Rabbelier
Sun, 07 Dec 2008 15:02:03 +0000 Add and use a placeholder for checkIsDocumentPublic
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:02:03 +0000] rev 699
Add and use a placeholder for checkIsDocumentPublic We should somehow decide whether a document is publically viewable. This should of course be dependant on what the document is, e.g. the FAQ of a program should be allow(), whereas a student's application should be checkIsMentor(). Patch by: Sverre Rabbelier
Sun, 07 Dec 2008 15:01:31 +0000 Added a public redirect
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:01:31 +0000] rev 698
Added a public redirect Also some minor cleanups in the redirects code. Patch by: Sverre Rabbelier
Sun, 07 Dec 2008 13:49:22 +0000 Prepare for callbacks that return more than one menu
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 13:49:22 +0000] rev 697
Prepare for callbacks that return more than one menu This paves the way for callbacks that dynamically construct their menu based on in-db content, such as Programs and Documents. Patch by: Sverre Rabbelier
Sun, 07 Dec 2008 13:38:53 +0000 Make use of the 'sidebar' param for user_self
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 13:38:53 +0000] rev 696
Make use of the 'sidebar' param for user_self Instead of overriding getSidebarLinks we use the sidebar param since user_self is now in it's own View. Patch by: Sverre Rabbelier
(0) -300 -100 -10 +10 +100 +300 +1000 tip