* UI/WebServerResources/SchedulerUI.js (onMenuRawEvent, onMenuRawTask):

New callback to show the event/task content from the menu

  * UI/Scheduler/UIxComponentEditor.m (rawAction):
  New method that returns the object's raw content in a WOResponse.

  * UI/Templates/SchedulerUI/UIxCal{Day,Month,Main,Week}View.wox:
  New contextual menu item: Show Raw Source

  * UI/WebServerResources/ContactsUI.js (onMenuRawContact):
  Rework to use calendar/ics/raw

  * UI/Contacts/UIxContactFolderActions.m (rawAction):
  Removed / moved to UI/Contacts/UIxContactActions.m

  * UI/Contacts/UIxContactActions.m (rawAction):
  New method that returns the object's raw content in a WOResponse.

  * UI/Templates/ContactsUI/UIxContactFoldersView.wox:
  Show vCard content -> Show Raw Source

Monotone-Parent: e853157abbabf35bc95273da8bc10b2d3b142627
Monotone-Revision: 4e287287380938e20234ac951c09158c324b84b4

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-07-09T14:17:07
This commit is contained in:
Jean Raby committed 2012-07-09 14:17:07 +00:00
1 parent c4d11cd916
commit 71121914cf
17 files changed
+145 -69

No files matched your search

-47
View File
@@ -287,51 +287,4 @@
return rc;
}
- (id <WOActionResults>) rawAction
{
WORequest *request;
WOResponse *response;
NSArray *contactsId;
NSEnumerator *uids;
NSString *uid;
id currentChild;
SOGoContactGCSFolder *sourceFolder;
NSMutableString *content;
content = [NSMutableString string];
request = [context request];
response = [context response];
sourceFolder = [self clientObject];
contactsId = [request formValuesForKey: @"uid"];
if ((uids = [contactsId objectEnumerator]))
{
while ((uid = [uids nextObject]))
{
currentChild = [sourceFolder lookupName: uid
inContext: [self context]
acquire: NO];
if([currentChild isKindOfClass: [NSException class]])
continue;
[content appendFormat: [currentChild contentAsString]];
[content appendString: @"\n"];
}
}
if (![content length])
{
response = [self responseWithStatus: 404
andString: @"Contact does not exist"];
}
else
{
[response setHeader: @"text/plain; charset=utf-8"
forKey: @"content-type"];
[response appendContentString: content];
}
return response;
}
@end /* UIxContactsListView */