merge of '6446b9b2f85e41554b2841ae494d4cd03f7e3d0f'

and 'ecfd588ececc0cf909752cbf7561c097b6533867'

Monotone-Parent: 6446b9b2f85e41554b2841ae494d4cd03f7e3d0f
Monotone-Parent: ecfd588ececc0cf909752cbf7561c097b6533867
Monotone-Revision: 75fcb06d679aeaa2164c930b62aab2d44c31ff16

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-08-13T21:30:12
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2008-08-13 21:30:12 +00:00
commit 326fce5029
5 changed files with 29 additions and 9 deletions

View file

@ -1,3 +1,17 @@
2008-08-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/LDAPUserManager.m ([LDAPUserManager
-contactInfosForUserWithUIDorEmail:uid]): only use the
authentication sources.
2008-08-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoComponentOccurence.m
([SOGoComponentOccurence
+occurenceWithComponent:newComponentwithMasterComponent:newMasterinContainer:newContainer]):
seconds is now a NSTimeInterval instead of an int, to avoid
casting problems on the PowerPC architecture.
2008-08-10 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailPartViewers/UIxMailPartICalViewer.m

View file

@ -25,6 +25,8 @@
#import <SOGo/SOGoObject.h>
@class NSException;
@class iCalRepeatableEntityObject;
@class SOGoCalendarComponent;
@ -32,7 +34,7 @@
- (iCalRepeatableEntityObject *) occurence;
- (BOOL) isNew;
- (id) delete;
- (NSException *) delete;
@end

View file

@ -21,6 +21,7 @@
*/
#import <Foundation/NSArray.h>
#import <Foundation/NSCalendarDate.h>
#import <Foundation/NSString.h>
#import <NGCards/iCalCalendar.h>
@ -42,7 +43,7 @@
inContainer: (SOGoCalendarComponent *) newContainer
{
SOGoComponentOccurence *occurence;
unsigned int seconds;
NSTimeInterval seconds;
NSString *newName;
if (newComponent == newMaster)
@ -50,8 +51,8 @@
else
{
seconds = [[newComponent recurrenceId] timeIntervalSince1970];
newName = [NSString stringWithFormat: @"occurence%d", seconds];
};
newName = [NSString stringWithFormat: @"occurence%d", (int) seconds];
}
occurence = [self objectWithName: newName inContainer: newContainer];
[occurence setComponent: newComponent];
[occurence setMasterComponent: newMaster];
@ -134,7 +135,7 @@
return component;
}
- (id) delete
- (NSException *) delete;
{
NSException *error;
iCalCalendar *parent;
@ -155,7 +156,7 @@
return error;
}
- (void) saveComponent: (id) newEvent
- (void) saveComponent: (iCalRepeatableEntityObject *) newEvent
{
[container saveComponent: newEvent];
}

View file

@ -323,7 +323,7 @@ static BOOL forceImapLoginWithEmail = NO;
NSDictionary *userEntry;
NSEnumerator *ldapSources;
LDAPSource *currentSource;
NSString *cn, *c_uid;
NSString *sourceID, *cn, *c_uid;
NSArray *c_emails;
BOOL access;
@ -336,9 +336,10 @@ static BOOL forceImapLoginWithEmail = NO;
[currentUser setObject: [NSNumber numberWithBool: YES]
forKey: @"MailAccess"];
ldapSources = [sources objectEnumerator];
while ((currentSource = [ldapSources nextObject]))
ldapSources = [[self authenticationSourceIDs] objectEnumerator];
while ((sourceID = [ldapSources nextObject]))
{
currentSource = [sources objectForKey: sourceID];
userEntry = [currentSource lookupContactEntryWithUIDorEmail: uid];
if (userEntry)
{

View file

@ -33,6 +33,8 @@
#import <NGObjWeb/WORequest.h>
#import <NGObjWeb/WOResponse.h>
#import <NGExtensions/NSNull+misc.h>
#import <GDLContentStore/GCSFolder.h>
#import <GDLContentStore/GCSFolderManager.h>