mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
See ChangeLog
Monotone-Parent: 4437a82e041d016710ea3a45d8b7cf5b6341afff Monotone-Revision: 0746b51101ad96419ffd4e8f557f967f13b70a60 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2009-10-13T20:17:29 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -56,6 +56,7 @@ static NSString *uidColumnName = @"c_uid";
|
||||
url = [theURL copy];
|
||||
uid = [theUID copy];
|
||||
defFlags.ready = YES;
|
||||
defFlags.isNew = YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -134,7 +135,7 @@ static NSString *uidColumnName = @"c_uid";
|
||||
|
||||
/* fetch values */
|
||||
row = [channel fetchAttributes: attrs withZone: NULL];
|
||||
defFlags.isNew = (row == nil);
|
||||
defFlags.isNew = !row;
|
||||
[channel cancelFetch];
|
||||
|
||||
/* remember values */
|
||||
@@ -307,7 +308,7 @@ static NSString *uidColumnName = @"c_uid";
|
||||
|
||||
[self fetchProfile];
|
||||
if (values)
|
||||
jsonRep = [values jsonRepresentation];
|
||||
jsonRep = [values jsonStringValue];
|
||||
else
|
||||
jsonRep = @"{}";
|
||||
|
||||
@@ -402,13 +403,6 @@ static NSString *uidColumnName = @"c_uid";
|
||||
return [self primaryFetchProfile];
|
||||
}
|
||||
|
||||
- (void) flush
|
||||
{
|
||||
[values removeAllObjects];
|
||||
defFlags.modified = NO;
|
||||
defFlags.isNew = NO;
|
||||
}
|
||||
|
||||
/* typed accessors */
|
||||
|
||||
- (NSArray *) arrayForKey: (NSString *) key
|
||||
|
||||
Reference in New Issue
Block a user