Activity log for bug #360555

Date Who What changed Old value New value Message
2009-04-13 15:38:45 Paul Everitt bug added bug
2009-04-13 15:39:00 Paul Everitt karl3: importance Undecided Medium
2009-04-13 15:39:00 Paul Everitt karl3: assignee paul-agendaless
2009-04-13 15:39:00 Paul Everitt karl3: milestone m10
2009-04-16 01:51:56 Paul Everitt karl3: importance Medium Low
2009-04-17 20:44:13 Paul Everitt description Hide the Is Private box on add/edit forms in an office. Hide the Is Private box on add/edit forms in an office. Background ============= We have "tools" in communities for managing content. It's pretty nice: you can extend KARL simply by making a new tool. Each tool can manage content types it defines (or uses from other tools.) When we went to do the intranet side, we thought: let's make intranet "offices" into communities that also get tools. Most of the stuff is very similar. Except when it wasn't. There were lots of exceptions to the rules for intranet vs. community. And there were some decisions that OSI would make, but others probably wouldn't. We call both of these "except to the community rules" by the name of "policies" which are implemented in src/osi/osi/views/adapters.py For example, there is a rule that you don't make anything "private" in the intranet side. You have to be KarlStaff to see anything in the intranet, and OSI's rule is that KarlStaff can see everything in any intranet office. Thus, having "Is Private?" on add/edit forms is misleading at best, harmful at worst. However, these forms are the same views and templates that are used in the community side. We need a way to flag that, in certain conditions, we want to suppress that field. I have an adapter (osi.views.adapters.ShowIsPrivate) for this, but: - It isn't springing into action correctly - It uses my primitive understanding of adapters. When I first started doing these policy adapters, I didn't even know I could use __call__ !! This adapter at least knows that much. But I should have grabbed them using queryMultiAdapter, so the common case (used inside a community) didn't need an adapter, nor did the tests need to dummy one up. To Do ======= Currently, add/edit folder on the intranet side shows the Is Private field (at http://localhost:6543/offices/files/ and **login as admin**). Get that fixed, and see if you can clean up other occurrences to use queryMultiAdapter to make life easier for all of us. I don't know if there are any other occurrences of it beyond folder. I can't find any. Once you do Folder, close this issue and we'll re-open as necessary.
2009-04-17 20:44:33 Paul Everitt karl3: assignee paul-agendaless shane-hathawaymix
2009-04-18 03:35:38 Shane Hathaway karl3: status New In Progress
2009-04-19 22:50:49 Paul Everitt karl3: milestone m10 m11
2009-04-20 00:33:27 Paul Everitt karl3: importance Low Medium
2009-04-20 21:54:50 Shane Hathaway karl3: status In Progress Fix Committed
2009-05-15 20:15:12 Shane Hathaway karl3: status Fix Committed Fix Released