Martijn Pieters <mj@antraciet.nl> writes:
At 04:26 10/09/99 , John Goerzen wrote:
First. I created a ZClass in my own Application with my Events class. Do I need to delete it and recreate it so that it lists ClassAware as one of its meta types?
Yes, make sure that CatalogAware is the first object in the list! This is important.
This is very strange. It won't let me!
If it is the first item, it'll catalog itself by default in the catalog named, surprisingly, 'Catalog'. This default can be changed by calling
How does it know where to find this catalog?
<dtml-call "REQUEST.set('body_text', '"Martijn Pieters" and not "Martijn Faassen"')">
Exceptt that is a quoting problem there, which Zope won't like. I've been wondering how to solve just a problem myself. (The first " will be taken as ending the expr for call) Thanks for all the information, it is VERY useful! -- John Goerzen Linux, Unix consulting & programming jgoerzen@complete.org | Developer, Debian GNU/Linux (Free powerful OS upgrade) www.debian.org | ----------------------------------------------------------------------------+ The 149,679th digit of pi is 4.
At 15:39 10/09/99 , John Goerzen wrote:
Martijn Pieters <mj@antraciet.nl> writes:
At 04:26 10/09/99 , John Goerzen wrote:
First. I created a ZClass in my own Application with my Events class. Do I need to delete it and recreate it so that it lists ClassAware as one of its meta types?
Yes, make sure that CatalogAware is the first object in the list! This is important.
This is very strange. It won't let me!
You can't make a new class that has CatalogAware as the first parent? You can't change the base classes of a ZClass once it is created, at least, not easily. A trick can be found here: http://www.zope.org/pipermail/zope-dev/1999-August/001288.html
If it is the first item, it'll catalog itself by default in the catalog named, surprisingly, 'Catalog'. This default can be changed by calling
How does it know where to find this catalog?
By acquisition.
<dtml-call "REQUEST.set('body_text', '"Martijn Pieters" and not "Martijn Faassen"')">
Exceptt that is a quoting problem there, which Zope won't like. I've been wondering how to solve just a problem myself. (The first " will be taken as ending the expr for call)
Yeah, I know... Such a query would normally be typed into a search interface anyway. And I am sure we can find a way to escape a double quote if you really need it, it will have an octal value too. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
John Goerzen wrote:
Martijn Pieters <mj@antraciet.nl> writes:
<dtml-call "REQUEST.set('body_text', '"Martijn Pieters" and not "Martijn Faassen"')">
Exceptt that is a quoting problem there, which Zope won't like. I've been wondering how to solve just a problem myself. (The first " will be taken as ending the expr for call)
Just escape the double quote "\"" Python is the most flexible 'quoting' language ever. -Michel
At 16:30 10/09/99 , Michel Pelletier wrote:
John Goerzen wrote:
Martijn Pieters <mj@antraciet.nl> writes:
<dtml-call "REQUEST.set('body_text', '"Martijn Pieters" and not "Martijn Faassen"')">
Exceptt that is a quoting problem there, which Zope won't like. I've been wondering how to solve just a problem myself. (The first " will be taken as ending the expr for call)
Just escape the double quote "\""
Python is the most flexible 'quoting' language ever.
-Michel
It's not python we are quoting, but HTML. Try: <dtml-var "'My quote (") will not quote'"> and: <dtml-var "'My quote (\") will not quote'"> Both will fail. Using an octal value will work: <dtml-var "'My quote (\042) will quote'"> which will print My quote (") will quote And so we can do: <dtml-call "REQUEST.set('body_text', '\042Martijn Pieters\042 and not \042Martijn Faassen\042')"> -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (3)
-
John Goerzen -
Martijn Pieters -
Michel Pelletier