+2006-11-03 Helge Hess <helge.hess@opengroupware.org>
+
+ * v4.5.254
+
+ * DynamicElements/WOInput.m: changed to use -warnWithFormat:
+
+ * DynamicElements/WOCheckBox.m: subminor code cleanup
+
2006-11-02 Helge Hess <helge.hess@opengroupware.org>
* woapp-gs.make: fixed a bug in a variable test for which_lib, note
[self appendExtraAttributesToResponse:_response inContext:_ctx];
- if (self->otherTagString) {
+ if (self->otherTagString != nil) {
WOResponse_AddChar(_response, ' ');
WOResponse_AddString(_response,
[self->otherTagString stringValueInComponent:
/*
- Copyright (C) 2000-2005 SKYRIX Software AG
+ Copyright (C) 2000-2006 SKYRIX Software AG
+ Copyright (C) 2006 Helge Hess
This file is part of SOPE.
[(NSMutableDictionary *)_associations removeObjectForKey:@"type"];
if ([_associations objectForKey:@"NAME"]) {
- NSLog(@"WARNING: found 'NAME' association in element %@, "
- @"'name' is probably the right thing ..",
- self);
+ [self warnWithFormat:@"found 'NAME' association in element %@, "
+ @"'name' is probably the right thing.", _name];
}
}
return self;
return name;
[[_ctx component]
- logWithFormat:
- @"WARNING: in element %@, 'name' attribute configured (%@),"
+ warnWithFormat:
+ @"in element %@, 'name' attribute configured (%@),"
@"but no name assigned (using elementID as name) !",
self, self->name];
return [_ctx elementID];
NSMutableString *str;
str = [NSMutableString stringWithCapacity:128];
- if (self->value) [str appendFormat:@" value=%@", self->value];
- if (self->name) [str appendFormat:@" name=%@", self->name];
+ if (self->value != nil) [str appendFormat:@" value=%@", self->value];
+ if (self->name != nil) [str appendFormat:@" name=%@", self->name];
+
if (self->disabled) [str appendFormat:@" disabled=%@", self->disabled];
return str;
}