Screwy Mail List Archive?
Hi, I'm browsing the mail archive logging for mail reference permissions and came across one called [Zope] Determining permissions in a Product Aaron Straup Cope Great! - click on it url 2000-October/119150 and get - [Zope] I want to use html_quote as a function Soren Roug soren@roug.org Confused and frustrated of Guildford :( Dave
Dave, Try the archive at zope.nipltd.com, it's better imho. Phil ----- Original Message ----- From: "David Kyte" <david.kyte@microamps.com> To: <zope@zope.org> Sent: Wednesday, March 21, 2001 9:56 AM Subject: [Zope] Screwy Mail List Archive?
Hi,
I'm browsing the mail archive logging for mail reference permissions and came across one called
[Zope] Determining permissions in a Product Aaron Straup Cope
Great! - click on it url 2000-October/119150
and get -
[Zope] I want to use html_quote as a function Soren Roug soren@roug.org
Confused and frustrated of Guildford :(
Dave
_______________________________________________ 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 )
Hello, .. new day, new questions :-) A have a ZCatalog where instances of my zclass are cataloged. I added a search interface, and got three different input fields for searching three different attributes of the zclass. Now my question: I want to have only one input field, for searching all the three attributes. What syntax do I need? I have no idea where to place this syntax - in the searchform or reportform? Hopefully someone understands my question ... Marc
On Wed, 21 Mar 2001, Marc Fischer wrote:
A have a ZCatalog where instances of my zclass are cataloged. I added a search interface, and got three different input fields for searching three different attributes of the zclass.
Now my question:
I want to have only one input field, for searching all the three attributes.
What syntax do I need? I have no idea where to place this syntax - in the searchform or reportform?
In report form. What DTMl do you use now in report form? It'd be easy to extend it. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Here are my DTML methods, ... nearly the automatic generated ones Perhabs you could tell me where to edit this source ... Here is my report form: -------------------------------- <dtml-var standard_html_header> <dtml-with NewsItems> <dtml-in Catalog size=50 start=query_start> <dtml-if sequence-start> <dtml-if previous-sequence> <a href="<dtml-var URL><dtml-var sequence-query >query_start=<dtml-var previous-sequence-start-number>"> (Previous <dtml-var previous-sequence-size> results) </a> </dtml-if previous-sequence> <H2>Ihre Suchanfrage lieferte folgende Ergebnisse</H2> </dtml-if sequence-start> **** This is just the view of the returned attributes *** <dtml-call "REQUEST.set('NewsTableFolder','NewsItems')"> <dtml-var NewsTable_html> <br> ********** <dtml-if sequence-end> </table> <dtml-if next-sequence> <a href="<dtml-var URL><dtml-var sequence-query >query_start=<dtml-var next-sequence-start-number>"> (Next <dtml-var next-sequence-size> results) </a> </dtml-if next-sequence> </dtml-if sequence-end> <dtml-else> There was no data matching this <dtml-var title_or_id> query. </dtml-in> </dtml-with> and the search form: --------------------------------------------------------- <dtml-var standard_html_header> <form action="Report_html" method="get"> <table> <tr><th>Vorschau</th> <td><input name="Vorschau" width=30 value=""></td></tr> <tr><th>Html</th> <td><input name="Html" width=30 value=""></td></tr> <tr><th>Titel</th> <td><input name="Titel" width=30 value=""></td></tr> <tr><td colspan=2 align=center> <input type="SUBMIT" name="SUBMIT" value="Submit Query"> </td></tr> </table> </form> <dtml-var standard_html_footer>
-----Ursprungliche Nachricht----- Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Oleg Broytmann Gesendet: Mittwoch, 21. Marz 2001 11:59 An: Marc Fischer Cc: zope@zope.org Betreff: Re: [Zope] Searching the Catalog
On Wed, 21 Mar 2001, Marc Fischer wrote:
A have a ZCatalog where instances of my zclass are cataloged. I added a search interface, and got three different input fields for searching three different attributes of the zclass.
Now my question:
I want to have only one input field, for searching all the three attributes.
What syntax do I need? I have no idea where to place this syntax - in the searchform or reportform?
In report form. What DTMl do you use now in report form? It'd be easy to extend it.
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ 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 )
On Wed, 21 Mar 2001, Marc Fischer wrote:
Here is my report form: --------------------------------
<dtml-var standard_html_header>
<dtml-with NewsItems>
<dtml-in Catalog size=50 start=query_start>
The idea is to call the Catalog with indicies and values. You can do AND search this way: <dtml-in "Catalog(title='Title', body='Modie')" size=50 start=query_start> ("title" and "body" are the names of indicies you have in the Catalog) and your can do OR search this way: <dtml-in "Catalog(title='Title') + Catalog(body='Modie')" size=50 start=query_start> (I hope you understand the difference between AND and OR searches) The OR search, perhaps, will return duplicate results. There are ways to avoid them, but I only want to show you the idea in simple words. BTW, do you know every page on zope.org has "View DTML source" link? I stole catalog seraching there! :) Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Hi, <dtml-in "Catalog(Titel='hello', Vorschau='World')" size=50 start=query_start> works fine. But with the OR search a get some trouble. If I try: <dtml-in "Catalog(Titel='hello') + Catalog(Vorschau='world')" size=50 start=query_start> .. I get the message: Error Type: TypeError Error Value:__add__nor_radd__defined for these operands Someone an idea?? Marc
-----Ursprungliche Nachricht----- Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Oleg Broytmann Gesendet: Mittwoch, 21. Marz 2001 15:03 An: Marc Fischer Cc: zope@zope.org Betreff: Re: AW: [Zope] Searching the Catalog
On Wed, 21 Mar 2001, Marc Fischer wrote:
Here is my report form: --------------------------------
<dtml-var standard_html_header>
<dtml-with NewsItems>
<dtml-in Catalog size=50 start=query_start>
The idea is to call the Catalog with indicies and values. You can do AND search this way:
<dtml-in "Catalog(title='Title', body='Modie')" size=50 start=query_start> ("title" and "body" are the names of indicies you have in the Catalog)
and your can do OR search this way:
<dtml-in "Catalog(title='Title') + Catalog(body='Modie')" size=50 start=query_start> (I hope you understand the difference between AND and OR searches)
The OR search, perhaps, will return duplicate results. There are ways to avoid them, but I only want to show you the idea in simple words.
BTW, do you know every page on zope.org has "View DTML source" link? I stole catalog seraching there! :)
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ 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 )
On Wed, 21 Mar 2001, Marc Fischer wrote:
works fine. But with the OR search a get some trouble. If I try:
<dtml-in "Catalog(Titel='hello') + Catalog(Vorschau='world')" size=50 start=query_start>
.. I get the message:
Error Type: TypeError Error Value:__add__nor_radd__defined for these operands
Someone an idea??
Old Zope? 2.3.0 sums catalogs just fine! Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Marc Fischer wrote:
Hi,
<dtml-in "Catalog(Titel='hello', Vorschau='World')" size=50 start=query_start>
works fine. But with the OR search a get some trouble. If I try:
<dtml-in "Catalog(Titel='hello') + Catalog(Vorschau='world')" size=50 start=query_start>
.. I get the message:
Error Type: TypeError Error Value:__add__nor_radd__defined for these operands
Someone an idea??
Marc
What version of Zope? That feature isn't available pre 2.3.0. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
the neatest way would be to edit your zclass and the catalog : make a python-script named for example "allText" in your zclass containing the following : return context.field1 + context.field2 + context.field3 (this has to be done with pythonmethods in versions prior to 2.3) where field# is the name of your zclass attributes next make a textindex in your catalog named allText , and set up your input form to use this field (which should now contain text from all your attributes) good luck :-) -- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com on or about, Wednesday, March 21, 2001, we have reason to believe that Marc Fischer wrote something in the lines of : MF> Hello, .. MF> new day, new questions :-) MF> A have a ZCatalog where instances of my zclass are cataloged. I added a MF> search interface, and got three different input fields for searching three MF> different attributes of the zclass. MF> Now my question: MF> I want to have only one input field, for searching all the three attributes. MF> What syntax do I need? I have no idea where to place this syntax - in the MF> searchform or reportform? MF> Hopefully someone understands my question ... MF> Marc MF> _______________________________________________ MF> Zope maillist - Zope@zope.org MF> http://lists.zope.org/mailman/listinfo/zope MF> ** No cross posts or HTML encoding! ** MF> (Related lists - MF> http://lists.zope.org/mailman/listinfo/zope-announce MF> http://lists.zope.org/mailman/listinfo/zope-dev )
participants (6)
-
Casey Duncan -
David Kyte -
Geir B�kholt -
Marc Fischer -
Oleg Broytmann -
Phil Harris