[Zope] Zcatalog search
Hello, i've indexed some dtml-documents with some metadata, for example a CPU field. I can search for a CPU or any other metadata, but how i can have the list of all the objects with a CPU property? Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] Newbie question
Hello, i want to view a dtml-document, calling it as a variable. For example: dtml-var standard_html_header h2dtml-var title_or_id/h2 p dtml-var testfile P dtml-var standard_html_footer where this file is called with this string: a href="test3?testfile=Running"test3/A The result i now get is the id, not the content of the file! Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] length of an object
Hello, i want to know the size of an image or a file. With dtml-var "_.len(object)" i count objects, but for the length? Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] MIME Problem
Hello all, i'm following the thread on the mime type, adding my own problem! I have created a zclass where the index_html is: Content-type: application/pdf dtml-let username="AUTHENTICATED_USER.getUserName()" dtml-in "SQL_get_priv(username=username)" dtml-if "Priv PrivilegioFile" dtml-var MyView dtml-else HTMLBODY P CENTER You are not allowed to see this file! /CENTER P /BODY/HTML /dtml-if /dtml-in /dtml-let Where MyView is an external python module: def Test(self): return self.data This solution is not working, to be honest i've checked it on NT2000 and it was perfect but on Win98 i get a small icon saying that i'm missing something to display the pdf file... If i delete the index_html everything is ok, but without the initial check. I don't understand why! The content type is correct, i've also tried with dtml-call "RESPONSE.setHeader('Content-Type','application/pdf')" but the problem is the same. Anyone can help me? Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] Why it doesn't work?
Hello, i can't understand why this simple method is not working: dtml-var standard_html_header ID of this page:dtml-var idBR dtml-with QUERY_STRING New ID is:dtml-var idbr /dtml-with dtml-var standard_html_footer If i call this page with a query string "?variable" i expect to see the id of the object called... but it's not working! Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ Zope maillist - [EMAIL PROTECTED] 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 )