From: Malte S. <mal...@co...> - 2011-06-03 07:28:07
|
Hi Frank, as you asked me for the ]po[ Frontend for OpenACS Filestorage, here is how it works at the moment: The intranet-fs component is looking for the project_id when called (yes, we could have generalized that, but we did not). Then it figures out if there is a folder already associated with the project. If yes, display the contents of this folders, if not, create a new folder under the /projects folder (or, if a subproject, below the parent_project) under the main mounted file-storage instance and use acs_rels to associate it with the project. Additionally two callbacks are needed: 1) Whenever a project is changed, check if we need to move the folder because the parent_id (Superproject) has changed. 2) Whenever we change the membership information on the project, reset the permissions. Permissions is actually a little bit more tricky than just 2) and we are actually thinking about solving it differently, but as long as no customer complains, we have no incentive to fix it. So, to answer your second question: We don't have file-storage instances per object or object_type. There is only one file-storage root folder to be used, in line with the rest of ]project-open[ thinking, good or bad :-). Ideally we should get an AJAX (ExtJS) file storage frontend for that, but again, as long as noone is asking for it (and paying), no need to bother. It should be fairly easy to build though and you could take a look at the ajax-filestorage-ui which exists in OpenACS, yet I don't like how that one works (and looks....) Best wishes Malte -- Malte Sussdorff cognovís GmbH Schrödersweg 27 D-22453 Hamburg Mobil: +49 (0)151 / 230 33 826 Fon: +49 (0)40 / 386 60 521 Fax: +49 (0)40 / 386 60 523 www.cognovis.de HRB Hamburg 28909 Geschäftsführer: Malte Sussdorff Diese Nachricht ist streng vertraulich und enthält rechtlich geschützte Informationen. Sie ist nur für die Adressaten bestimmt. Falls Sie diese Mail fälschlicherweise erhalten haben, bitten wir Sie freundlicherweise uns umgehend telefonisch oder per E-Mail zu informieren und den Inhalt dieser Nachricht in Ihrem System zu löschen. Diese Nachricht ist anfällig für Datenkorruption, Abfangen von Daten, nicht autorisierte Änderungen, Verfälschung und Viren. Wir senden und empfangen E-Mails nur auf der Grundlage, dass wir nicht für solche Datenkorruption, Abfangen von Daten, nicht autorisierte Änderungen, Verfälschung und Viren und deren Konsequenzen haften. This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. E-Mail is susceptible to data corruption, interception, unauthorised amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, unauthorised amendment, tampering and viruses or any consequences thereof. |