Re: [Zope-dev] MountedFileStorage
http://www.zope.org/Members/hathawsh/ExternalMount Sound interesting. Is it possible to mount a read-only database from several different Zope-clients? Yes. The database should be inside a ZEO storage server. ExternalMount can mount ZEO ClientStorages (that's how www.zope.org/Wikis works) and AFAIK you have the opportunity to provide a "read-only" parameter to the storage or the database. In fact, when you mix in ZEO you can mount the database on one client while using it as the root database on another client. That way you can get around the lack of undo. Is it possible to mix a local storage (a filestorage as the root) and mount a ZEO server storage as a "mounted storage". What I really want is several independent Zope servers sharing a mounted database (containing shared resources, eg. template files, design elements etc.). If that is possible I suppose it could be either read-write or read-only. In that way all clients could share an application, for instance a webbshop or a user tracking application or a browser tracking application. Cheers, Johan Carlsson ___ 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] Arguments without values
Chris Withers wrote: Hi :-) Can anyone tell me why this URL: http://localhost:8080/mymethod?edit ...doesn't result in: REQUEST['edit']=None try http://localhost:8080/mymethod?edit= Look in lib/python/ZPublisher/cgi.py if you want to change the way it works. You might also want to see the CGI specification: http://hoohoo.ncsa.uiuc.edu/cgi/ -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] ZCatalog doesnt find Items
Hi all, I have a problem with my ZCatalog object. If i have a Folder named Test and inside i create a ZCatalog object and some DTML-Objects/Methods the ZCatalog finds all Items. But when i install the ZCatalog in the root folder and start find Items a got the following error: Traceback (innermost last): File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZODB/Transaction.py, line 290, in commit AttributeError: (see above) Are there some known conflicts with other Products?? I use Zope 2.2.2 and python 1.5.2 on Linux(i386) Who can help me as ___ 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] ZCatalog doesnt find Items
There could be problems depending on how a product handles dealing with attributes, but the exception should be caught. Note that the traceback is *not* in Catalog, but is in the Transaction manager. Can you talk about what other products you have installed? And hwat your object database looks like? Chris -- | Christopher Petrilli | [EMAIL PROTECTED] - Original Message - From: "Andre Schubert" [EMAIL PROTECTED] To: "Zope Development Maillist" [EMAIL PROTECTED] Sent: Friday, January 19, 2001 5:30 AM Subject: [Zope-dev] ZCatalog doesnt find Items Hi all, I have a problem with my ZCatalog object. If i have a Folder named Test and inside i create a ZCatalog object and some DTML-Objects/Methods the ZCatalog finds all Items. But when i install the ZCatalog in the root folder and start find Items a got the following error: Traceback (innermost last): File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZODB/Transaction.py, line 290, in commit AttributeError: (see above) Are there some known conflicts with other Products?? I use Zope 2.2.2 and python 1.5.2 on Linux(i386) Who can help me as ___ 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 )
Re: [Zope-dev] skinscript and URL traversal question
At 05:02 PM 1/18/01 -0500, Phillip J. Eby wrote: At 08:54 AM 1/18/01 -0500, Aaron Payne wrote: Hi all, I originally posted this to the zope list and, upon suggestion, I am reposting it to zope-dev. I'm using a zsql method in a skinscript with query ... compute ... and it mostly works. Retrieving the dataskin with getItem() works. For example, Cid is the id of the coupon dataskin. dtml-with "getItem(Cid)" dtml-var couponattributes /dtml-with This is probably a permissions issue. During __bobo_traverse__, the user has not yet been authenticated, and is effectively anonymous. I was logged in as a manager. Thus, your SkinScript is running as anonymous, and probably doesn't have rights to access the SQL method. You might need to change the proxy roles setting on the SkinScript method so that when the SkinScript runs it always has appropriate roles to do what it needs to do. I gave the skinscript trigger a proxy role of manager. Actually, I gave all methods involved a proxy of manager. The same error was produced. The reason it would work from in a DTML method, is that when a DTML method runs, the user has already been authenticated, so the SkinScript runs with the user's rights, and they have rights to call the SQL method. If you run Zope in debug mode and do this, you should probably see some console output about an error in computing the WITH-COMPUTE statement when you try to run it via bobo_traverse. It'll probably say the SQL method is not found (because it doesn't have permissions to access it in that context). ___ 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] MountedFileStorage
Johan Carlsson wrote: Is it possible to mix a local storage (a filestorage as the root) and mount a ZEO server storage as a "mounted storage". Yes. It's pretty straightforward. What I really want is several independent Zope servers sharing a mounted database (containing shared resources, eg. template files, design elements etc.). If that is possible I suppose it could be either read-write or read-only. In that way all clients could share an application, for instance a webbshop or a user tracking application or a browser tracking application. Tell me how it turns out! 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] skinscript and URL traversal question
At 09:41 AM 1/19/01 -0500, Aaron Payne wrote: At 09:38 AM 1/19/01 -0500, Phillip J. Eby wrote: Thus, your SkinScript is running as anonymous, and probably doesn't have rights to access the SQL method. You might need to change the proxy roles setting on the SkinScript method so that when the SkinScript runs it always has appropriate roles to do what it needs to do. I gave the skinscript trigger a proxy role of manager. Actually, I gave all methods involved a proxy of manager. The same error was produced. What version of Zope are you using? Zope version: Zope 2.2.1 Platform: freebsd4 Hmm. You've got me, then. Have you tried taking the Python Method out of the mix and using the SQL method directly, like this: WITH QUERY searchBy_Name(name=self.id) Also, have you tried running Zope with logging ("STUPID_LOG_FILE") enabled? What gets added to the log when you try to access the object via bobo_traverse? ___ 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] ZPatterns: wanted: alpha testers for RemoteRack
I've written a class called RemoteRack. It works just like a ZPatterns Rack, except that the BTree it uses internally for storing its persistent data can be anywhere else in the ZODB. I'm using it in a FileStorage-based application where I want to have the application's persistent data stored in separate FileStorage data-file than the application objects. This should allow me to upgrade the application to a new version, whilst preserving the application data, by just dropping in a new application FileStorage datafile. I intend to release RemoteRack as part of the next version of DataSkinAddons. However, I'd like a volunteer or two to test it first. Any volunteers? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] How would I keep _v_* attributes from getting thrown away?
Hello all, I am using ZODB along with CORBA to expose peristent objects. Some of my objects have per-connection/session state. The clear example is file-like objects - effectively exposing persistent StringIO objects through CORBA. The issue is that I want multiple clients to be able to read() iterate over the same file-like corba objects. My initial idea is to have a _v_position attribute that is unique for each Connection cache object and maintains the correct position in the StringIO for each session. I obviously wouldn't want this to be a persistent attribute because a spurious commit would put it into the db and mess up any other users iterating through the same object from a different session. A volatile attribute, _v_position, however can be destroyed at any time with a cache cleanup via deactivate() call. How do I maintain volatile, but per connection stable, attributes on persistent objects? I thought about overriding the _p_deactivate() method, but I am also defining the __call_method__() hook and am bound by Bug 1783 that prevents this kind of thing. My thoughts on building this into cPersistent.c after looking through the code is to provide special processing to not remove some special attributes that also don't get saved into the db. Two ideas come to mind for this: 1) define _vs_* as volatile stable that is neither persisted nor clear()ed. This would slow down the deactivate() method though. 2) define _v_stable as a special volatile that doesn't go away. This would be quick processing in deactivate() and could be a dictionary to account for many stable volatile attributes. Thanks for any help, John -- . . . . . . . . . . . . . . . . . . . . . . . . John D. Heintz | Senior Engineer 1016 La Posada Dr. | Suite 240 | Austin TX 78752 T 512.633.1198 | [EMAIL PROTECTED] w w w . d a t a c h a n n e l . c o m ___ 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] Little Bug in 2.3 new look
Hi! There is a little Bug in the new GUI: If you creat a new Folder that is empty, only "There are currently no items in foo" is displayed. So you can't import stuff before you have created an object in the folder. The import/export tab has also gone. Cheers Joachim. ___ 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] Import/Export in 2.3beta2
Is this a stupid question, or why cant i Import/Export into a folder in 2.3 b2 (Windows), there seems to be no tab... -- Andy McKay. ___ 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] ANNOUNCE: Zope 2.3.0 beta 2 released
Hello all - Zope 2.3.0 beta 2 is now available. You can download it from Zope.org: http://www.zope.org/Products/Zope/2.3.0b2/ Highlights of the beta 2 release: - Changed the implementation of emergency_user to be backward compatible with the expectations of third-party user folders. All third party user folders should now work with Zope 2.3 without modification. - Zope is now much more tolerant of dependency problems in ZClasses. Some people were experiencing problems porting Products to upgraded Zope sites when their products contained ZClasses derived from base classes in other products (which may or may not have been installed on the new site). Zope is now much smarter about managing and recovering from failed base class dependencies and will re-register broken ZClasses when the missing Product causing the problem is installed. - Fixes for several other (more minor) bugs reported from beta 1 For more information on what is new in this release, see the CHANGES.txt and HISTORY.txt files for the release: - http://www.zope.org/Products/Zope/2.3.0b2/CHANGES.txt - http://www.zope.org/Products/Zope/2.3.0b2/HISTORY.txt Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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 )