[Zope] Benchmark ZOBD compared to RDBMS

2005-08-09 Thread Simon ALEXANDRE








Hi,



Im searching for benchmark comparing ZODB to
some RDBMS like Mysql. I know that both technologies are different but Id
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

2005-06-17 Thread Simon ALEXANDRE








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

2005-05-26 Thread Simon ALEXANDRE
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 INPUT TYPE=file
NAME=zipfile SIZE=25 VALUE=)

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

2005-05-25 Thread Simon ALEXANDRE








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//formBut 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 advanceHere is the source code of the macro which encapsulates the form:--



tr
metal:define-macro=Macro_ImportFileSystem

 td colspan=5

 table
cellspacing=0 cellpadding=0 width=100% align=center

 tr
height=10pxtd//tr


tr


td align=center


table cellpadding=0 cellspacing=0 width=350px
align=center


tal:define=paths here/GetCurrentFolderContent


trtd colspan=3Files and/or folders to importimg
src="">


tr height=3pxtd colspan=3//tr


tr height=1px bgcolor=#CCFF60td
colspan=3//tr


tr height=25px


td colspan=3


input type=image src="">


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')/


nbsp;You are in span
tal:replace=session/projectCurrentFolderCurrent
dir/span


/td


/tr







!-- Start Form File Upload--

 
tr

  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

 

 
/tr

 
!-- End Form File Upload--





 
tr tal:repeat=path paths


span tal:define=rowBgColor python:here.Shared.GetInfo('rowColor',
paths.index(path))


td tal:define=pathType python: here.GetPathType(path[0])


tal:condition=python: session['user'] != 'anon'


input type=image


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]


img tal:condition=python: pathType != 'Folder'
tal:attributes=src python:'Images/%s' % pathType/


/td


td tal:attributes=bgcolor rowBgColor


input type=checkbox


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'


/td


td tal:attributes=bgcolor rowBgColor


tal:condition=python: path[1] tal:content=python:
path[0] width=100%


/td


td tal:attributes=bgcolor rowBgColor


tal:condition=python: not
path[1] tal:content=python: path[0] + ' [removed]' 
width=100%


/td


/span


/tr


tr tal:condition=not: paths


td colspan=3iThe folder is empty./i


/td


/tr


tr height=3pxtd colspan=3//tr


tr height=1px bgcolor=#CCFF60td
colspan=3//tr


tr tal:condition=python: session['mode'] == 'Update'


td colspan=3 align=rightDo not update files and
foldersnbsp;


input type=checkbox name=pjIgnorePaths
style=border-width: 0;background-color:#FF


tal:attributes=checked session/projectKeepOriginalInfo;


disabled python:session['user'] == 'anon'


/td


/tr


/table


/td


/tr

 /table

 /td

/tr





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

2005-05-13 Thread Simon ALEXANDRE








Hi all,



Im 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 its 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 doesnt
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 )