Re: [Zope] Python Script Security
Rich, You can modify the permissions on each of your python scripts to require some role, say gatekeeper and then proxy your front-end script to have the role gatekeeper. Then, only users or scripts with the role gatekeeper can call the script directly. Brian Brinegar Purdue University - Original Message - From: Richard Harley rich...@scholarpack.com To: zope@zope.org Sent: Friday, November 18, 2011 1:05:27 PM Subject: [Zope] Python Script Security Hello all I have a dtml method which builds a page from various different python scripts. How can I stop the python scripts from being called and passed variables independently of the main dtml method? I've tried some research on proxy roles but couldn't pin it down. ZSQL methods are not callable independently and I would like Python Scripts to behave the same. TIA Rich ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Importing Unauthorized?
We're in the process of migrating from Zope 2.11 to Zope 2.13, we have scripts which raise string exceptions, which is no longer allowed by the version of python. In particular, we have scripts which: raise Unauthorized However, we don't seem to be able to import the Unauthorized exception from AccessControl or zExceptions. What is the new way to raise an Unauthorized exception from within a Zope Python Script? Thanks, Brian Brinegar Web Services Coordinator Engineering Computer Network ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Object called from DTML
Okay, I have developed a product. When an instance of the product is called from DTML like, dtml-var object, REQUEST is not available. If I call a python script or a DTML Method from DTML REQUEST is available. The __call__ method is defined like this: def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): if REQUEST == {}: print No REQUEST defined else: print REQUEST defined I get No REQUEST defined when I call this dtml-var object if I call this directly it works. What am I doing wrong? How do I make my product work when called from DTML? Thanks, -Brian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [ZODB-Dev] Zope 2.5.1 with ZEO 2.0.2 (fwd)
Thanks Tino, I did this: chown -R httpd * su httpd ./start and now I get this: Traceback (most recent call last): File /data/www/Zope.251.ZEO2/Zope/z2.py, line 470, in ? import ZServer File /data/www/Zope.251.ZEO2/src/Zope-2.5.1-src/ZServer/__init__.py, line 80, in ? from HTTPServer import zhttp_server, zhttp_handler File /data/www/Zope.251.ZEO2/Zope/ZServer/HTTPServer.py, line 56, in ? from zLOG import LOG, register_subsystem, BLATHER, INFO, WARNING, ERROR ImportError: cannot import name LOG Don't get that when I start it as root. Any clues here? Thanks, -Brian On Wed, 19 Feb 2003, Tino Wildenhain wrote: Hi, On Tue, 18 Feb 2003 21:36:22 -0500 (EST) Brian R Brinegar [EMAIL PROTECTED] wrote: Sent this to zope-dev and haven't gotten a response. Thanks, -Brian -- Forwarded message -- Date: Tue, 18 Feb 2003 13:57:02 -0500 (EST) From: Brian R Brinegar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Zope 2.5.1 with ZEO 2.0.2 Hello, We are trying to upgrade the ZEO component of our Zope 2.5.1 system from ZEO 1.0 to ZEO 2.0.2. We are using Python 2.1.3, everything is compiled from source. Everything installs and starts fine, however when a request is made to the ZEO Client it hangs. The ZEO Server log shows no connection is made when the request is preformed. This has happened to me too with 2.6 and ZEO2. One solution somebody came up with was to start everything as the user who owns the files. I was not able to veryfy this with systrace - however, it works for me. Regards Tino ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zodb-dev ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.5.1 with ZEO 2.0.2
Hello, We are trying to upgrade the ZEO component of our Zope 2.5.1 system from ZEO 1.0 to ZEO 2.0.2. We are using Python 2.1.3, everything is compiled from source. Everything installs and starts fine, however when a request is made to the ZEO Client it hangs. The ZEO Server log shows no connection is made when the request is preformed. All of the ZEO unit tests are all successful. All of the files within the ZEO Client are owned by the httpd user. We run the start script as root. The problem is most definitly with the client, we can import zope on the client and connect to the ZEO Server from a python script. It seems like the main thread can access the ZEO Server, but ZServerPublisher threads cannot. Any ideas? Thanks, -Brian Brinegar ECN Web System Developer Purdue University Our start script looks like this: -- #! /bin/sh install_dir=/data/www/Zope.251.ZEO2 INST_HOME=${install_dir}/Zope export INST_HOME LD_LIBRARY_PATH=/data/www/Zope.251.ZEO2/lib export LD_LIBRARY_PATH PYTHONPATH=${install_dir}/lib/python2.1/site-packages/mx/DateTime/mxDateTime:${i nstall_dir}/lib/python2.1/site-packages/PIL:${install_dir}/Zope/lib/python/ZEO:$ {install_dir}/Zope/lib/python export PYTHONPATH exec ${install_dir}/bin/python $INST_HOME/z2.py -w 8080 -F 8081 -W 8082 -u httpd STUPID_LOG_FILE=/var/log/Zope.log STUPID_LOG_SEVERITY=-300 $@ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] ZEO 2 and Zope 2.5.1
We've been using ZEO 1 with Zope 2.5.1 but some issues exist with ZEO 1, so we decided to move to ZEO 2. Everything is installed installs and starts normally. The server logs show a connection. However any HTTP requests sent to the ZEO client hang. I did a bit of poking around and it appears that the load method of ClientStorage is not called when a request is recieved. Can anyone point me in the right direction? Thanks, -Brian Brinegar ECN Web Systems Developer Purdue University West Lafayette, IN ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZEO 2 and Zope 2.5.1
We cannot move to Zope 2.6.1 until we have more time for testing. In the mean time we would like to have the improvements of ZEO 2. We were running ZEO 1.0. We are trying to move to ZEO 2.0.2 out of the ZODB 3.1.1 release using Zope 2.5.1. The server logs say: 2003-02-17T22:18:54 INFO(0) ZSS:12829 new connection ('192.168.1.102', 38023): ManagedServerConnection ('192.168.1.102', 38023) The client logs say: -- 2003-02-17T22:26:24 INFO(0) ZCS:10901 ClientStorage (pid=10901) created RW/norma l for storage: '1' -- 2003-02-17T22:26:24 INFO(0) ZEC:1 ClientCache: storage='1', size=2; file [0]=None -- 2003-02-17T22:26:24 BLATHER(-100) zrpc:10901 CM.connect(): starting ConnectThrea d -- 2003-02-17T22:26:24 BLATHER(-100) zrpc:10901 CT: attempting to connect on 1 sock ets -- 2003-02-17T22:26:24 BLATHER(-100) zrpc:10901 CW: attempt to connect to ('192.168 .1.51', 15900) -- 2003-02-17T22:26:24 BLATHER(-100) zrpc:10901 CW: connect_ex(('192.168.1.51', 159 00)) returned EINPROGRESS -- 2003-02-17T22:26:24 BLATHER(-100) zrpc:10901 CW: connect_ex(('192.168.1.51', 159 00)) returned 0 -- 2003-02-17T22:26:24 TRACE(-300) zrpc:10901 message_output 4 bytes: 'Z200' -- 2003-02-17T22:26:24 INFO(0) ZCS:10901 Testing connection ManagedConnection ('19 2.168.1.51', 15900) -- 2003-02-17T22:26:24 TRACE(-300) zrpc-conn:192.168.1.51:15900 send msg: 0, 0, reg ister, ... cache validation messages truncated... 2003-02-17T22:26:27 INFO(0) ZServer HTTP server started at Mon Feb 17 17:26:27 2 003 Hostname: minimal Port: 8080 -- 2003-02-17T22:26:27 INFO(0) ZServer HTTP server started at Mon Feb 17 17:26:27 2 003 Hostname: minimal Port: 8082 -- 2003-02-17T22:26:27 INFO(0) ZServer FTP server started at Mon Feb 17 17:26:27 20 03 Hostname: minimal Port: 8021 -- 2003-02-17T22:26:27 INFO(0) ZServer FastCGI Server (V1.0) started at Mon Feb 17 17:26:27 2003 IP : Port: 8081 Socket path : None -- 2003-02-17T22:26:27 DEBUG(-200) zrpc:10901 CM.set_async({11: select-trigger (pi pe) at 82b494c, 4: ZServer.HTTPServer.zhttp_server listening :8080 at 0x8c2c6c 4, 19: ZServer.FCGIServer.FCGIServer listening :8081 at 0x8ecec94, 18: ZServ er.FTPServer.FTPServer listening :8021 at 0x8ecd3c4, 17: ZServer.HTTPServer.zh ttp_server listening :8082 at 0x8ecd68c, 16: ManagedConnection ('192.168.1.51' , 15900)}) -- 2003-02-17T22:26:27 BLATHER(-100) zrpc:10901 CM.set_async(): first call On Mon, 17 Feb 2003, Guido van Rossum wrote: We've been using ZEO 1 with Zope 2.5.1 but some issues exist with ZEO 1, so we decided to move to ZEO 2. Which version of ZEO 2 exactly? (It suffices to tell which exact ZODB 3.1.x release you used to get it.) Everything is installed installs and starts normally. The server logs show a connection. However any HTTP requests sent to the ZEO client hang. I did a bit of poking around and it appears that the load method of ClientStorage is not called when a request is recieved. Can anyone point me in the right direction? Would it be an option to upgrade to Zope 2.6.1 as well? If not, what exactly is in the logs? Note that you need to have the new ZEO in the Python path both on the client side and on the server side. --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] POSKeyErrors
We are running Zope 2.5.1 and ZEO 1. When someone does an Undo it doesn't seem to update all of the ZEO clients consistently. Some ZEO clients reflect the undo, others sometimes show an older version of the database and sometimes we get POSKeyErrors. Any idea what causes this? It's an old version of ZEO, is this a known bug? The traceback is below. Thanks, -Brian File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 114, in publish File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: cristina.d.farmus.1) File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 98, in publish File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_main) File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_main) File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: manage_main) File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: manage_main) File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/App/special_dtml.py, line 172, in _exec (Object: manage_main) File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_In.py, line 637, in renderwob (Object: objectItems) File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_In.py, line 763, in sort_sequence (Object: objectItems) File /data/www/Zope.11b/src/Zope-2.5.1-src/lib/python/ZODB/Connection.py, line 447, in setstate File /data/www/Zope.11b/Zope/lib/python/ZEO/ClientStorage.py, line 294, in load (Object: ('192.168.1.52', 11900)) File /data/www/Zope.11b/Zope/lib/python/ZEO/zrpc.py, line 168, in __call__ POSKeyError: 001aeea2 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Unsynced ZEO Clients and Undo
Hello, We've run into a problem with Zope 2.5.1 and ZEO 1 where a user does an Undo and some of the ZEO clients reflect the change and others do not. I believe it has to do with caches getting out of sync. Is this a known problem? It has happened to us at least 4 times that I know of. Usually we will restart all of the clients and remove the caches, to fix the problem, but this is not desirable. Thanks, -Brian Brinegar ECN Web Systems Developer Purdue University West Lafayette, IN ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Registering Product with Control Panel
Okay, I've got a product (Basic content object) Called HTMLBlock. When I start my ZEO Client with the product installed I don't recieve any error messages. The product is listed in the Select type to add... menu. However if I try to add an instance of the Product I recieve an AttributeError on HTMLBlock. After a little poking around I realized that the product is not listed in the /Control_Panel/Products/ list. The traceback I get when trying to add an instance is below. Thanks, -Brian Traceback (innermost last): File /data/www/Zope.mysql.pes161.HB10/src/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 89, in publish File /data/www/Zope.mysql.pes161.HB10/src/Zope-2.5.1-src/lib/python/ZPublisher/BaseRequest.py, line 278, in traverse File /data/www/Zope.mysql.pes161.HB10/src/Zope-2.5.1-src/lib/python/App/FactoryDispatcher.py, line 30, in __bobo_traverse__ File /data/www/Zope.mysql.pes161.HB10/src/Zope-2.5.1-src/lib/python/App/Product.py, line 66, in _product (Object: Products) AttributeError: HTMLBlock ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Effect of DB Writes on Performance
Hello, What effect do ZODB Writes have on Performance? We use Zope in an environment where users are constantly updating and maintaining content within the ZODB. Do these writes to the Database slow down overall performance? -Brian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ClientCache and Large Files
Hello, We're running ZEO with Zope 2.5.1. We currently have a ZEO Cache (ClientCache) of 200 meg. Occasionally someone will download a 300 meg file that completely blows away the client cache. Is there a way to prevent this? Thanks, -Brian Brinegar ECN Purdue University ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Calling in Context
Howdy, Overview: I'm working on a helper product for Zope Presentation Templates. The goal of this product is to allow people to drop static content into a site developed with Zope Presentation Templates using WebDAV clients. (This is similar to the Kube Product but it's not folderish and supports WebDAV.) At first I suggested creating some ZPT with an Id like view. Have users drop in static content as File objects. Then link to the files like file_id/view. The view ZPT would reference the document_src method of the file object to pull the static content into the page. I like this approach, and I think this is how Presentation Templates are meant to be used. Problem: Our users will not change links created by WYSIWYG tools to include the /view so we need a product that removes the need for this. I am calling the product HTMLBlock. Version one of the product is a simple data holder with a document_src method which returns the content. It does not override index_html, instead acquiring the index_html from the context. I create an index_html page template with all of my presentation and some code like: div tal:replace=here/document_srcContent Goes Here/div When an HTMLBlock is viewed it shows up with all of the dynamic presentation of the index_html ZPT with the HTMLBlocks static content dropped in. Great! Almost there! :-) The problem is that people cannot create a default HTMLBlock with the Id index_html. It ends up trying to render itself much like a folder with the Id index_html. No Good. :-( So I temporarily fixed this by changing the template to redirect to an object with the Id index if document_src doesn't exist. When someone views a folder the index_html template is accessed, document_src is not defined so it redirects to index which is an HTMLBlock which renders correctly. I don't like this. :*( Still No Good. What I want is for the HTMLBlock product to have a property which specifies the Id of the template to use. Implement an index_html or __call__ method to locate the template and call it in the context of itself. I would like this to work generically so that the template could be DTML, Python, a ZPT, or anything else. Casey Duncan has some uber useful code on ZopeLabs.com to call an object generically using the ZPublisher. I borrowed it and came up with the code below, but it doesn't work. It calls the template, but the template cannot access methods of this object. Suggestions? Is there a better approach? (Note: template_id is the Id of the template to render) def __call__(self, client=None, REQUEST={}, RESONSE=None, **kw): Call the selected template in the context of myself. A securityManager = getSecurityManager() securityManager.addContext(self) # Check for the template if not hasattr(self.aq_parent, self.template_id): return str(self) obj = getattr(self.aq_parent, self.template_id) if not securityManager.checkPermission('View', obj): return default return mapply( object=obj, positional=REQUEST.args, keyword=REQUEST, debug=call_object, maybe=1, missing_name=missing_name, handle_class=dont_publish_class, context=self, bind=1) The code below works, but requires a PageTemplate with the Id index to work def __call__(self, client=None, REQUEST={}, RESONSE=None, **kw): return self.index() Thanks, -Brian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Calling in Context
Okay, I've found that if I use self in place of self.aq_parent when calling getattr it gets the attribute in the context of self and everything works great! -Brian On Fri, 13 Dec 2002, Brian R Brinegar wrote: Howdy, Overview: I'm working on a helper product for Zope Presentation Templates. The goal of this product is to allow people to drop static content into a site developed with Zope Presentation Templates using WebDAV clients. (This is similar to the Kube Product but it's not folderish and supports WebDAV.) At first I suggested creating some ZPT with an Id like view. Have users drop in static content as File objects. Then link to the files like file_id/view. The view ZPT would reference the document_src method of the file object to pull the static content into the page. I like this approach, and I think this is how Presentation Templates are meant to be used. Problem: Our users will not change links created by WYSIWYG tools to include the /view so we need a product that removes the need for this. I am calling the product HTMLBlock. Version one of the product is a simple data holder with a document_src method which returns the content. It does not override index_html, instead acquiring the index_html from the context. I create an index_html page template with all of my presentation and some code like: div tal:replace=here/document_srcContent Goes Here/div When an HTMLBlock is viewed it shows up with all of the dynamic presentation of the index_html ZPT with the HTMLBlocks static content dropped in. Great! Almost there! :-) The problem is that people cannot create a default HTMLBlock with the Id index_html. It ends up trying to render itself much like a folder with the Id index_html. No Good. :-( So I temporarily fixed this by changing the template to redirect to an object with the Id index if document_src doesn't exist. When someone views a folder the index_html template is accessed, document_src is not defined so it redirects to index which is an HTMLBlock which renders correctly. I don't like this. :*( Still No Good. What I want is for the HTMLBlock product to have a property which specifies the Id of the template to use. Implement an index_html or __call__ method to locate the template and call it in the context of itself. I would like this to work generically so that the template could be DTML, Python, a ZPT, or anything else. Casey Duncan has some uber useful code on ZopeLabs.com to call an object generically using the ZPublisher. I borrowed it and came up with the code below, but it doesn't work. It calls the template, but the template cannot access methods of this object. Suggestions? Is there a better approach? (Note: template_id is the Id of the template to render) def __call__(self, client=None, REQUEST={}, RESONSE=None, **kw): Call the selected template in the context of myself. securityManager = getSecurityManager() securityManager.addContext(self) # Check for the template if not hasattr(self.aq_parent, self.template_id): return str(self) obj = getattr(self.aq_parent, self.template_id) if not securityManager.checkPermission('View', obj): return default return mapply( object=obj, positional=REQUEST.args, keyword=REQUEST, debug=call_object, maybe=1, missing_name=missing_name, handle_class=dont_publish_class, context=self, bind=1) The code below works, but requires a PageTemplate with the Id index to work def __call__(self, client=None, REQUEST={}, RESONSE=None, **kw): return self.index() Thanks, -Brian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] manage_roleForm (bug?)
Okay, From the manage_access screen in the ZMI I can click on a role to view the permissions assigned to that role. It was my assumption that this would show me the same information as if I had looked at the column of checkboxes below the selected Role. This is the case except for the Manager role. After some investigation I found that the manage_roleForm makes several calls which eventually end up calling the Permission.getRoles method. This method checks the object in question for a __roles__ attribute. If this attribute does not exist 'Manager' is returned. This causes several options to be selected on the manage_roleForm for Manager since quite a few products do not have the __roles__ attribute. Such products include Temporary Folders, parts of CMF, and ZWiki. Now, my question is if this is a bug within RoleManager or a bug within the individual products? Thanks, -Brian Brinegar ECN Web System Developer Purdue University West Lafayette, IN ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Permissions Mapping Screen
Is there any reason that the acquired permission mapping cannot be displayed next to the check boxes on the Permission mapping screen? For example if I have Access User Information checked in the root of a site for Anonymous and I view the Security tab for a folder one level down I would like to see a check symbol to the right of the Anonymous/Access User Information check box. This seems like it would be very very useful. -Brian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [Zope] Cache Parameters
Is there a way in Zope 2.5 to see what kind of hit/miss ratio our cache is having? Currently we have 260,000 objects in our database and an ideal cache size of 10,000. And I'm not sure how often it's accessing the database. Thanks, -Brian On Fri, 22 Nov 2002, Toby Dickenson wrote: On Friday 22 November 2002 10:18 am, Chris Withers wrote: Brian R Brinegar wrote: Within the Control_Panel/Database/ Cache Parameters there is a Target max time between accesses what is the Unit for this value? Seconds? Minutes? I haven't found it documented anywhere. Best ask Toby Dickenson on the [EMAIL PROTECTED] list, he is the god of all things cache like ;-) No need to go to a specific list. I am everywhere. ;-) That parameter has been removed in Zope 2.6. Previously its units were in seconds, but the parameter that it controls does not relate to anything easily explained. If you think you need to understand this parameter, then I think you need to upgrade to Zope 2.6 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Caches
Thank you for your response. How does one determine if they have a reasonably-sized ZEO cache? In our case we have about 260,000 objects in the database with an ideal cache size of 10,000 objects. I have no idea what our hit/miss ratio is or how to find that out. Any assistance would be great! Thanks again, -Brian Brinegar ECN Purdue University On Thu, 21 Nov 2002, Guido van Rossum wrote: We have diskless ZEO clients (Netboot). There is really no reason for our ZEO clients to write their caches to the disk (RAM Disk). Can we turn this off? To free up RAM for the other caches? That's a new use scenario for me. You can't turn the ZEO cache off. But I think you misunderstand the purpose of the ZEO cache. If you don't have a reasonably-sized ZEO cache, you lose big because you have to go to the server for *every* request. The ZEO cache caches a different kind of data than the other caches, and it caches this data *only* to disk, so it's not the case that it's wasting RAM disk space by writing cached data to disk that's also in memory. --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Caches
Okay, Tell me where I'm wrong or if I'm lucky and got it right. There is 1 client cache per thread on a ZEO client and 1 ZEO cache per ZEO client. The ZEO cache is shared between the threads. We have 3 machines 4 threads each that's 3 * 4 + 3 = 15 caches? Is this correct? If so what's cached in each of the caches? When accessing the cache parameters from the Control_Panel which caches am I managing? Thanks again, -Brian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Caches
On Fri, 22 Nov 2002, Shane Hathaway wrote: Brian R Brinegar wrote: Okay, Tell me where I'm wrong or if I'm lucky and got it right. There is 1 client cache per thread on a ZEO client and 1 ZEO cache per ZEO client. The ZEO cache is shared between the threads. We have 3 machines 4 threads each that's 3 * 4 + 3 = 15 caches? Is this correct? If so what's cached in each of the caches? When accessing the cache parameters from the Control_Panel which caches am I managing? The control panel manages the ZODB cache, of which you have 4 per box. Your custom_zodb.py manages the size of the ZEO cache. Are you using Zope 2.5 or 2.6? You'll really want 2.6 for this, since it constrains the ZODB cache size much better. We're running 2.5 and I don't think it's going to be possible for us to upgrade to 2.6 until March because we have a heavily used production system. Currently we don't specify cache_size in our custom_zodb.py. I guess the default is 20 meg. Our Database (packed) is about 6 Gig. -Brian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Caches
Okay, I'm trying to better understand Caching within Zope. Is a cache created for each Zope Thread? Or one per Zope instance? We have 3 ZEO Clients with 4 Threads each. I want to know if we have 3 copies of the cache, or 12 copies of the cache. Thanks, -Brian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Caches
Not RAM Cache managers, but Database caches. -Brian On Thu, 21 Nov 2002, Shane Hathaway wrote: Brian R Brinegar wrote: Okay, I'm trying to better understand Caching within Zope. Is a cache created for each Zope Thread? Or one per Zope instance? We have 3 ZEO Clients with 4 Threads each. I want to know if we have 3 copies of the cache, or 12 copies of the cache. If you're talking about RAMCacheManager, you have 3 caches. It carefully shares among threads. Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Caches
We have diskless ZEO clients (Netboot). There is really no reason for our ZEO clients to write their caches to the disk (RAM Disk). Can we turn this off? To free up RAM for the other caches? Thanks, -Brian On Thu, 21 Nov 2002, Shane Hathaway wrote: Brian R Brinegar wrote: Not RAM Cache managers, but Database caches. In that case we still haven't narrowed it down. :-) You have 12 in-memory ZODB caches (they can't be shared) and 3 on-disk ZEO caches. Depending on your site, the ZODB cache can consume a lot of RAM, so Zope 2.6 has a database activity graph to help you tune the ZODB cache size. Shane On Thu, 21 Nov 2002, Shane Hathaway wrote: Brian R Brinegar wrote: Okay, I'm trying to better understand Caching within Zope. Is a cache created for each Zope Thread? Or one per Zope instance? We have 3 ZEO Clients with 4 Threads each. I want to know if we have 3 copies of the cache, or 12 copies of the cache. If you're talking about RAMCacheManager, you have 3 caches. It carefully shares among threads. Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Production System Specs
Hello, Can anyone point me at some recommended setups for a ZEO cluster. I would like some or all of the following information: * Hardware Specs * Load Balancing * Caching Information (Apache / Squid Caches) Any information would be very helpful. Thanks, -Brian Brinegar ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Non Bloating Page Counter
Hello, We've had requests from several of our users for the ability to have a drop in page counter within zope. However creating a page counter python script which increments some value in zope will bloat the ZODB. Solutions exist where values are stored on the file system or in a database. Unfortunately our users don't have file system access and it is unacceptable to expect them to request a database account and setup database connections and methods just to create a page counter. I would like to create a Page Counter product that doesn't bloat. If a product is created that doesn't subclass History or UndoSupport does it still bloat? Zope is transactional, but products like ZLDAPConnection have the ability to be non-transactional what does this mean? Could I use this in my counter? -Brian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Correct Usage of Page Templates
Good Day, I'm having trouble grasping the complete usage of Page Templates. I understand the beauty of TAL and METAL. I have say a hundred secretaries that use WebDAV clients to create and edit content. Currently if one of them creates new content in say MS Word and drags it on to the Zope server a File object is created. What I want is to have an object with the look and feel of my standard_template created. I can use a put factory to have it create a new page template instead of a file. But then I get a page template that does not use the look and feel of the standard template. I could even change the default template to do something more reasonable but the user must create the file/object on the server and then edit it. A file/object cannot be created on the client and dropped in place on the server. I do not want to try to teach these people METAL or tell them anything about macros. I just want the content to drop in and fit with the look of my site. I have found that I can create a standard_template with: div tal:content=structure here/dataContent/div in the body and then access files like index.html/standard_template and everything works great. The problem is that the users have to know to create links with /standard_template after the file. Am I thinking about something wrong? My users don't understand HTML or Tags they know MS Word and Dreamweaver. If I tell them to edit anything in source view they scream at me. Any ideas? Thanks, -Brian Brinegar Web System Developer / Programmer ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )