[Zope] Newbie property question

Bruce Elrick belrick@saltus.ab.ca
Sun, 19 Sep 1999 14:48:38 -0600


Luke Tymowski wrote:
> 
> Hello,
> 
> I want to create a list of URLs and be able to refer to them throughout Zope. I found I can do that by adding a property to the main page. But how do I create separate folder and be able to call its properties throughout Zope?
> 
> I want to do that so that if a URL changes I have to update it only once. I don't want to include URLs on the main page because that makes for a monster main property page.
> 
> <!--#var biscuit--> will turn into http://www.biscuit.com/ throughout Zope if I add it to the property page for the main page.
> 
> <!--#var References/biscuit--> fails if I create a subfolder called References and add biscuit to its property list.
> 
I think that <!--#var "References.biscuit"--> should work.  Alternately, you
could try <!--#with References--><!--#var biscuit--><!--#/with-->.

The problem with <!--#var References/biscuit--> is that it treats
References/biscuit as a single entity.  The quotes treat it as an expression,
where it can then find References as an object through Acquisition. the '.' is
an operator (maybe?) that looks for the sub-entity biscuit.  Or at least
that's how my newbie brain looks at it.

Cheers...
Bruce
--
Bruce Elrick, Ph.D.                       Saltus Technology Consulting Group
Cell:     (403) 870-4429
Personal: belrick@home.com                          IBM Certified Specialist
Business: belrick@saltus.ab.ca          ADSM, AIX Support, RS/6000 SP, HACMP