mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 19:35:38 +00:00
Monotone-Parent: 9fd0514bbfcb3644ae55d706b2e8133b5b8a1280
Monotone-Revision: a43f16c8cf580c2fed97407d3923b03048908bdd Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-29T18:15:11 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
2007-03-29 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Contacts/UIxContactsListView.m ([UIxContactsListView
|
||||
-canAccessContentAction]): new method to override the one from
|
||||
UIxFoldersActions by taking into account the fact that, this time,
|
||||
the clientObject is an ldap folder. Removed many method that used
|
||||
to be related to the handling of the user selector.
|
||||
|
||||
* UI/Scheduler/UIxCalDayView.m: commented out many unused methods
|
||||
to make sure they can be removed.
|
||||
|
||||
|
||||
@@ -74,39 +74,13 @@
|
||||
return searchText;
|
||||
}
|
||||
|
||||
- (NSString *) selectorComponentClass
|
||||
{
|
||||
return selectorComponentClass;
|
||||
}
|
||||
|
||||
- (id) mailerContactsAction
|
||||
- (id <WOActionResults>) mailerContactsAction
|
||||
{
|
||||
selectorComponentClass = @"UIxContactsMailerSelection";
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id) calendarsContactsAction
|
||||
{
|
||||
selectorComponentClass = @"UIxContactsCalendarsSelection";
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id) addressBooksContactsAction
|
||||
{
|
||||
selectorComponentClass = @"UIxContactsAddressBooksSelection";
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id) aclsContactsAction
|
||||
{
|
||||
selectorComponentClass = @"UIxContactsAclsSelection";
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id <WOActionResults>) deleteAction
|
||||
{
|
||||
id <WOActionResults> result;
|
||||
@@ -196,4 +170,23 @@
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (WOResponse *) canAccessContentAction
|
||||
{
|
||||
WOResponse *response;
|
||||
NSString *clientClass;
|
||||
|
||||
clientClass = NSStringFromClass([[self clientObject] class]);
|
||||
|
||||
response = [context response];
|
||||
[response setStatus: 200];
|
||||
[response setHeader: @"text/plain; charset=\"ascii\""
|
||||
forKey: @"content-type"];
|
||||
[response
|
||||
appendContentString:
|
||||
([clientClass isEqualToString: @"SOGoContactLDAPFolder"])
|
||||
? @"1" : @"0"];
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@end /* UIxContactsListView */
|
||||
|
||||
Reference in New Issue
Block a user