[Zope] Re: [Zope-dev] Aaargh, no safe seperators :S

Scott Shepherd skot@pobox.com
Fri, 18 Aug 2000 14:05:49 -0400


>&dtml-foo.[bar.dot].y

In all the computer languages I know there's already a convention for 
solving this kind of problem.

	&dtml-foo.bar\.dot.y

But I prefer path-style identifiers:

	&dtml-/foo/bar\.dot/y

Then the correspondence to the site's folder structure is evident. 
Plus you can support both relative and absolute paths without 
confusing anybody:

	&dtml-foo/bar\.dot/y

Or, if y is a *property* of bar.dot,

	&dtml-foo/bar\.dot.y



>
>Dont put . in id's... I try not to anyway. Could we say . or if your id has
>a . use something else eg:
>
>&dtml-foo.[bar.dot].y
>
>?
>
>--
>     Andy McKay, Developer, ActiveState
>     http://www.ActiveState.com
>     Programming for the People
>
>
>----- Original Message -----
>From: "Chris Withers" <chrisw@nipltd.com>
>To: "Shane Hathaway" <shane@digicool.com>
>Cc: "Jonothan Farr" <jfarr@real.com>; <zope-dev@zope.org>
>Sent: Thursday, August 17, 2000 1:57 PM
>Subject: [Zope-dev] Aaargh, no safe seperators :S
>
>
> > Shane Hathaway wrote:
> > > That would probably work, but isn't kind of ugly?  Now we'd be forcing
> > > people to realize that colons can be path separators.  Only Mac users
> > > know this. :-)
> >
> > Well,
> >
> >   / and \ are bad XML
> >
> >   ; is bad XML, and _really_ ugly
> >
> >   . confuses when there's .'s in ids
> >
> > Any other suggestions :S
> >
> > cheers,
> >
> > Chris
> >
> > _______________________________________________
> > Zope-Dev maillist  -  Zope-Dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
> >
>
>
>_______________________________________________
>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 )