+2007-02-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+
+ * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject
+ -rolesOfUser:logininContext:context]): if object does not exists
+ (for example when it's being created), the current user has the
+ same rights on it than he/she has on its parent container.
+
+ * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder
+ -nameExistsInFolder:objectName]): methods that tests if a c_name
+ corresponding to the name passed as parameter is present in the db
+ folder.
+
2007-02-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUser.m ([SOGoUser
# SOPE version:
MAJOR_VERSION=4
-MINOR_VERSION=5
+MINOR_VERSION=7
SUBMINOR_VERSION:=24
SOGoContactGCSFolder = {
superclass = "SOGoFolder";
- defaultRoles = {
- "PUT" = ( "Owner", "Delegate" );
- "Add Documents, Images, and Files" = ( "Owner", "Delegate" );
- };
};
SOGoContactGCSEntry = {
superclass = "SOGoContentObject";
defaultRoles = {
"View" = ( "Owner", "Delegate", "Organizer", "Authenticated" );
- "PUT" = ( "Owner", "Delegate" );
- "Add Documents, Images, and Files" = ( "Owner", "Delegate" );
};
};
#import <NGObjWeb/WEClientCapabilities.h>
#import <NGObjWeb/SoObject+SoDAV.h>
+#import <NGObjWeb/WOContext.h>
#import <NGObjWeb/WOResponse.h>
+#import <NGObjWeb/WORequest.h>
#import <NGObjWeb/WOApplication.h>
#import <NGCards/NSDictionary+NGCards.h>
NSArray *sogoRoles;
NSString *role;
- rolesForObject
- = [NSMutableArray arrayWithArray: [super rolesForObject: object
- inContext: context]];
+ rolesForObject = [NSMutableArray new];
+ [rolesForObject autorelease];
+
+ sogoRoles = [super rolesForObject: object inContext: context];
+ if (sogoRoles)
+ [rolesForObject addObjectsFromArray: sogoRoles];
+
if ([[object ownerInContext: context] isEqualToString: [self login]])
[rolesForObject addObject: SoRole_Owner];
if ([object isKindOfClass: [SOGoObject class]])
pageName = "UIxContactsListView";
actionName = "addressBooksContacts";
};
- PUT = {
- protectedBy = "PUT";
- actionName = "PUT";
- };
};
};
pageName = "UIxContactView";
actionName = "vcard";
};
- PUT = {
- protectedBy = "PUT";
- };
};
};
--- /dev/null
+/* UIxMailPartHTMLViewer.h - this file is part of SOGo
+ *
+ * Copyright (C) 2007 Inverse groupe conseil
+ *
+ * Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
+ *
+ * This file is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This file 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef UIXMAILPARTHTMLVIEWER_H
+#define UIXMAILPARTHTMLVIEWER_H
+
+#import "UIxMailPartViewer.h"
+
+@interface UIxMailPartHTMLViewer : UIxMailPartViewer
+
+- (NSString *) flatContentAsString;
+
+@end
+
+#endif /* UIXMAILPARTHTMLVIEWER_H */
02111-1307, USA.
*/
-#include "UIxMailPartViewer.h"
-#include "UIxMailRenderingContext.h"
-#include "UIxMailSizeFormatter.h"
-#include "../MailerUI/WOContext+UIxMailer.h"
-#include <NGExtensions/NSString+Encoding.h>
-#include "common.h"
+#import <Foundation/NSDictionary.h>
+
+#import "UIxMailPartViewer.h"
+#import "UIxMailRenderingContext.h"
+#import "UIxMailSizeFormatter.h"
+#import "../MailerUI/WOContext+UIxMailer.h"
+#import <NGExtensions/NSString+Encoding.h>
+#import "common.h"
@implementation UIxMailPartViewer
"View" = ( "Owner", "Delegate", "Assistant" );
"WebDAV Access" = ( "Owner", "Delegate", "Assistant" );
"Access Contents Information" = ( "Owner", "Assistant", "Delegate" );
- "ReadAcls" = ( "Owner", "Assistant", "Delegate" );
+ "ReadAcls" = ( "Owner", "Delegate", "Assistant" );
"SaveAcls" = ( "Owner" );
"Delete Objects" = ( "Owner", "Delegate" );
};
};
SOGoRootPage = {
};
- SOGoFolder = {
- methods = {
- PUT = {
- protectedBy = "Add Documents, Images, and Files";
- };
- };
- };
SOGoUserFolder = {
methods = {
view = {