[OGo-Bugs][Bug 1043] Enh: Support Extended Attributes On Tasks
bugs@opengroupware.org
bugs@opengroupware.org
Sun, 18 May 2008 17:54:48 +0200 (CEST)
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug
report.
http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1043
------- Additional Comments From awilliam@whitemice.org 2008-05-16 12:52 -------
WebUI/Templates/LSWScheduler/LSWAppointmentViewer.wox
--------
<var:if condition="showProperties">
<var:component className="LSWObjectViewer"
object="extendedAttributes"
attributes="extendedAttributeSpec"
const:namespace=
"http://www.opengroupware.org/properties/ext-attr"
/>
</var:if>
WebUI/Scheduler/LSWScheduler/common.h
------
#ifndef XMLNS_OGoExtAttrPropNamespace
# define XMLNS_OGoExtAttrPropNamespace \
@"http://www.opengroupware.org/properties/ext-attr"
#endif
WebUI/Scheduler/LSWScheduler/LSWAppointmentViewer.m
------
...
+ (void)initialize {
...
extAttrSpec = [[ud arrayForKey:@"OGoExtendedAptAttributes"] copy];
extAttrSpec = [[ud arrayForKey:@"OGoExtendedAptAttributes"] copy];
if ([extAttrSpec isNotEmpty])
NSLog(@"Note(LSWAppointmentViewer): extended apt attrs are configured.");
else
extAttrSpec = nil;
}
...
/* extended apt attributes (properties) */
- (BOOL)showProperties {
return [extAttrSpec isNotEmpty];
}
- (NSArray *)extendedAttributeSpec {
return extAttrSpec;
}
- (NSDictionary *)extendedAttributes {
SkyObjectPropertyManager *pm;
pm = [[[self session] commandContext] propertyManager];
return [pm propertiesForGlobalID:[[self object] valueForKey:@"globalID"]
namespace:XMLNS_OGoExtAttrPropNamespace];
}
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.