[Zope] Benchmark ZOBD compared to RDBMS
Hi, I’m searching for benchmark comparing ZODB to some RDBMS like Mysql. I know that both technologies are different but I’d like to know if we should expect some performance problem with ZODB used to store millions of objects. Thanks Simon ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Call of TAL interpreter
Hello Someone could tell me where I could find in Zope the following call : from TALInterpreter import TALInterpreter thanks a lot ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Accessing file object to upload in an external method
Hi, I'm new in zope and I'm trying to upload a file on zope using localfs. I already done it through a little basic html page + python script. I would like now use it in an external method. Here is the line added in the external method: self.dir_filesystem.manage_upload(file=self.zipfile) zipfile is the name of the file in the html form (File ) I got the following error: File "D:\\D-Side/qross/zope_gui\Extensions\Project.py", line 31, in PrepareToCreateOrUpdateObject self.dir_filesystem.manage_upload(file=self.zipfile) exceptions.AttributeError: zipfile I'm quite sure that my error lies in the way I reference 'zipfile' but I don't know how to proceed Thanks for your help Simon ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Using LocalFs in a form embedded in our application
Hi, We are developing a web based application using Zope as webserver. One of our expected features consists in uploading a zip file on the server and after that to unzip it… Our pages are designed using zpt. I would like to include in one of my pages a simple form allowing to select a file in the client machine and to upload it on the server (in a dedicated directory, not in the zope DB). I have installed LocalFS. I try with a form like that in my code (copy/paste from the source code provided by localFS in zope): <form action="manage_upload" method="post" enctype="multipart/form-data"> <input type="file" name="file" size="25"/> <input class="form-element" type="submit" value="Add"/>form> But nothing happen when I clic on the ‘add’ button. No upload, no error. NB: this form is encapsulated in a macro (already encapsulated in a form), is it the cause of the problem? Someone have an idea?? Thanks in advance Here is the source code of the macro which encapsulates the form: -- tal:define="paths here/GetCurrentFolderContent"> Files and/or folders to import name="gui_OnChdirpp" style="border-width: 0;background-color:#FF;width: auto;height: auto" tal:condition="python: (session['projectCurrentFolder'] not in ('/', '\\')) and (session['user'] != 'anon')"/> You are in Current dir <form action="manage_upload" method="post" enctype="multipart/form-data"> <input type="file" name="file" size="25"/> <input class="form-element" type="submit" value="Add"/> form> tal:condition="python: session['user'] != 'anon'"> style="border-width: 0;background-color:#FF;width: auto;height: auto" tal:condition="python: pathType == 'Folder'" tal:attributes="src python: 'Images/%s' % pathType; name python: 'gui_OnChdir_%s' % path[0]"> tal:attributes="style python:'border-width: 0;;background-color:%s' % here.Shared.GetInfo('rowColor', paths.index(path)); checked python:here.IsInImportInfo(path[0]); name python:'cbfc_'+path[0]; disabled python:session['user'] == 'anon'"> tal:condition="python: path[1]" tal:content="python: path[0]" width="100%"> tal:condition="python: not path[1]" tal:content="python: path[0] + ' [removed]' " width="100%"> The folder is empty. Do not update files and folders tal:attributes="checked session/projectKeepOriginalInfo; disabled python:session['user'] == 'anon'"> Simon ALEXANDRE ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Bad Hostname with Zope 2.8.X on Windows
Hi all, I’m using Zope 2.8.0.b.1 on windows 2000. The problem is quite simple: when I start the zope server the hostname is ‘Localhost’ then it’s impossible to connect the server remotely (i.e. by specifying the IP address of the server) I know that in version 2.7 this problem doesn’t appear. When I launch zope 2.7 the hostname is ‘MyMachineName’ How to fix that? Which file should I update? Thank you Simon ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )