RE: [Zope] Namespace problem with folders starting with numbers
But it seems that workaround is not that difficult, assuming that you use the: _['1']['2']['3'] type of syntax when directly traversing, and just _[id] when traversing in an automated fasion. I am not seeming to have a problem, and I have a new project (online classfied ad system) I am working on where I have a hierarchy of 10,000 - 20,000 manageable objects, 3 levels/folders deep, and all of them have 'numeric' (that is strings like '671012374') ids. Are there any other problems from using numeric ids? Sean -----Original Message----- From: andres@corrada.com [mailto:andres@corrada.com] Sent: Friday, May 11, 2001 1:29 PM To: Ausum; zope@zope.org Subject: Re: [Zope] Namespace problem with folders starting with numbers That's right. It makes for simpler development if you never have to worry about ids that start with numbers. We encountered this problem in our development of a major e-commerce site and decided to prohibit ids starting with numbers. By the way, we also disallowed spaces in the ids. On Fri, May 11, 2001 at 02:39:27PM -0500, Ausum wrote:
Thank you, Sean.
Yes, eventually using <dtml-with> enables me to reach the property value, by placing a method (using your logic), at the same folder where it finds a folder with numbers as names. That means I'd need at least three methods, but guess this isn't a clean way of retrieving simple property values.
How does the community faces this? Do you just don't use numbers as folder names?
Ausum
------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com Internet Programming http://www.mamey.com ------------------------------------------------------ _______________________________________________ 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 (1)
-
sean.upton@uniontrib.com