Re: [Zope-dev] Aaargh, no safe seperators :S
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 )
Andy McKay wrote:
Dont put . in id's... I try not to anyway. Could we say . or if your id has a . use something else eg:
dots in ids are essential if you rely of search engine hits for your site. .html .gif .txt Just processing the extension on a file name is a lot quicker than doing a HEAD to get the content type :/
&dtml-foo.[bar.dot].y
Sorry, but yuk! ;-) cheers, Chris
Andy McKay wrote:
Dont put . in id's... I try not to anyway. Could we say . or if your id
has
a . use something else eg:
dots in ids are essential if you rely of search engine hits for your site.
.html .gif .txt
Just processing the extension on a file name is a lot quicker than doing a HEAD to get the content type :/
Hmm I suppose, I dont rely on search engines much so I have never worried about it. I always end up with some reason for them being imported no matter how hard I try.
&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 )
participants (3)
-
Andy McKay -
Chris Withers -
Scott Shepherd