Closed
Bug 390147
Opened 18 years ago
Closed 18 years ago
Export calendar is not wired up correctly
Categories
(Calendar :: General, defect)
Calendar
General
Tracking
(Not tracked)
VERIFIED
FIXED
0.7
People
(Reporter: michael.buettner, Assigned: michael.buettner)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.60 KB,
patch
|
Fallen
:
review+
chris.j.bugzilla
:
ui-review+
|
Details | Diff | Splinter Review |
'Export calendar' is only available if an item has been selected, but since we're exporting the entire calendar this doesn't make sense. The relevant source location can be found at [1]. This is an unfortunate copy'n'paste but that has been introduced by Bug #371916.
Wouldn't it be a good idea to consolidate the commands used for Sunbird and Lightning? Is there any reason for defining the commands twice, once in sunbird/base/content/calendar-sets.inc and once more in calendar/lightning/content/messenger-overlay-sidebar.xul? We could reduce such regressions if we'd consolidate the code that takes care of this stuff.
[1] http://lxr.mozilla.org/mozilla1.8/source/calendar/lightning/content/messenger-overlay-sidebar.xul#170
Assignee | ||
Comment 1•18 years ago
|
||
See [1] for Sunbird's and [2] for Lightning's version of the export command. Sunbird exports the selected events while Lightning always export the entire calendar. Christian, in order to stay consistent we should decide which route to take. What's your opinion on that?
[1] http://lxr.mozilla.org/mozilla1.8/source/calendar/sunbird/base/content/calendar-sets.inc#87
[2] http://lxr.mozilla.org/mozilla1.8/source/calendar/lightning/content/messenger-overlay-sidebar.xul#170
Comment 2•18 years ago
|
||
(In reply to comment #1)
> Sunbird exports the selected events while Lightning always
> export the entire calendar.
Sunbird offers both export/publish functionality: You can either export/publish the selected items or you can export/publish the entire calendar.
Lightning currently lacks the ability to export/publish the selected items.
Assignee | ||
Comment 3•18 years ago
|
||
This patch addresses the issue that "Export Calendar" is disabled if no item has been selected, but since we're exporting the entire calendar this shouldn't be taken into account.
If we decide to consolidate Sunbird's and Lightning's functionality, this is just part of the solution. But I'm submitting this patch to get the issue going.
Attachment #274466 -
Flags: ui-review?(christian.jansen)
Attachment #274466 -
Flags: review?(philipp)
Comment 5•18 years ago
|
||
Comment on attachment 274466 [details] [diff] [review]
patch v1
r=philipp for this part.
We should either file a followup bug to take care of the unification, or morph this bug after the checkin.
Please also file a follow-up bug for creating a common set of commandsets. I was also thinking of this when creating the unify calendar list patch, but didn't come around to filing that bug yet.
Attachment #274466 -
Flags: review?(philipp) → review+
Updated•18 years ago
|
Assignee: nobody → michael.buettner
Updated•18 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → 0.7
Comment 6•18 years ago
|
||
Comment on attachment 274466 [details] [diff] [review]
patch v1
In general Export should also work if the Calendar is selected in the Calendar List only. (Same for Publish & Edit) r=christian with that change.
Attachment #274466 -
Flags: ui-review?(christian.jansen) → ui-review-
Assignee | ||
Comment 7•18 years ago
|
||
(In reply to comment #6)
> (From update of attachment 274466 [details] [diff] [review])
> In general Export should also work if the Calendar is selected in the Calendar
> List only. (Same for Publish & Edit) r=christian with that change.
This patch makes the "Export Calendar" option always work. So, maybe I'm plain stupid, but I don't understand what you're trying to tell me. :-)
Comment 9•18 years ago
|
||
Christian, could you please take another look at this bug? We should consolidate the export mechanism for Sunbird and Lightning. I propose the following:
Short-Term:
* Allow Exporting either the whole calendar, or only the selection from both apps.
* Alternatively, just allow what the above patch does, to export the whole calendar also via menu.
Mid-Term:
* Create a wizard for export (and import), in which you can choose either the whole calendar, or just the selected items. This can be nicely integrated in the Thunderbird export wizard (see bug 389152 and bug 389154), and be a separte wizard in Sunbird (see bug 167255)
Blocks: 167255
Assignee | ||
Comment 10•18 years ago
|
||
Christian, any update on this issue? I still don't know what to do with this patch. This just makes the export command *always* available, it doesn't change the semantics.
Comment 11•18 years ago
|
||
Comment on attachment 274466 [details] [diff] [review]
patch v1
ui=christian
Attachment #274466 -
Flags: ui-review- → ui-review+
Assignee | ||
Comment 12•18 years ago
|
||
The follow-up bug has already been filed as Bug 390508.
Assignee | ||
Comment 13•18 years ago
|
||
patch checked in on trunk and MOZILLA_1_8_BRANCH
-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 14•18 years ago
|
||
verified with
Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.8pre) Gecko/20071002 Sunbird/0.7
Status: RESOLVED → VERIFIED
Comment 15•18 years ago
|
||
How did you verified a Lightning bug with Sunbird?
You need to log in
before you can comment on or make changes to this bug.
Description
•