2004-08-26 Helge Hess <helge.hess@skyrix.com>
+ * WOComponent: added ivar for clientObject, _without_ increasing class
+ version (so that we don't need to touch every component in OGo :-| ),
+ moved SoObjects methods to own category file in SoObjects (v4.3.16)
+
* WOComponentScript.m, WOComponentScriptPart.m: removed dependency on
NGScripting (disables WOx scripting due to missing backend) (v4.3.15)
-2004-08-26 Helge Hess <helge.hess@opengroupware.org>
-
* v4.3.14
* WOComponent.m, WOContext.m: added ivar for _ODCycleCtx, _without_
NSURL *wocBaseURL;
id cycleContext; // was: _ODCycleCtx
+ id wocClientObject;
}
- (id)initWithContext:(WOContext *)_ctx;
-# $Id$
+# $Id: GNUmakefile 1 2004-08-20 10:08:27Z znek $
include $(GNUSTEP_MAKEFILES)/common.make
SoLookupAssociation.m \
WOContext+SoObjects.m \
WODirectAction+SoObjects.m \
+ WOComponent+SoObjects.m \
WODirectActionRequestHandler+SoObjects.m\
WORequest+So.m \
SoTemplateRenderer.m \
--- /dev/null
+/*
+ Copyright (C) 2002-2004 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#include <NGObjWeb/WOComponent.h>
+#include "WOContext+SoObjects.h"
+#include "common.h"
+
+@implementation WOComponent(SoObjects)
+
+static BOOL debugOn = NO;
+
+- (void)setClientObject:(id)_client {
+ if (debugOn) [self debugWithFormat:@"set client: %@", _client];
+ ASSIGN(self->wocClientObject, _client);
+}
+- (id)clientObject {
+ if (self->wocClientObject != nil)
+ /* an explicit client object is set */
+ return self->wocClientObject;
+
+ return [[self context] clientObject];
+}
+
+@end /* WOComponent(SoObjects) */
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id: WOContext+SoObjects.m 4 2004-08-20 17:04:31Z helge $
#include "WOContext+SoObjects.h"
#include "SoObjectRequestHandler.h"
}
@end /* WOContext(SoObjectRequestHandler) */
-
-@implementation WOComponent(SoObjects)
-
-- (void)setClientObject:(id)_client {
- if (debugOn) [self debugWithFormat:@"set client: %@", _client];
- [self setObject:_client forKey:@"__soclient"];
-}
-- (id)clientObject {
- id client;
-
- if ((client = [self objectForKey:@"__soclient"]))
- return client;
-
- return [[self context] clientObject];
-}
-
-@end /* WOComponent(SoObjects) */
-
-@implementation WODirectAction(SoObjects)
-
-- (id)clientObject {
- return [[(id)self context] clientObject];
-}
-
-@end /* WODirectAction(SoObjects) */
/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2002-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include <NGObjWeb/WODirectAction.h>
+#include "WOContext+SoObjects.h"
#include "SoObject.h"
#include "common.h"
@implementation WODirectAction(SoObjectRequestHandler)
+- (id)clientObject {
+ return [[(id)self context] clientObject];
+}
+
- (id)lookupName:(NSString *)_name inContext:(id)_ctx acquire:(BOOL)_flag {
WODirectActionPubInvocation *inv;
NSString *daName;
# version file
-SUBMINOR_VERSION:=15
+SUBMINOR_VERSION:=16
# v4.2.413 requires libSaxObjC v4.2.33
# v4.2.341 requires libNGExtensions v4.2.77
withObject:nil];
[self->subcomponents release];
+ [self->wocClientObject release];
[self->wocBindings release];
[self->wocVariables release];
[self->wocName release];
libWEExtensions_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
libWEExtensions_LIBRARIES_DEPEND_UPON += \
- -lNGObjWeb \
- -lNGMime -lNGStreams -lNGExtensions -lEOControl \
+ -lNGObjWeb \
+ -lNGMime \
+ -lNGStreams -lNGExtensions -lEOControl \
-lXmlRpc -lDOM -lSaxObjC
ifneq ($(GNUSTEP_BUILD_DIR),)
WEExtensions_BUNDLE_LIBS += -lWEExtensions
WEExtensions_WOBUNDLE_LIBS += $(WEExtensions_BUNDLE_LIBS)
+
ifneq ($(GNUSTEP_BUILD_DIR),)
WEExtensions_LIB_DIRS += -L$(GNUSTEP_OBJ_DIR)
else
ifneq ($(GNUSTEP_BUILD_DIR),)
RELBUILD_DIR_APPSERVER=$(GNUSTEP_BUILD_DIR)/..
+RELBUILD_DIR_MIME=$(GNUSTEP_BUILD_DIR)/../../sope-mime
RELBUILD_DIR_SxCore=$(GNUSTEP_BUILD_DIR)/../../sope-core
RELBUILD_DIR_SxXml=$(GNUSTEP_BUILD_DIR)/../../sope-xml
-L$(GNUSTEP_OBJ_DIR) \
-L$(RELBUILD_DIR_APPSERVER)/WEExtensions/$(GNUSTEP_OBJ_DIR_NAME)\
-L$(RELBUILD_DIR_APPSERVER)/NGObjWeb/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SxCore)/NGMime/$(GNUSTEP_OBJ_DIR_NAME) \
+ -L$(RELBUILD_DIR_MIME)/$(GNUSTEP_OBJ_DIR_NAME) \
-L$(RELBUILD_DIR_SxCore)/NGStreams/$(GNUSTEP_OBJ_DIR_NAME) \
-L$(RELBUILD_DIR_SxCore)/NGExtensions/$(GNUSTEP_OBJ_DIR_NAME) \
-L$(RELBUILD_DIR_SxCore)/EOControl/$(GNUSTEP_OBJ_DIR_NAME) \
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include <NGObjWeb/WODynamicElement.h>