Dark or light voodoo with properties
The problem is simple - I have a website and at the top level there are some properties defined. I now want to use exactly the same code but allow the user to choose a different set of properties to use depending on the URL ... so given the following structure /folder1 /black/ /folder2 /web/folder3 /green/ /folder4 /folder5 /black/web/folder1 will give you folder1 with the black properties and /green/web/folder1 will give you folder1 with the green properties. I have a feeling this is so simple I'll kick myself when somebody tells me the answer but I can't for the life of me find it at the moment in the mailing lists. OK - listen - I'll kick myself now - just to get some credit rating >KICK<
KICK<
Anybody out there who can help me? Ian
On Mon, Oct 01, 2001 at 06:02:47PM +0900, Ian J Cottee wrote:
/black/web/folder1 will give you folder1 with the black properties and /green/web/folder1 will give you folder1 with the green properties. I have a
http://www.zope.org/Members/Hoekstra/ChangingZopeContexts Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
perhaps you should think in reverse... /web/folder1/black /web/folder1/green set the properties on /web/ as defaults and then set the same name properties on /black/ and /green/ as required. The system will use local properties if it finds them and work its way up the tree to find defaults - "Acquisition" Tom => -----Original Message----- => From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ian J => Cottee => Sent: Monday, 1 October 2001 7:03 PM => To: zope@zope.org => Subject: [Zope] Dark or light voodoo with properties => => => The problem is simple - I have a website and at the top level => there are some => properties defined. I now want to use exactly the same code but allow the => user to choose a different set of properties to use depending on => the URL ... => so given the following structure => => /folder1 => /black/ /folder2 => /web/folder3 => /green/ /folder4 => /folder5 => => /black/web/folder1 will give you folder1 with the black properties and => /green/web/folder1 will give you folder1 with the green => properties. I have a => feeling this is so simple I'll kick myself when somebody tells => me the answer => but I can't for the life of me find it at the moment in the => mailing lists. => OK - listen - I'll kick myself now - just to get some credit => rating >KICK< => >KICK< => => Anybody out there who can help me? => => Ian => => => _______________________________________________ => Zope maillist - Zope@zope.org => http://lists.zope.org/mailman/listinfo/zope => ** No cross posts or HTML encoding! ** => (Related lists - => http://lists.zope.org/mailman/listinfo/zope-announce => http://lists.zope.org/mailman/listinfo/zope-dev ) =>
participants (3)
-
Ian J Cottee -
Oleg Broytmann -
Tom Cameron