X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.25a (ClamAV 0.103.6/26820) X-Junk-Score: 0 [] X-KAS-Score: 0 [] Return-Path: Received: from mail.triptera.au ([175.45.182.215] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.17) with ESMTP id 29621455 for webobjects-dev@wocommunity.org; Wed, 22 Feb 2023 22:14:11 +0100 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=175.45.182.215; envelope-from=tim@triptera.com.au Received: from localhost (localhost [127.0.0.1]) by mail.triptera.au (Postfix) with ESMTP id 3351AA0030 for ; Thu, 23 Feb 2023 06:56:03 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at mail.triptera.au Received: from mail.triptera.au ([127.0.0.1]) by localhost (mail.triptera.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CDnvffSFBU5p for ; Thu, 23 Feb 2023 06:55:58 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=triptera.com.au; s=202212; t=1677099358; bh=92tr66nBF5+FN4cKTr703A3GW/gCcVaThnGzYzoqcxk=; h=Date:Subject:To:References:From:In-Reply-To:From; b=rNr9oWk/DAvLggSn82SqGe9H/WTDVbITQF9FL5h8wRTe5BLuA3qzWv4KEy05+8Hj4 kz2Fm6Lv/nUJAEvdih8o/ZcbOMsE38qQan4ZSga6j2luX0Z9bachBX83RMloTijNBs B/Q8jEx429egxVT04HOrz7Y/NwgoxCLSDyKRSzMnfv/RWXASga+MiG8OufRt3Znb5y VMjMPeybaSE+sdIPc7xoVdhol4btnXRcmPkVkJ81cor7196P8IOokLFJ24LDJ38XOm LQQzNlYMrt69s5fqtvw7X83rXKx7saR+35ocMX++v5sRqJJb1dsjF6UyrNT/kPvNTE ZzJqr9cpYafrg== Content-Type: multipart/alternative; boundary="------------VMSc584IlpHIJLnb4sikE2lQ" Message-ID: <5f754b4a-06a0-c976-615b-1a079d841fdb@triptera.com.au> Date: Thu, 23 Feb 2023 06:55:57 +1000 MIME-Version: 1.0 Subject: Re: [WO-DEV] Re: Load additional D2W models? Content-Language: en-AU To: WebObjects & WOnder Development References: From: D Tim Cummings In-Reply-To: This is a multi-part message in MIME format. --------------VMSc584IlpHIJLnb4sikE2lQ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sorry Markus, I don't use D2W either. Tim On 23/2/23 06:46, Aaron Rosenzweig wrote: > Sorry Markus, > > D2W is one of those things I thought was really neat but never used in > a production environment. Only kicked the tires. Sorry I don’t have > any ideas to achieve what you’d like to do :-) > >> On Feb 22, 2023, at 2:58 PM, Markus Ruggiero (rucotec) >> wrote: >> >> Please tick >> [  ] Nobody knows anything >> [  ] Nobody ever had such an idea and does not care >> [  ] Nobody out there anymore >> >>> On 21 Feb 2023, at 15:38, Markus Ruggiero (rucotec) >>> wrote: >>> >>> I found this property >>> “er.directtoweb.ERD2WModel.additionalModelNames” that can be use to >>> load additional D2W model files. I want to make this property >>> dynamic so that its list of model names is built from a directory >>> scan of the resources folder (or a subfolder) and all models found >>> are loaded. This would allow to have models built around some >>> grouping criteria like e.g. per entity without having to manually >>> maintain the list of names in the properties file. I am in a >>> prototype phase where I play extensively with a rather extensive >>> EOModel, adding and removing entities. Such functionality would be >>> great to have. >>> >>> Anyone done something like this? When during app startup would be a >>> good time to build this list? I think it must be done before D2W is >>> initialized. Probably application.run() right before calling >>> super.run() might already be too late? >>> >>> Open for any tip, idea, help, code snippets, whatever. >>> Thanks a lot >>> >>> ---markus--- >>> >>> >>> >> >> * >> Markus Ruggiero* >> * >> * >> rucotec GmbHwebhttps://rucotec.ch >> Leonhardsberg 1 emailmarkus.ruggiero@rucotec.ch >> 4051 Basel / Switzerlandmobile+41 79 508 4701 >> >> >> >> >> >> >> >> > --------------VMSc584IlpHIJLnb4sikE2lQ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Sorry Markus, I don't use D2W either.

Tim

On 23/2/23 06:46, Aaron Rosenzweig wrote:
Sorry Markus, 

D2W is one of those things I thought was really neat but never used in a production environment. Only kicked the tires. Sorry I don’t have any ideas to achieve what you’d like to do :-)

On Feb 22, 2023, at 2:58 PM, Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch> wrote:

Please tick
[  ] Nobody knows anything
[  ] Nobody ever had such an idea and does not care
[  ] Nobody out there anymore

On 21 Feb 2023, at 15:38, Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch> wrote:

I found this property “er.directtoweb.ERD2WModel.additionalModelNames” that can be use to load additional D2W model files. I want to make this property dynamic so that its list of model names is built from a directory scan of the resources folder (or a subfolder) and all models found are loaded. This would allow to have models built around some grouping criteria like e.g. per entity without having to manually maintain the list of names in the properties file. I am in a prototype phase where I play extensively with a rather extensive EOModel, adding and removing entities. Such functionality would be great to have.

Anyone done something like this? When during app startup would be a good time to build this list? I think it must be done before D2W is initialized. Probably application.run() right before calling super.run() might already be too late?

Open for any tip, idea, help, code snippets, whatever.
Thanks a lot

---markus---





Markus Ruggiero

rucotec GmbH                        web https://rucotec.ch
Leonhardsberg 1                   email markus.ruggiero@rucotec.ch
4051 Basel / Switzerland         mobile +41 79 508 4701









--------------VMSc584IlpHIJLnb4sikE2lQ--