[Zope-CMF] keywordIndex
Hello, I want to ask you about indexes and searches: I am using CPS over CMF and I am working with a KeywordIndex that index a vocabulary. The user can introduce a list of items to the KeywordIndex. For example: Subject is a keywordIndex and I can do 'Subject' = ['sports, 'arts', ...]. It seems that the keywordIndex default beheaviour is to do and OR of the items. ¿How can associate indexes with an AND? Thank you Daniel de la Cuesta Navarrete Técnico de Desarrollo FUNDACIÓN IAVANTE [EMAIL PROTECTED] Tel. 951 015 300 Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE. This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE. ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] keywordIndex
You told me: Subject = {'query' : (kw1,kw2), 'operator' : 'and'} That`s works fine. Thank you very much. Now something more dificult, what about if 'kw1' and 'kw2' are list and the relation between the items of the list is OR?? Do you understand me? I have: (kw1.1 OR kw1.2 .OR ... kw1.n) AND (kw2.1 OR kw2.2 OR .. kw2.n) Thank you!! El vie, 01-12-2006 a las 14:05 +0100, Andreas Jung escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 1. Dezember 2006 13:59:00 +0100 Daniel de la Cuesta [EMAIL PROTECTED] wrote: Hello, I want to ask you about indexes and searches: I am using CPS over CMF and I am working with a KeywordIndex that index a vocabulary. The user can introduce a list of items to the KeywordIndex. For example: Subject is a keywordIndex and I can do 'Subject' = ['sports, 'arts', ...]. It seems that the keywordIndex default beheaviour is to do and OR of the items. Subject = {'query' : (kw1,kw2), 'operator' : 'and'} - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFcCiSCJIWIbr9KYwRAgcVAJ9xNzE16kgBA9OxocZeZSIFs8L0WgCfTR0o x138NJewhHqe8IECreg5I5c= =+AEx -END PGP SIGNATURE- Daniel de la Cuesta Navarrete Técnico de Desarrollo FUNDACIÓN IAVANTE [EMAIL PROTECTED] Tel. 951 015 300 Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE. This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE. ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] keywordIndex
One more thing, How can I set OR association between differents indexes. For example: query= { 'Subject' : kw1, 'SearchableText': mytext} I would like to do an OR between 'Subject' and 'SearchableText' Thank you! El lun, 04-12-2006 a las 10:23 +0100, Andreas Jung escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 4. Dezember 2006 10:20:05 +0100 Daniel de la Cuesta [EMAIL PROTECTED] wrote: You told me: Subject = {'query' : (kw1,kw2), 'operator' : 'and'} That`s works fine. Thank you very much. Now something more dificult, what about if 'kw1' and 'kw2' are list and the relation between the items of the list is OR?? Do you understand me? I have: (kw1.1 OR kw1.2 .OR ... kw1.n) AND (kw2.1 OR kw2.2 OR .. kw2.n) Check out AdvancedQuery. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFc+kZCJIWIbr9KYwRAs7pAJ9b0yYqzi8h4LyYTB+0HYdUy4/WbgCfT3vH M8yh4egoCRuc66C9UdYoiN4= =8UMn -END PGP SIGNATURE- Daniel de la Cuesta Navarrete Técnico de Desarrollo FUNDACIÓN IAVANTE [EMAIL PROTECTED] Tel. 951 015 300 Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE. This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE. ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] File type
Hi, I have a File type containing an XML file and I need to parse it. How can I do that? How can I get the content of a file type? Thank you. -- *Daniel de la Cuesta Navarrete* *Técnico de Desarrollo de Software* FUNDACIÓN IAVANTE [EMAIL PROTECTED] Tel. 951 015 300 Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE. This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE. ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] File type
Solved, file.getEditableContent().view_image_or_file(file) thank you. Daniel de la Cuesta escribi: Hi, I have a "File" type containing an XML file and I need to parse it. How can I do that? How can I get the content of a file type? Thank you. -- Daniel de la Cuesta Navarrete Tcnico de Desarrollo de Software FUNDACIN IAVANTE [EMAIL PROTECTED] Tel. 951 015 300 Este correo electrnico y, en su caso, cualquier fichero anexo, contiene informacin confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgacin deber ser autorizada por IAVANTE. This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE. ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests