mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 13:27:15 +00:00
Monotone-Parent: c8ffc75afc6375fd954ab207e9dbdef8b4793876
Monotone-Revision: a84c20b7d29bf952df6062daa2f86929f733e1f5 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-21T16:01:28 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
8bf367ea4c
commit
3823368fba
3 files changed
+32
No files matched your search
@@ -51,6 +51,7 @@
|
||||
NSString *priority;
|
||||
NSString *privacy;
|
||||
NSString *status;
|
||||
NSString *category;
|
||||
NSArray *categories;
|
||||
NSDictionary *cycle;
|
||||
NSString *cycleEnd;
|
||||
|
||||
@@ -121,6 +121,19 @@
|
||||
[emails release];
|
||||
}
|
||||
|
||||
- (void) _loadCategories
|
||||
{
|
||||
NSString *compCategories, *simpleCategory;
|
||||
|
||||
compCategories = [component categories];
|
||||
if ([compCategories length] > 0)
|
||||
{
|
||||
simpleCategory = [[compCategories componentsSeparatedByString: @","]
|
||||
objectAtIndex: 0];
|
||||
ASSIGN (category, [simpleCategory uppercaseString]);
|
||||
}
|
||||
}
|
||||
|
||||
/* warning: we use this method which will be triggered by the template system
|
||||
when the page is instantiated, but we should find another and cleaner way of
|
||||
doing this... for example, when the clientObject is set */
|
||||
@@ -145,6 +158,7 @@
|
||||
ASSIGN (status, [component status]);
|
||||
ASSIGN (categories, [[component categories] commaSeparatedValues]);
|
||||
ASSIGN (organizer, [component organizer]);
|
||||
[self _loadCategories];
|
||||
[self _loadAttendees];
|
||||
}
|
||||
// /* cycles */
|
||||
@@ -300,6 +314,16 @@
|
||||
return categories;
|
||||
}
|
||||
|
||||
- (void) setCategory: (NSArray *) newCategory
|
||||
{
|
||||
ASSIGN (category, newCategory);
|
||||
}
|
||||
|
||||
- (NSString *) category
|
||||
{
|
||||
return category;
|
||||
}
|
||||
|
||||
- (NSString *) itemCategoryText
|
||||
{
|
||||
return [self labelForKey:
|
||||
@@ -822,6 +846,7 @@
|
||||
[component setComment: comment];
|
||||
[component setUrl: url];
|
||||
[component setAccessClass: privacy];
|
||||
[component setCategories: [category capitalizedString]];
|
||||
[self _handleAttendeesEdition];
|
||||
[self _handleOrganizer];
|
||||
clientObject = [self clientObject];
|
||||
|
||||
Reference in new issue
Block a user