ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
[Zope] Are Lookups via DTML methods efficient?
by Jonathan Mark other posts by this author
Dec 30 2002 5:43PM messages near this date
RE: [Zope] Change current path in External Method | Re: [Zope] Are Lookups via DTML methods efficient?
I have a list of easy-to-remember website names, and
hard-to-remember URLs. My goal is that when coding my
Zope site using DTML I should be able to refer to a
URL by its easy-to-remember website name.

I am thinking of creating a near-identical group of
DTML methods whose IDs are the website names and whose
titles are the URLs.

Each method would then return its own title. 

Is this approach efficient? I could call a SQL
database instead, but I think that would be overkill
in this case. Also, opening up a connection for this
simple information might not be efficient either. 

Should I use a field index on a catalogue instead?
Each website name would only have a single URL, so the
search would only return a single value. 

Could there be an XML approach which might work well?
Ultimately I could have hundreds of URLs that I want
to call by website name.




__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

_______________________________________________
Zope maillist  -  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 )
Thread:
Jonathan Mark
Dieter Maurer

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved