[Zope-dev] Re: zpatterns-0.4.0a5: problem with unregistering transactionals
Jephte CLAIN wrote: I have a case where Transactional._unregister is called without Transactional._register being called, raising an exception in Transaction._unregister and then in ZODB.Transaction.Transaction.__del__, causing Zope to dump core when it is run as a daemon (because python notifies of the unhandled exception by writin to stderr) I have not yet found why (and how?) an object is Transactional._unregistered without being Transactional._registered before. (I even did not know about the existence of these methods!) But until I understand, this patch allow me to stay alive: Ok, so ZPatterns.Transactional._unregistered method is called twice for a ZPatterns.Transactional object when an exception is raised and the ZPatterns.Transactional object has not be freed: once from the ZODB.Transaction.abort method, once from the ZODB.Transaction.__del__ method which call abort if objects to be aborted remain in the zodb transaction aware object The call is made twice for DataSkins and for TransientMapping (as far as I know, they are at the moment the only Transactional objects in zpatterns) for example, try this DTML code in a specialist: dtml-with "getItem(key='whatever key you have in the specialist')" dtml-raise /dtml-raise /dtml-with without my patch, Zope should display 'uncatched exceptions in Transation object' so what now? I'm lost. Is this normal or not? Is my patch sufficient (ignore attempts to abort the object twice by trapping exceptions in _unregister). What about Transactional.abort which check for tpc_entered? Why is tpc_entered never set to 0? please help regards, [EMAIL PROTECTED] ___ 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] Quickie on ZPatterns ... I promise :)
Bill Anderson wrote: Let's say I have an object I will store in a rack. Let us say I want this object to be cataloged in a ZCatalog. Any caveats I need to know about ..such as "Don't do that!" ? ?;^)= Make one of the object's base-classes DataSkin. Don't make it CatalogAware. Use triggers to index and unindex the object from a catalog. You'll probably want to store the catalog in Specialist. By the way, Phillip Eby has released a new development snapshot: http://www.zope.org/Members/pje/ZPatterns/ZPatterns-0-4-1snap1.tgz/view I'll be trying it later today. -- 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 )
Re: [Zope-dev] Quickie on ZPatterns ... I promise :)
Steve Alexander wrote: Bill Anderson wrote: Let's say I have an object I will store in a rack. Let us say I want this object to be cataloged in a ZCatalog. Any caveats I need to know about ..such as "Don't do that!" ? ?;^)= Make one of the object's base-classes DataSkin. Don't make it CatalogAware. that was my hunch ... Use triggers to index and unindex the object from a catalog. You'll probably want to store the catalog in Specialist. OK, guess it's sime to learn triggers ;-) By the way, Phillip Eby has released a new development snapshot: http://www.zope.org/Members/pje/ZPatterns/ZPatterns-0-4-1snap1.tgz/view I'll be trying it later today. Likewise. Gotta see how/if it works with membership. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] SQL and customise screen
Hi, I would like to use an SQL request to search some data in an access database. The request need to be executed when somebody clic on a button (onclick="") The result need to be displayed on the screen, but not on one line. I must be able to place the results in different places on the document. If somebody has any idea. Vincent - Thanks PS : At least, I must be able to customise the array display with the search zope wizard ___ 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] Quickie on ZPatterns ... I promise :)
Itamar Shtull-Trauring wrote: Bill Anderson wrote: Let's say I have an object I will store in a rack. Let us say I want this object to be cataloged in a ZCatalog. Any caveats I need to know about ..such as "Don't do that!" ? ?;^)= You can't have them inherit from CatalogAware, you'll need to use a trigger that does this for you. I'm uploading a Product that gives this capability - and unlike CatalogAware, it recatalogs *automatically* whenever the object changes. No more object_reindex! (I only tested extensively with DataSkins, though). http://www.zope.org/Members/itamar/ZPAddons Cool! I'll check it out today/tomorrow. Now if only I could figure out how to change user.__roles in Membership, I'd have a really cool Memebrship Release ready :-) -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] Bi-directional update of Data.fs
Bill Anderson wrote: Since the Data.fs is appended to, and that your disconnected version is canonical, why couldn't you basically look for the last common transaction, and append all transactions in the canonocial to the main one? Hwo would that handle the situation where an object has been modified in data.fs? Not too well I'd guess... :( (thinking this might need to be moved to dev ...) And so it was ;-) cheers, Chris ___ 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] Re: [Zope] Bi-directional update of Data.fs
chrisw wrote: Bill Anderson wrote: Since the Data.fs is appended to, and that your disconnected version is canonical, why couldn't you basically look for the last common transaction, and append all transactions in the canonocial to the main one? Hwo would that handle the situation where an object has been modified in data.fs? Not too well I'd guess... :( Don't see why not. When an object is changed, the new object is just appended to the end of Data.fs. Unless you use undo, or you pack the Data.fs. -- 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 )
Re: [Zope-dev] Re: [Zope] Bi-directional update of Data.fs
Chris Withers wrote: Steve Alexander wrote: Don't see why not. When an object is changed, the new object is just appended to the end of Data.fs. Unless you use undo, or you pack the Data.fs. You missed the problem ;-) Technically, there is no problem... Logically, what happens if one user updates and object on one machien and another user on another machines, after which you merge the data.fs's? I'm thinkthing of the things which result in Notes Replication/Save conflicts... What does Lotus Notes offer to do if you get such a conflict? I'm probably talking rubbish in what follows, because I don't have much of an idea how these things really work... The server has a data.original. You take a copy of this, called data.chris. You use this for a while, and data gets appended to data.chris. Someone else is using the server, and data.original gets appended to. Later, you want to recombine the changes, so you do as follows: Create a data.original.before_fork that is the data.original just before you took the copy data.chris. (You can work this out by looking at the modified data.original and data.chris). Create a list of the combined transactions (in order of time, I guess) that happened on the server, and to data.chris. Within one monsterous transaction, apply the list of combined transactions using the usual under-the-hood ZODB machinery. Use Jim's new conflict resolution algorithm to try to settle conflicts. If a conflict can't be settled, ask interactively, or apply some sort of policy (like "chris always wins" for example) and log the lost changes. -- 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 )
Re: [Zope-dev] Re: [Zope] Bi-directional update of Data.fs
Steve Alexander wrote: Don't see why not. When an object is changed, the new object is just appended to the end of Data.fs. Unless you use undo, or you pack the Data.fs. You missed the problem ;-) Technically, there is no problem... Logically, what happens if one user updates and object on one machien and another user on another machines, after which you merge the data.fs's? I'm thinkthing of the things which result in Notes Replication/Save conflicts... cheers, Chris ___ 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] Bi-directional update of Data.fs
Steve Alexander wrote: What does Lotus Notes offer to do if you get such a conflict? Save both versions and ask the user to delete the one which isn't needed, or merge the changes... Use Jim's new conflict resolution algorithm to try to settle conflicts. Urm? First I heard of this and it sounds like just the right sort of thing... Where can I find out more? If a conflict can't be settled, ask interactively, or apply some sort of policy (like "chris always wins" for example) and log the lost changes. Heh... I like the sound of that ;-) cheers, Chris ___ 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] App isolation
Not sure if this list is the best place to put such question but here it is... I need to develop what would be a product if only Zope was the target. As it´s not I was thinking what could I do to not need to build such app twice: I came to 2 options both involving building a server of some kind and using Python to connect to this server. 1st Build the app as a COM server (the target OS is Windows) and using Python support build an interface to this COM server as a Zope product 2nd Build the app as a XMLRPC server and using Python support build an interface to this XMLRPC server The second options is better because I´m not attached to any platform but, as I said, that´s not an issue right now. Good options would be having a JVM running "inside" Zope so that jave objects could be accessed by it or SOAP Zope support beeing ready... Any sugestions on any of those or a 3rd option ? Thanks in advance, Jacques ___ 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] Visual studio compilation ....
I'm trying to tweak Splitter.c in order handle french specific characters. It seems to work fine with gcc under Linux but it doesn't work with MS Visual C. Even compiling the original source code under windows results in a different module behaviour. Which compiler is required to compile Splitter.c under Windows ? If any, could you send me the project file ? ___ Vendez tout... aux enchères - http://www.caraplazza.com
Re: [Zope-dev] Re: zpatterns-0.4.0a5: problem with unregistering transactionals
Question... Are you on 2.1.x or 2.2? Also, in your example, tpc_entered is not set because tpc_entered is only true if the transaction commit process (tpc = two-phase commit) has been started. At 11:53 AM 7/27/00 +0400, Jephte CLAIN wrote: Ok, so ZPatterns.Transactional._unregistered method is called twice for a ZPatterns.Transactional object when an exception is raised and the ZPatterns.Transactional object has not be freed: once from the ZODB.Transaction.abort method, once from the ZODB.Transaction.__del__ method which call abort if objects to be aborted remain in the zodb transaction aware object The call is made twice for DataSkins and for TransientMapping (as far as I know, they are at the moment the only Transactional objects in zpatterns) for example, try this DTML code in a specialist: dtml-with "getItem(key='whatever key you have in the specialist')" dtml-raise /dtml-raise /dtml-with without my patch, Zope should display 'uncatched exceptions in Transation object' so what now? I'm lost. Is this normal or not? Is my patch sufficient (ignore attempts to abort the object twice by trapping exceptions in _unregister). What about Transactional.abort which check for tpc_entered? Why is tpc_entered never set to 0? ___ 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] Quickie on ZPatterns ... I promise :)
At 09:15 AM 7/27/00 +0100, Steve Alexander wrote: Bill Anderson wrote: Let's say I have an object I will store in a rack. Let us say I want this object to be cataloged in a ZCatalog. Any caveats I need to know about ..such as "Don't do that!" ? ?;^)= Make one of the object's base-classes DataSkin. Don't make it CatalogAware. Use triggers to index and unindex the object from a catalog. You'll probably want to store the catalog in Specialist. By the way, Phillip Eby has released a new development snapshot: http://www.zope.org/Members/pje/ZPatterns/ZPatterns-0-4-1snap1.tgz/view I'll be trying it later today. FYI, the snapshot really only adds proxy roles support for generic providers/triggers, and adds a first-cut version of SkinScript. If you're adventurous, you can look at SkinScript/Compiler.py and have a look at the grammar in order to figure out what the language does. So far I've successfully tested a SkinScript method that does the work of four GenericAttributeProviders and two GenericTriggers, just by using the appropriate statements. Here's a SkinScript snippet you might use for CatalogAwareness: WHEN OBJECT ADDED CALL somecatalog.catalog_object(self) WHEN OBJECT CHANGED CALL somecatalog.recatalog_object(self) WHEN OBJECT DELETED CALL somecatalog.uncatalog_object(self) (Replace the incorrect catalog API calls with ones that are correct... I'm sure I'm missing some parameters and probably getting the names wrong...) Note that "somecatalog" must be in the acquisition context of the SkinScript method itself. If you want to use a catalog in the context of the DataSkin, you need to say "self.somecatalog...". Some other SkinScript snippets: # Store attribs persistently - replaces # Persistent Internal Attribute Provider STORE attrib1,attrib2 IN SELF # Computed attributes WITH SELF COMPUTE attrib1=attrib2+attrib3, attrib4=attrib6*10 # Generic attrib provider WITH (SomeSQLMethod(key=self.id) or [NOT_FOUND])[0] COMPUTE field1, field2, somefield=field3+field4, fancy_id = '*(%s%s)%' % (otherfield,self.id) # Generic trigger WHEN OBJECT ADDED,CHANGED,DELETED CALL someexpr(self.id) SAVING foo,bar, baz=spam, widget=diddly+id # Attribute provider STORE attr1,attr2 USING somefunc(self) SAVING attr1,attr2 # Conditional attrib provider WHEN OBJECT ADDED STORE attr2 USING otherfunc(self) That about covers it for what's implemented so far. The goal is to ultimately replace the majority of providers and triggers with SkinScript. But it will still be possible to write and use custom plug-ins that provide attributes or handle events in other ways. But SkinScript will be quite handy for most things. ___ 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] Re: zpatterns-0.4.0a5: problem withunregistering transactionals
At 07:12 PM 7/27/00 +0400, Jephte CLAIN wrote: "Phillip J. Eby" a écrit : Question... Are you on 2.1.x or 2.2? I'm still on 2.1.6. I cannot afford a migration of my product now since it is still in developpement and my customer wants it to work as soon as possible. Okay, that makes sense. 2.1.6 has a weirdness in the ZPublisher exception hook that begins a new transaction instead of aborting the old one cleanly, and that ultimately causes the objects to get aborted twice. I reported this a month or two ago and it got fixed in 2.2. You're going to have to go with your patch, though, because there's not a simple patch you can apply to 2.1.6 to fix the problem in Zope itself. Unfortunately, it is hard for me to tell whether your patch has any other repercussions. :( I will try to review the structure of my Transactional class and see if there are any side effects (besides the one you've found) of an object being aborted twice. Also, in your example, tpc_entered is not set because tpc_entered is only true if the transaction commit process (tpc = two-phase commit) has been started. I thought that tpc_entered would go back to 0 when the transaction is over. It is clear that I don't know how the transaction machinery really works. It's probably because of the double-abort weirdness. :( ___ 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] Re: zpatterns-0.4.0a5: problemwithunregistering transactionals
At 08:06 PM 7/27/00 +0400, Jephte CLAIN wrote: By the way, besides new features like skinscript and proxy settings, did you fix any bugs from 0.4.0a5 in 0.4.1a5 that would make me have to upgrade my current ZPatterns? IIRC, nothing that would affect you on 2.1.6. I vaguely recall some fixes for 2.2 stuff, but I think they were all out in 0.4.0a5 anyway. ___ 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] Interaction between new (2.2) ZCatalog and Renderable
Hi Zdevs, I posted a message to [EMAIL PROTECTED] and then later figured out the problem and now feel that the issue belongs in Zope-Dev, so here it goes. Submitted for your approval... I think that I have found an interaction between changes made in manage_addZCatalog (lib/python/Products/ZCatalog/ZCatalog/py) and the Renderable ZClass product. It's also possible that this interaction will affect other things as well. The new version of method 'manage_addZCatalog' has calls to str() near its beginning. The older (2.1.6) does not. The Renderable product overrides str to do its work. This gets _very_ messy when you initialize a catalog in the xxx_add dtml method for a ZClass (that is, if you create an instance of the ZClass and the _add method instantiates a ZCatalog instance.) and the ZClass itself is renderable. The manage_addZCatalog method ends up invoking the str() method that's in the Renderable product. This code attempts to publish(?) the a dtml method named render (this is what it does by default). In my case, the dtml method tries to query the created ZCatalog instance. This does not work! since the ZC instance isn't actually created since the _add method has not completed(?). So the render dtml method borks with an attribute error. Correct me if I have reverse-engineered these conclusions from looking at the traceback and made a logic error As one can see from the traceback attached to the end of this email, the manage_add methof (I put X near where this mess begins) warps into the render dtml method at line 112 of manage_addZCatalog, which is the first str() (can be seen in the src). This ends up in an External Method, rendercal.py (last line of traceback). If you were to look there you'd se that it's doing a Catalog.searchResults(). **SO** it appears as if you cannot instantiate a ZCatalog in the _add dtml method of a ZClass IFF the ZClass inherits from Renderable AND if the render dtml method of the class (required by Renderable) uses the ZCatalog. This interaction may very well affect other products as well. But right now my brain hurts. Excuse me if someone else reported this, but I haven't seen mention of it so far. This should be easy to reproduce. On a 2.2 system that has the Renderable ZClass product installed, install EventFolder (it's on Zope.org, there's a .zexp and some External Methods in the tgz file, just untar it in the Zope root and copy the .zexp to the import dir and import it). Try to create an instance and you should get this error. It seems to me the only solution is to recreate the class without the Renderable inheritance. Not a big deal to lose But what other schizoZopia is waiting in the future. Jeff Sasmor [EMAIL PROTECTED] Traceback (innermost last): File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope220/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope220/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: EventFolder_add) File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: EventFolder_add) File /usr/local/Zope220/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: EventFolder_add) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: EventFolder_add) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: folder="EventFolder.createInObjectManager(REQUEST['id'], REQUEST)") File /usr/local/Zope220/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: folder) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: manage_addProduct['ZCatalog'].manage_addZCatalog(this(),'Catalog','EventCatalog' )) (Info: this) File string, line 0, in ? it begins File /usr/local/Zope220/lib/python/Products/ZCatalog/ZCatalog.py, line 112, in manage_addZCatalog how did we get here File /usr/local/Zope220/lib/python/Products/Renderable/Renderable.py, line 17, in __str__ (Object: Renderable) File /usr/local/Zope220/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: render) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: render) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: ZopeTime) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: tdate="'%s/%s/1' % (tyear,tmonth) " this_month="'%s/%s' % (tyear,tmonth) " ddate="_.DateTime(tdate)") File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Let.py,
[Zope-dev] ZPatterns Documentation
Despite the implications of the bait-and-switch subject line, I have not yet written any substantial amounts of documentation. I have, however, written this: http://www.zope.org/Members/pje/Wikis/ZPatterns/DataSkinsOverview DataSkins (formerly known as RackMountables) are central to the operation of ZPatterns, and I decided to take a whack at explaining them at an introductory (I hope) level, complete with a diagram. Could anyone who gets a chance please give me some feedback? I'd like to know if this is the kind of stuff that people would like to see more of, or whether it's too much detail, not enough, right questions, wrong questions... Just comment, please, preferably in e-mail via Zope-dev. Thanks. _ _/__) ___/ ___ 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-PTK] ZPatterns Documentation
"Phillip J. Eby" wrote: Just comment, please, preferably in e-mail via Zope-dev. Thanks. Generally very clear and helpful. Tomorrow, I'll try it out on someone who hasn't been looking at ZPatterns a great deal, and see what she gets from it. A few suggestions. I feel sad that these seem to come across as criticisms. Really, I'm very glad that you've found some time to work on more accessible documentation. You don't seem to say anything like "You make your own domain-specific classes derive from DataSkin. These can be ZClasses or Python classes". This may be obvious, but I think it is an important part of how data skins are intended to be used. """A data manager helps data skins by: Providing them access to their Data Plug-ins, including propagating transaction events and DataManagementEvents to the Data Plug-ins""" Still very jagon-filled. That's ok, if it is accompanied by some real-world explanation. Perhaps add something like "You can use Data plug-ins for indexing Dataskins in a catalog, or in many catalogs, or [another different familiar example]". """Keeping track of their canonical or "normalized" forms for acquisition management""" You almost lost me there :-) """Or, if a data skin is retrieved from any other Zope object, its __of__ method will try to find a Customizer or "Folder With Customization Support" in the acquisition path, then ask it for a data manager to bind with. Once this is done, the skin remains bound to that manager until the next such occurrence.""" Pretty clear, except the end -- next what occurrence? The next time the data skin is retrieved from a Zope object? So, every time a dataskin is retrieved from a zope object (that isn't a Rack), it uses acquisition to look for a customizer. -- 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 )
Re: [Zope-dev] Re: [Zope-PTK] ZPatterns Documentation
At 10:58 PM 7/27/00 +0100, Steve Alexander wrote: "Phillip J. Eby" wrote: Just comment, please, preferably in e-mail via Zope-dev. Thanks. Generally very clear and helpful. Tomorrow, I'll try it out on someone who hasn't been looking at ZPatterns a great deal, and see what she gets from it. Thanks. A few suggestions. I feel sad that these seem to come across as criticisms. Really, I'm very glad that you've found some time to work on more accessible documentation. Hm. Well, your comments have convinced me that 1) I'm not really qualified to write good beginner docs, and 2) I shouldn't try to combine a design document with beginner documentation in any event. :) Probably the doc needs to be split into seperately focused documents for "What are DataSkins (for)?" and "How do they work?". I was trying to capture all the things that happen in the interactions between DataSkins and their primary collaborators in order to have that documentation later. Unfortunately, a lot of that "how" detail is extraneous to the "how do I" and "why" questions. Probably as written, the doc is more useful as an introduction to ZPatterns innards than it is as an intro to ZPatterns itself. ___ 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] PROPOSAL: Splitting ZPatterns into two products
Many people have suggested splitting out the PlugIns part of ZPatterns as a seperate product for general Zope use. In addition to this, it is becoming clearer to me as I work on docs, etc., that there really is only one thing left in ZPatterns after you take out PlugIns, and that is DataSkins. (Pretty much everything else in ZPatterns only has meaning in relation to DataSkins.) So, I am thinking perhaps I should split ZPatterns into two products: PlugIns and DataSkins. The DataSkins product would require the PlugIns product. LoginManager would require both. For backward compatibility, there would need to be a "final release" of ZPatterns which contained stubs to load in classes from their new locations, so that existing objects stored in ZODB's would not be "broken". Newly created objects, of course, would refer to the new products automatically. The term "ZPatterns" would then go away, which is just as well because it doesn't really mean anything, anyway. :) Please let me know if you have any comments or questions on this. _ _/__) ___/ ___ 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] Announce: ZScheduler alpha Version 0.0.7
The problem noted below with the Trigger tab occurs only when Zope is limited to a single thread. The problem is due to contention for the single thread. The workaround is to avoid using the Trigger tab on single threaded Zope's. Or change ZEvent.py like this: def manage_triggerZEvent(self, client=None, REQUEST=None, RESPONSE=None, **kw): """For use by the Trigger tab on ZEvent management page. Use for testing the ZEvent in a context that mimics that of Dispatcher. """ aurl=REQUEST['URL1'] furl=string.join((aurl, 'trigger'), '/') RESPONSE.redirect(furl) With this fix, the product is fully functional, as far as I know, tho it remains an alpha product simply because it hasn't received a thorough shakedown. I'll have a new release out soon with this fix and other changes. -- Loren ZScheduler Version 0.0.7 Date: 2000/07/02 1. Fixed a bug that caused ZEvents to execute in the wrong context. 2. If the action method of a ZEvent raises an error, a traceback is written in the log. 3. Added a Trigger tab to the management screen for ZEvents which fires the event in the same context that the Dispatcher does, but without regard to the schedule. This helps immensely in debugging the DTML in the ZEvent. I've tested on: Win98 Zope 2.2.0b3 Solaris 2.6 Zope 2.1.4 Linux ?.? Zope 2.1.3 On the Linux configuration (my account at CodeIt Computing), most features work; however, the new Trigger tab does not behave correctly. Though the ZEvent method eventually executes correctly, it doesn't return anything to the client and Zope seems to lock up temporarily -- that is, it doesn't respond to other client requests. I don't have a Linux development system with which to track this down. Any help would be appreciated. [...snip...] Otherwise, ZScheduler is looking good. Let me know how it works for you. http://www.zope.org/Members/lstaffor/ZScheduler -- Thanks -- Loren ___ 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] newbie DTML namespace
Hi all, as a newbie to both python and zope i am struggling with understanding the howto and the syntax of accessing stuff in namespace eg I would like to build a table depending on some tests peformed on stuff returned form a Z SQL method 1. I have a form with a name="spam" value="egs" this value is passed onto next dtml document - table tr tddtml-var spam td// displays 'eggs' to test spam is OK /tr dtml-var sqlstuff // this does a join of two tables dtml-in sqlstuff dtml-if {CAN'T WORK OUT SYNTAX TO ACCESS spam to compare with lets say sqlstuff.spam} trtddtml-var sqlstuff.column/tdetc /dtml-if /dtml-in -- I have read DTML Reference but dtml-if says "a valid python expression" Can I still access spam inside the dtml-in if so how dtml-var spam, spam 'spam', ['spam'] and then how do i refer to a table column name returned in the SQL query to make the comparison TIA brad ___ 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 )
Re: [Zope] ZOracleDA
On Wed, Jul 26, 2000 at 06:28:55PM -0400, Satheesh Babu wrote: Hi, If you are running Zope on 1. Linux: You need to install Oracle client libraries to compile ZOracleDA. As far as I know, Oracle does not give any easy way to install only the clients. So, if you've enough disk space, install Oracle with the minimum DB options, and compile ZOracleDA. You DON'T NEED to run Oracle DB on your Zope machine, to have zope connect to your actual DB machine. I think that 8.1.5i had an option to install client. stuff (beacuse that is what i did at first). However, you need to compile the ZOracleDA on a machine where the entire oracle is installed, because some crucial haeder files only come with the full install. Then, just remember to set up the tns listener on server and the tnsnames.ora on the client, but that stuff is out of this list's scope. -- Riku Voipio [EMAIL PROTECTED] 09-862 60764 ___ 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] Date format question urgent!!!
hi all, i have a few questions about date formating: i work with a sybase database and have tables where i used date fields. My field entrydate is of type Date. on my page i have a textbox to put the date: input type="text" name="new_nsentrydate" value="01.01.2000" size="10" i will formating it as 2000/01/01 and then put it in a sql query as a parameter.For the formating i use the follow code: dtml-with "_.DateTime(new_nsentrydate)" dtml-var " '%s/%s/%s' % (year(), mm(), dd())"/dtml-with and i get 2000/01/01. Here is my dtml-code: dtml-with "_.DateTime(new_nsentrydate)" dtml-var "'%s/%s/%s' % (year(), mm(), dd())"/dtml-with dtml-with "_.DateTime(new_nsbirthday)" dtml-var "'%s/%s/%s' % (year(), mm(), dd())"/dtml-with with this code : dtml-call "insertNoteService(nsentrydate = "_.DateTime(new_nsentrydate)" '%s/%s/%s' % (year(), mm(), dd()), nsname = new_nsname, nsadresse = new_nsadresse, nslocation = new_nslocation, nscountry = new_nscountry, nsbirthday = "_.DateTime(new_nsbirthday)" '%s/%s/%s' % (year(), mm(), dd()), nsbirthplace = new_nsbirthplace, nstext = new_nstext, nsstatus = 0, nstype = new_nstype, nssociety = new_nssociety, nsservice = new_nsservice)"i get the folowing error: Invalid attribute name, "_.DateTime(new_nsentrydate)", for tag dtml-call "insertNoteService(nsentrydate = "_.DateTime(new_nsentrydate)" '%s/%s/%s' % (year(), mm(), dd()), nsname = new_nsname, nsadresse = new_nsadresse, nslocation = new_nslocation, nscountry = new_nscountry, nsbirthday = "_.DateTime(new_nsbirthday)" '%s/%s/%s' % (year(), mm(), dd()), nsbirthplace = new_nsbirthplace, nstext = new_nstext, nsstatus = 0, nstype = new_nstype, nssociety = new_nssociety, nsservice = new_nsservice)", on line 4 of addNoteService_html with this code : dtml-call "insertNoteService(nsentrydate = "_.DateTime(new_nsentrydate)" '%s/%s/%s' % (year(), mm(), dd())", nsname = new_nsname, nsadresse = new_nsadresse, nslocation = new_nslocation, nscountry = new_nscountry, nsbirthday = "_.DateTime(new_nsbirthday)" '%s/%s/%s' % (year(), mm(), dd())", nsbirthplace = new_nsbirthplace, nstext = new_nstext, nsstatus = 0, nstype = new_nstype, nssociety = new_nssociety, nsservice = new_nsservice)" i don't get Errors, but it doesn't work. Here is my sql code: INSERT INTO noteservice (ns_entrydate, ns_name, ns_adresse, ns_location, ns_country, ns_birthday, ns_birthplace, ns_text, ns_status, ns_type, ns_society, ns_service)VALUES('dtml-var nsentrydate', 'dtml-var nsname fmt=sql-quote', 'dtml-var nsadresse fmt=sql-quote', 'dtml-var nslocation fmt=sql-quote', 'dtml-var nscountry fmt=sql-quote', 'dtml-var nsbirthday','dtml-var nsbirthplace fmt=sql-quote', 'dtml-var nstext fmt=sql-quote', dtml-var nsstatus, dtml-var nstype, dtml-var nssociety, dtml-var nsservice) when i use this code : dtml-with "_.DateTime('01.01.1900')"dtml-var "'%s/%s/%s' % (year(), mm(), dd())"/dtml-with i get 1900/01/01 when i use this code : dtml-let tert="'01.01.1900'"dtml-var "_.DateTime(tert)" fmt="%Y/%m/%d"/dtml-let i get 2036/02/07 Why? when i use this code : dtml-var "_.DateTime('01.01.1900')" fmt="%Y/%m/%d" i get 2036/02/07 Why? when i use this code : dtml-var "ZopeTime('01.01.1900')" fmt="%Y/%m/%d" i get 2036/02/07 Why? Could you explain me how i must handle date fields in zope? Finally, i want formatting a date as 2000/01/01 and then put in my table with a sql method. Any suggestions or a good example will be apprecieated... $Regards MM
Re: [Zope] Silly send mail problem
On Thu, 27 Jul 2000, you wrote: Hi all, I had a sendmail problem, whenever I send out a mail from zope, it always contain an empty "To" ,"From" and "Subject", but I was able to get the body of the mail, anyone got this problem before ?? Sorry this is probably not much help but may be related I recieve lets say one or three in a hundred emails from the zope mailing list that have the same symptoms ie they arrive with No Subject, To or From but the body contains the question or answer posted ? I'm using Zope 2.1.6 on NT and the mail server is from Lotus, and the form processor syntax as below : dtml-sendmail smtphost="mail.xyz.com" mailto="[EMAIL PROTECTED]" mailfrom="[EMAIL PROTECTED]" Subject="Testing from my machine" mail body /dtml-sendmail Thanks. Cheers Wai ___ 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 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 )
Re: [Zope] Silly send mail problem
When using the dtml-sendmail tag you need to structure it like this: dtml-sendmail smtphost="mail.xyz.com" mailto="[EMAIL PROTECTED]" mailfrom="[EMAIL PROTECTED]" Subject="Testing from my machine" To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Testing from my machine mail body /dtml-sendmail hth Phil [EMAIL PROTECTED] - Original Message - From: "Brad Moulton" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, July 27, 2000 7:23 AM Subject: Re: [Zope] Silly send mail problem On Thu, 27 Jul 2000, you wrote: Hi all, I had a sendmail problem, whenever I send out a mail from zope, it always contain an empty "To" ,"From" and "Subject", but I was able to get the body of the mail, anyone got this problem before ?? Sorry this is probably not much help but may be related I recieve lets say one or three in a hundred emails from the zope mailing list that have the same symptoms ie they arrive with No Subject, To or From but the body contains the question or answer posted ? I'm using Zope 2.1.6 on NT and the mail server is from Lotus, and the form processor syntax as below : dtml-sendmail smtphost="mail.xyz.com" mailto="[EMAIL PROTECTED]" mailfrom="[EMAIL PROTECTED]" Subject="Testing from my machine" mail body /dtml-sendmail Thanks. Cheers Wai ___ 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 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 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] dtml question from a newbizzzzz I want to access a dtml page under asubfoldersubfolder
I want to access a dtml page under a subfolder - portal (folder) - index1 (dtml) - reunion (folder) - index2 (dtml) I want to acces the index2 variable in the index1 dtml page. How can I do it ? thks for your answer David Sergent ___ 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 )
Re: [Zope] Your feedback: what should DateTime strftime() behavior be?
+1 -- jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/ ___ 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 )
Re: [Zope] Silly send mail problem
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 27, 2000 4:56 AM Subject: [Zope] Silly send mail problem Hi all, I had a sendmail problem, whenever I send out a mail from zope, it always contain an empty "To" ,"From" and "Subject", but I was able to get the body of the mail, anyone got this problem before ?? dtml-sendmail smtphost="mail.xyz.com" mailto="[EMAIL PROTECTED]" mailfrom="[EMAIL PROTECTED]" Subject="Testing from my machine" mail body /dtml-sendmail Wrong sintax... the right one is: dtml-sendmail smtphost="mail.xyz.com" To: destinationemail From: your email Subject: your subject Date: dtml-var ZopeTime fmt=rfc822 mail body /dtml-sendmail = Hugo Ramos - [EMAIL PROTECTED] ZopersORG - http://www.zopers.org = Do not meddle in the affairs of programmers, for they are easy to annoy, and have all the source code!!! ___ 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 )
RE: [Zope] zwiki mailing list ? RFC
Even if ZWiki and WikiNG are to converge (are they? I'm still not sure of intentions here), we would need keep updates to ZWiki and the new engineering of WikiNG separate in everyone's minds - but not so separate as to seem confusingly competitive. Could this be done by moving joyful/zwiki to zope.org? If so, we could use the same (zope@ and zope-dev@ + wiki) mechanisms so long as there is clarity between the aims of ZWiki and WikiNG (clearly posted on both wikis). Trying to keep abreast of an active sourceforge/zwiki as well as joyful/zwiki, zope/WikiNG, zope@ and zope-dev@ at the same time would be even more of a trial than I find it now. Geoff -Original Message- From: Simon Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 26, 2000 6:59 PM To: [EMAIL PROTECTED] Subject: [Zope] zwiki mailing list ? RFC ... I'm thinking of activating the zwiki mailing list at sourceforge, as a repository for the above and perhaps a testbed for mailing-list/zwikiweb integration. On the other hand I'm against too much fragmentation of our discussions - things are bad enough already! - and I like to use the zope list where possible. If you have any thoughts either way, I'd like to hear 'em. ... ___ 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 )
Re: [Zope] dtml question from a newbizzzzz I want to access a dtmlpage under a subfolder subfolder
On Thu, 27 Jul 2000 [EMAIL PROTECTED] wrote: I want to access a dtml page under a subfolder - portal (folder) - index1 (dtml) - reunion (folder) - index2 (dtml) I want to acces the index2 variable in the index1 dtml page. How can I do it ? thks for your answer David Sergent dtml-with reunion dtml-var index2 /dtml-with OR dtml-var "reunion.index2" PM ___ 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 )
Re: [Zope] SQL and customise screen
At 09:38 27-7-00 +0100, Vincent DELHOMMOIS wrote: Hi, I would like to use an SQL request to search some data in an access database. The request need to be executed when somebody clic on a button (onclick="") The result need to be displayed on the screen, but not on one line. I must be able to place the results in different places on the document. May be you could use something like this: form action="mylist" method="get" table tr tdinput type="submit" value="Click here"/td /tr /table /form mylist (dtml-method): dtml-let results="sql.selectWhatYouWant(REQUEST)" table dtml-in results dtml-var yourdisplaymethod /dtml-in /table /dtml-let In yourdisplaymethod (dtml-method) you can specify where you want to place your results. Diny DIVA Faculty of Veterinary Medicine Utrecht University The Netherlands http://www.vet.uu.nl ___ 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 )
Re: [Zope] Silly send mail problem
At 9:04 am +0100 27/7/00, Phil Harris wrote: When using the dtml-sendmail tag you need to structure it like this: dtml-sendmail smtphost="mail.xyz.com" mailto="[EMAIL PROTECTED]" mailfrom="[EMAIL PROTECTED]" Subject="Testing from my machine" To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Testing from my machine mail body /dtml-sendmail hth Phil [EMAIL PROTECTED] ...and make sure you *don't* put any spaces before the Subject:, To:, From: and Subject: lines, ie have them hard up against the LHS of the textarea box. In other words, for the sendmail tag, whitespace (or rather the lack of it) *is* important. hth tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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] Réf. : Re: [Zope] dtml question from a newbizzzzz I want to access a dtmlpage under a subfolder subfolder: [Zope] dtml question from a newbizzzzz I want to access a dtmlpage under a subfolder subfolder
thks for your answer, but I use the variable PARENTS[0] in index2 and with your syntax, the result is not the same. "Marcel Preda" Pour : [EMAIL PROTECTED] marcel@puntocc : .it Objet : Re: [Zope] dtml question from a Envoyé par : newbiz I want to access a dtml page under a zope-admin@zosubfolder subfolder pe.org 27/07/00 10:54 On Thu, 27 Jul 2000 [EMAIL PROTECTED] wrote: I want to access a dtml page under a subfolder - portal (folder) - index1 (dtml) - reunion (folder) - index2 (dtml) I want to acces the index2 variable in the index1 dtml page. How can I do it ? thks for your answer David Sergent dtml-with reunion dtml-var index2 /dtml-with OR dtml-var "reunion.index2" PM ___ 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 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 )
Re: [Zope] Date format question urgent!!!
On Thu, 27 Jul 2000, Marko MARKOVIC wrote: hi all, i have a few questions about date formating: I'll skip this, were a lot of threads about DateTime format (fmt) Other time.. Finally, i want formatting a date as 2000/01/01 and then put in my table with a sql method. Any suggestions or a good example will be apprecieated... dtml-let tert="'01.01.1900'" dtml-let myTime="ZopeTime(tert)" dtml-let yourDate= "'%s/%s/%s' % (myTime.year(), myTime.mm(), myTime.dd())" do something here ... /dtml-let /dtml-let /dtml-let But dtml-let yourDate= "'%s/%s/%s' %(tert[6:], tert[3:5],tert[:2])" must be faster, if you have the date in the format: dd.mm. otherway ... $Regards MM PM ___ 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 )
Re: [Zope] zzLocale 0-0-3a released on Zope Japan
On Wed, 26 Jul 2000 12:59:32 +0200 "Johan Carlsson" [EMAIL PROTECTED] wrote: That's absolutly brilliant! Thanks for the support. :) What are the performance impact of the zzLocale? Do more installed translations effect performance in any way. On our test machines, we did not notice any significant performance loss when using zzLocale. But we made no actual measurement, and these machines were not loaded at all. Performances may degrade: zzLocale creates some overhead at Zope initialization, when it loads all the localized templates, then at every call of a management screen, when it must decide which localized screen to use according to the REQUEST and server settings. Other Zope operations should not be affected. The first overhead may get longer as more localized templates are installed. But anyway, since this matters only once, at initialization, I don't think it will ever be a problem. The second overhead, however, happens every time a management screen is accessed. Luckily it is almost independent from the number of templates installed, and should be reasonably small. But it is here anyway, and on a site with many managers, there might be some loss in performance... Anyone for a quick performance testing? Regards, -- Yves-Eric Martin Digital Garage Inc. [EMAIL PROTECTED] ___ 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] OQL for ZODB - (SQL like for objects Databases)
Hi, Is there a tool like SQL for ZODB ? Where to find more to do some query on ZODB objects ? Many Thanks. Emmanuel. -- Emmanuel DISCORS Tel Fax : 02 54 56 80 61 Conception, Informatique, Réseau ADVL ( Au-Delà de Vos Limites ) Site web : http://www.advl.org/ Archives mOdbc : http://www.advl.org/public/mOdbc/ ___ 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 )
Re: [Zope] zzLocale 0-0-3a released on Zope Japan
I have another feature that would be nice for the zzLocale framework. Support for localized images. As far as I know the Zope Management Interface doesn't use any images containing strings, but I know that I might use images that needs to be localized in my products. Maybe that's a requirement you can take in consideration? Are there any zzLocale Wiki for frameworks discussions? Regards, Johan ___ 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] How to start developing in zope
Hi, I have read through(and tried out) the tutorials and Guides at Zope.org, and now eager to port my company's website over to Zope. (The website was originally programmed in PHP) In my original design, I used OOP mainly. I defined each section(e.g. News, Events, Products) as a class by itself, inheriting from a "main" superclass. Each class would contain their own set of attributes(such as font-color, title) and methods(e.g. display news headline, or display events schedule). Common attributes method that are widely used are placed(shared) in the "main" class(e.g. talking to MySQL database). So, if there's any changes or updates, inheritance will propagate the changes to the rest of the subclasses. (As usual, management will require extra features such as personalised page, membership or web-based email to be added in future. Hopefully, this kind of structure would make adding new features a breeze.) I believe Zope is based on a similar way (and much more powerful). I was wondering how shld i start something like this in Zope - i read abt ZClasses(where you can define your own Folders), Products(for defining yr business logic) and DTML(for dynamic data display). Your opinions will be much appreciated. regards, firestar __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup ___ 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] Worldpilot+Courier problem
Hi everybody, I have found a strange problem in Worldpilot 1.1.0 alpha. Basically, I was not able to see a message, because the function that performs the parsing of the message (namely, the CreateStruct) was unable to cope with an empty string. I have traced the problem to the QuotedString expression in WPUtil. I have changed it from: QuotedString = re.compile(r'\s*"(?PString.*?[^\\](?="))"(?PRest.*)') to: QuotedString = re.compile(r'\s*"(?PString.[\\]?[^"]*(?="))"(?PRest.*)') and it started working regularly. It is ok that an IMAP server return an empty string ? Or it should give back a NIL value ? If so, perhaps is a bug in courier IMAP. Many thanks for the answers. Paolo -- Paolo Bizzarri - Responsabile Marketing I3 Icube Srl Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: [EMAIL PROTECTED] WWW: www.icube.it Tel:(+39) 050 97 02 07 Fax: (+39) 050 31 36 588 ___ 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] Strategies to backup Zope?
What should I do to backup Zope (read further...): 1) Can I just backup Data.fs file (and expect that in case of failure I can install zope as usual, copy backed up Data.fs over the installed version, run and be happy)? 2) What can I do in case I wish to backup only part of Zope database contents? In fact, I would like to run usual export on some folder - but I want to do it from cron or sth. similar without employing web interface. Thanks in advance for replies. -- Marcin.Kasperski | Teams do not make linear progress through analysis. @softax.com.pl | They don't start with requirement 1 and analyze it, Marcin.Kasperski | then move to requirement 2 and analyze it. (...) @bigfoot.com | Analysis tends to be revolutionary. (Martin) ___ 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] Zope and Tuxedo?
Has anyone used Zope to act as a Tuxedo client? Is anyone interested in doing this? Mostly it means creating a python extension that acts as a Tuxedo client, and then integrating that into Zope as a ZClass or Product or something. -- cary Tuxedo is pretty slick. You can download a trial version if you want. http://www.bea.com/products/tuxedo/index.html ___ 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] monitoring the zope-process with daemontools
hi, not really a zope-problem, but maybe someone can help me: I have posted a few days ago that I have problems with my zope dying suddenly. Someone suggested to use D. Bernsteins daemon-tools, not as a solution to my problem, but helpful anyway. I made this tool working on my production system, but there's one problem with it: as long as I start it by hand with the command svscan /service everything works fine. But when I start it automatically at boot time (through an entry in rc.local) then Zope starts up as I wanted it to do, it gets monitored and restarted again in case of a sudden death, but my DCOracle Database Connection tells me "not connected" and when I try to open it, Zope dies. I have trouble connecting to Oracle since month now, it never works as I expect. Is there anybody out there having no problems with Zope and Oracle databases? I'd really like to know that. Yours, Andy Pahne [EMAIL PROTECTED] net22 GmbH Bad Meinberger Strasse 1 32760 Detmold Tel.: 05231 - 580 640 ___ 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] WebDAV, FrontPage2000, Save
Hi there, I have problems to save files by using FrontPage2000´s webfolder function via WebDAV to Zope (Zope-2.1.6-linux2-x86). Here is my Z2.log: 192.168.1.3 - - [27/Jul/2000:13:40:36 +0200] "GET /_vti_inf.html HTTP/1.1" 404 2534 "" "Mozilla/2.0 (compatible; MS FrontPage 4.0)" 192.168.1.3 - - [27/Jul/2000:13:40:36 +0200] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 2529 "" "MSFrontPage/4.0" 192.168.1.3 - - [27/Jul/2000:13:40:36 +0200] "GET /hihi/ HTTP/1.1" 200 544 "" "Mozilla/2.0 (compatible; MS FrontPage 4.0)" 192.168.1.3 - - [27/Jul/2000:13:40:38 +0200] "GET /p_/ZopeButton HTTP/1.1" 200 9473 "" "Mozilla/2.0 (compatible; MS FrontPage 4.0)" 192.168.1.3 - - [27/Jul/2000:13:40:44 +0200] "GET /_vti_inf.html HTTP/1.1" 404 2534 "" "Mozilla/2.0 (compatible; MS FrontPage 4.0)" 192.168.1.3 - - [27/Jul/2000:13:40:45 +0200] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 2529 "" "MSFrontPage/4.0" 192.168.1.3 - - [27/Jul/2000:13:40:51 +0200] "OPTIONS /hihi HTTP/1.1" 200 383 "" "Microsoft Data Access Internet Publishing Provider Cache Manager" 192.168.1.3 - - [27/Jul/2000:13:40:51 +0200] "PROPFIND /hihi HTTP/1.1" 207 4312 "" "Microsoft Data Access Internet Publishing Provider DAV" 192.168.1.3 - - [27/Jul/2000:13:41:02 +0200] "PROPFIND /hihi HTTP/1.1" 207 4312 "" "Microsoft Data Access Internet Publishing Provider DAV" 192.168.1.3 - - [27/Jul/2000:13:41:02 +0200] "PROPFIND /hihi HTTP/1.1" 207 4312 "" "Microsoft Data Access Internet Publishing Provider DAV" 192.168.1.3 - - [27/Jul/2000:13:41:03 +0200] "PROPFIND /hihi HTTP/1.1" 207 4312 "" "Microsoft Data Access Internet Publishing Provider DAV" 192.168.1.3 - - [27/Jul/2000:13:41:03 +0200] "GET /_vti_inf.html HTTP/1.1" 404 2534 "" "Mozilla/2.0 (compatible; MS FrontPage 4.0)" 192.168.1.3 - - [27/Jul/2000:13:41:03 +0200] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 2529 "" "MSFrontPage/4.0" I think it is an authenticaton problem. But where do I give FrontPage the user + password? Thank you very much Marcus P.S.: Is it possible to show Zope-Sites in FrontPage without giving the user the possibiliy to see the standard-header/footer? They should not be able to make changes to header+footer. __ (0 Marcus Schopen //\ Bielefeld, Germany V_/_ __ ___ 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] create an MeetingManagement object in a folder
I use the MeetingManagment object, and it works, but can I define the folder where the objet are created ? David Sergent ___ 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] Zope and Tomcat
Hi all, I'm currently analysing this wonderfull product named Zope and I'm wondering if it is possible to integrate Zope with the JSP technology via why not Tomcat. The reason is the devevelopment team has a good experience with JSP and our current project - write in java - should plugged in a portal like ZOPE can do ! Thanks you for your information Christophe Lombart Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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] Call of an SQL Method within a DTML document...
Hi, How can I call and SQL method within a DTML document (HTML code) ? Thanks Vincent ___ 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 )
Re: [Zope] Zope and Tomcat
To start you might want to look at some benchmarking I did between Zope and Tomcat http://www.zope.org/Members/BwanaZulia/zope_benchmarks/tomcat1.html (1 of 4 rounds) To answer your question though, since Zope can sit behind Apache (cgi based, proxy pass, etc) and Tomcat can sit behind Apache (writes its own config file NOTE TO DC THIS IS REALLY NICE!) you should be able to mix and match. Tomcat will not server Zope and Zope will not serve Tomcat but you could get them to talk to the same databases and serve off the same instance of Apache. Good luck. J From: "Christophe Lombart" [EMAIL PROTECTED] Date: Thu, 27 Jul 2000 16:25:05 CEST To: [EMAIL PROTECTED] Subject: [Zope] Zope and Tomcat Hi all, I'm currently analysing this wonderfull product named Zope and I'm wondering if it is possible to integrate Zope with the JSP technology via why not Tomcat. The reason is the devevelopment team has a good experience with JSP and our current project - write in java - should plugged in a portal like ZOPE can do ! Thanks you for your information Christophe Lombart Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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 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] Problems with JavaScript in WinNT + Netscape! Urgent!
Hi I am using JavaScript's in zope and until now I havent experienced any problem. Today something strange happened though.. when editing a JavaScript it suddenly stopped working in WindowsNT with Netscape. It worked however in IE on the same computer and on Netscape running on Linux (RedHat 6.2). When examining the errormessages and the code I have found that the errors seem to be some linebreaks that do not show up when I am looking at the source (not even with w-get). The reason I suspect that is the problem is that the errors are like: "secondsVisi is not defined." when in fact the name of the variable is "secondsVisible". I also saw one linebreak when looking at the source for the html-document once. Can anybody tell me why this happens? I dont suspect this is a browser-bug because the JavaScript works just fine in Netscape running on Linux. This is not a cache-thing either because we have tried everything in that area. Therefore I wonder if this may be an issue in Zope? ___ 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 )
Re: [Zope] Zope and Tomcat
There is a plan to integrate the java technology (mainly JSP servlet) into the Zope engine in order to use only one web extension for the content management and java program. Christophe From: "J. Atwood" [EMAIL PROTECTED] To: Christophe Lombart [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Zope] Zope and Tomcat Date: Thu, 27 Jul 2000 10:49:18 -0400 To start you might want to look at some benchmarking I did between Zope and Tomcat http://www.zope.org/Members/BwanaZulia/zope_benchmarks/tomcat1.html (1 of 4 rounds) To answer your question though, since Zope can sit behind Apache (cgi based, proxy pass, etc) and Tomcat can sit behind Apache (writes its own config file NOTE TO DC THIS IS REALLY NICE!) you should be able to mix and match. Tomcat will not server Zope and Zope will not serve Tomcat but you could get them to talk to the same databases and serve off the same instance of Apache. Good luck. J From: "Christophe Lombart" [EMAIL PROTECTED] Date: Thu, 27 Jul 2000 16:25:05 CEST To: [EMAIL PROTECTED] Subject: [Zope] Zope and Tomcat Hi all, I'm currently analysing this wonderfull product named Zope and I'm wondering if it is possible to integrate Zope with the JSP technology via why not Tomcat. The reason is the devevelopment team has a good experience with JSP and our current project - write in java - should plugged in a portal like ZOPE can do ! Thanks you for your information Christophe Lombart Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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 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 ) Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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] Re: ZEO and 2gb max limit for linux .. not for solaris etc.
Sven Hohage wrote: Hallo Jorgen, I write you cause I've got a question about Zope. You've posted on the mailing list on my question with the filesize of the data.fs or in ZEO ZSS. My problem is that I'd like to know which Unix - versions don't have this filesize limitations and if there is a linux version without that limit. Or do you know another way to solve this problem?? Many thanks Sven Hmm.. well .. I can tell you what I know as of today. Linux has this limitation as of today. At least all the variants I have come over (mostly Red Hat and Suse). The limitation is in the filesystem implementation itself; meaning that the number of "references" that can be created cannot exceed the address limit of 2gb. Solaris does not have this limitation and neither does Hp-Ux or SGI Irix. I know previous versions of SunOS (v4.x) had the same limitation as linux is experiencing today. Though.. there are ways "around" the problem. Though; all different over the variuos unix versions as of today. When running Zope you really don't have much choice on linux. When you hit the 2gb barrier .. you have problems. I have not tried it .. but as I can recall there was a product for Zope that made it possible to "mount" several databases at once .. though it was beta. .. this might solve a problem .. and would from my point of view be a nice way to go. This way; the administrator of the system also have some choices as to where he want to put his data. Then you can move certain object databases to fast storage .. and so forth. .. so; if you have those problems; get Solaris v7/v8 for Intel (or if you can afford it- sparc!) .. and run Zope of that. I do so .. but then again; I am not near the 2gb barrier that many people have come over. ;) .. on the other hand; I am not aware of the various "beta" filesystem implementations and kernel "to-do"'s for linux, but I suspect that it will not be long before that problem is solved. .. oh! When I think of it.. SGI has ported their XFS to linux. Not sure how far that implementation has gone yet.. but the link to check out is; http://oss.sgi.com/projects/xfs/ Looks promising.. and a "production" like filesystem for linux is a "must" as far as I can see. ;) Just read the brief here; Sub-second filesystem recovery after crashes or power failures (never wait for long fscks again) 64-bit scalability: millions of terabytes, millions of files, and a million files per directory (no more 2 GB limits) High reliability and performance from journaling and other advanced algorithms Hope that helped a bit?? .. just shoot if there's more I can help with! ;) -- Med vennlig hilsen, Jørgen Skogstad /\System Specialist \\ \ \ \\ / Sun Microsystems AS / \/ / / Gjerdrums vei 12 / / \//\N-0486 Oslo, NORWAY \//\ / / / / /\ / Phone:+ 47 22 02 39 00 / \\ \ Cellular: + 47 92 41 30 23 \ \\ Fax: + 47 22 02 39 99 \/EMail:[EMAIL PROTECTED] Web: www.sun.no BTW; Opinions formed by myself in informal mailings are mine and not of my employer. ___ 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] What's wrong with this snippet?
hi all, i tried and searched to find the error but i couldn't solve it. Could anyone help me with this code: dtml-in "GenericSQL(SQLStatement='SELECT ns.ns_ref,ns.ns_entrydate,ns.ns_status, ns.ns_name, ns.ns_adresse, ns.ns_location FROM noteservice ns WHERE (ns.ns_entrydate='%s/%s/%s' % (sentrydate[6:],sentrydate[3:5],sentrydate[:2])) ORDER BY ns.ns_entrydate desc')" size=10 start=query_start Where i can find infos about sql calls with dtml-in? $Reagrds MM ___ 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 )
Re: [Zope] Zope and Tomcat
Do you have a timeframe for this to avaiable ? There is a plan to integrate the java technology (mainly JSP servlet) into the Zope engine in order to use only one web extension for the content management and java program. Christophe ___ 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 )
Re: [Zope] Problems with JavaScript in WinNT + Netscape! Urgent!
I am using JavaScript's in zope and until now I havent experienced any problem. Today something strange happened though.. when editing a JavaScript it suddenly stopped working in WindowsNT with Netscape. It worked however in IE on the same computer and on Netscape running on Linux (RedHat 6.2). When examining the errormessages and the code I have found that the errors seem to be some linebreaks that do not show up when I am looking at the source (not even with w-get). The reason I suspect that is the problem is that the errors are like: "secondsVisi is not defined." when in fact the name of the variable is "secondsVisible". I also saw one linebreak when looking at the source for the html-document once. Can anybody tell me why this happens? I dont suspect this is a browser-bug because the JavaScript works just fine in Netscape running on Linux. This is not a cache-thing either because we have tried everything in that area. Maybe is better to give us a link or a pice of code.. On NN [probablly] you must call something like `document.variable' insted of just 'variable' or depends, the `document' is necessary [usually a lot of people don't do this and have problems] I dont know if you know, but if you type in the NN 'javascript:' will give you a JavaScript Console, is very usefull Therefore I wonder if this may be an issue in Zope? No way PM ___ 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] Netscape Open session with NT active user
Hi, In fact, it is not just a question about Zope, it is a question about Netscape : When you protect a directory and ask for a password, I would like to know if Netscape is able to access to the parameters of the loged user (under NT). PS : In fact, I would like that the users do not need to enter twice their login/password. Thanks Vincent ___ 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 )
Re: [Zope] Zope and Tuxedo?
Cary O'Brien wrote: Has anyone used Zope to act as a Tuxedo client? Is anyone interested in doing this? Mostly it means creating a python extension that acts as a Tuxedo client, and then integrating that into Zope as a ZClass or Product or something. Writing python extension should not be hard, but Tuxedo used to have problems in multithreaded environment. Check whether Tuxedo client works in multithreaded program before further attempts (I do not know how does it look now, I used Tuxedo ~ 2 years ago). -- Marcin.Kasperski | Most of the bad things that can happen to a project @softax.com.pl | are the result of miscommunication. Marcin.Kasperski | (Booch,Martin,Newkirk) @bigfoot.com | ___ 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] (no subject)
hi, do you know any zope's competitors ? Kate ___ 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 )
Re: [Zope] Re: ZEO and 2gb max limit for linux .. not for solaris etc.
If you don't wan't to run Sun or HP-UX you could always look at one of the open *BSD clones. As I can recall both OpenBSD and FreeBSD have filsystems that manage 2GB files. /Johan Sven Hohage wrote: Hallo Jorgen, I write you cause I've got a question about Zope. You've posted on the mailing list on my question with the filesize of the data.fs or in ZEO ZSS. My problem is that I'd like to know which Unix - versions don't have this filesize limitations and if there is a linux version without that limit. Or do you know another way to solve this problem?? Many thanks Sven Hmm.. well .. I can tell you what I know as of today. Linux has this limitation as of today. At least all the variants I have come over (mostly Red Hat and Suse). The limitation is in the filesystem implementation itself; meaning that the number of "references" that can be created cannot exceed the address limit of 2gb. Solaris does not have this limitation and neither does Hp-Ux or SGI Irix. I know previous versions of SunOS (v4.x) had the same limitation as linux is experiencing today. Though.. there are ways "around" the problem. Though; all different over the variuos unix versions as of today. When running Zope you really don't have much choice on linux. When you hit the 2gb barrier .. you have problems. I have not tried it .. but as I can recall there was a product for Zope that made it possible to "mount" several databases at once .. though it was beta. .. this might solve a problem .. and would from my point of view be a nice way to go. This way; the administrator of the system also have some choices as to where he want to put his data. Then you can move certain object databases to fast storage .. and so forth. .. so; if you have those problems; get Solaris v7/v8 for Intel (or if you can afford it- sparc!) .. and run Zope of that. I do so .. but then again; I am not near the 2gb barrier that many people have come over. ;) .. on the other hand; I am not aware of the various "beta" filesystem implementations and kernel "to-do"'s for linux, but I suspect that it will not be long before that problem is solved. .. oh! When I think of it.. SGI has ported their XFS to linux. Not sure how far that implementation has gone yet.. but the link to check out is; http://oss.sgi.com/projects/xfs/ Looks promising.. and a "production" like filesystem for linux is a "must" as far as I can see. ;) Just read the brief here; Sub-second filesystem recovery after crashes or power failures (never wait for long fscks again) 64-bit scalability: millions of terabytes, millions of files, and a million files per directory (no more 2 GB limits) High reliability and performance from journaling and other advanced algorithms Hope that helped a bit?? .. just shoot if there's more I can help with! ;) -- Med vennlig hilsen, Jørgen Skogstad /\System Specialist \\ \ \ \\ / Sun Microsystems AS / \/ / / Gjerdrums vei 12 / / \//\N-0486 Oslo, NORWAY \//\ / / / / /\ / Phone:+ 47 22 02 39 00 / \\ \ Cellular: + 47 92 41 30 23 \ \\ Fax: + 47 22 02 39 99 \/EMail:[EMAIL PROTECTED] Web: www.sun.no BTW; Opinions formed by myself in informal mailings are mine and not of my employer. ___ 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 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 )
Re: [Zope] zope's competitors
On Thu, 27 Jul 2000 [EMAIL PROTECTED] wrote: do you know zope's competitors? Offtopic, er? :) I coolected some on the page: http://zope.net.ru/Zope/rivals/ Some texts are in Russian there, but mostly the text is in English; anyway links are just, hm, links. :) Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] R: [Zope] What's wrong with this snippet?
___ "Will I be using Python today?" and if the answer is "yes" I know that it's going to be a good day. - Original Message - From: Marko MARKOVIC [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 27, 2000 5:12 PM Subject: [Zope] What's wrong with this snippet? hi all, i tried and searched to find the error but i couldn't solve it. Could anyone help me with this code: dtml-in "GenericSQL(SQLStatement='SELECT ns.ns_ref,ns.ns_entrydate,ns.ns_status, ns.ns_name, ns.ns_adresse, ns.ns_location FROM noteservice ns WHERE (ns.ns_entrydate='%s/%s/%s' % (sentrydate[6:],sentrydate[3:5],sentrydate[:2])) ORDER BY ns.ns_entrydate desc')" size=10 start=query_start Where i can find infos about sql calls with dtml-in? try something like dtml-let SQLStatement="'SELECT ns.ns_ref,ns.ns_entrydate,ns.ns_status, ns.ns_name, ns.ns_adresse, ns.ns_location FROM noteservice ns WHERE (ns.ns_entrydate=\'%s/%s/%s\' ) ORDER BY ns.ns_entrydate desc' % (sentrydate[6:],sentrydate[3:5],sentrydate[:2])" dtml-in "GenericSQL(SQLStatement) Dont forget about ESCAPE character: \ ' \'%s%s%s%s\`...' PM ___ 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] Downloadable Zope reference and products?
Is it possible to download in some way complete zope reference and zope products? In case anyone is interested why do I need it: I have fast internet link at work. I have time to study Zope at home. -- Marcin.Kasperski | Users typically do not know exactly what they want @softax.com.pl | and are unable to articulate all that they know. Marcin.Kasperski | (Parnas) @bigfoot.com | ___ 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] DA, MySQL and Unix socket
hi... There'a any DA around there that allow a unix socket connection to a MySQL server? And if it is, it will be fast than a TCP connection? I'm running zope and mysql on the same server Thanks -- --- Diego Rodrigo Neufert -webmaster --- (Magic Web Design) (email) ([EMAIL PROTECTED]) (curitiba) (pr) ___ 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] Full path var on Zope.org login link (Ethan!)?
What DTML-VAR do they use on Zope.org to populate the came_from variable for the 'login' link? I have used dtml-var absulute_url but it does not seem to return the full path 'http://www.thedomain.com/folder/page.html' Any help would be great. Thanks, J ___ 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 )
Re: [Zope] Starting Zope
Il gio, 27 lug 2000, Oleg Broytmann ha scritto: On Thu, 27 Jul 2000, Costagliola Giovanni wrote: How can I to start Zope whit a different user than root and cath the default HTTP port? Use different way - start Zope as root, catch port 80 and drop uid. I receive an error becouse root hasn't granted the need privileges on /Zope/var/ directory. This is a different error, not a problem with port 80, ah? I see Oleg, more exactly I would start ZServer with an user like 'zope', for example, but at the same time I want it links the port 80! I could use the root user simply but I'll lose my sleep :^) Can you give me some input? Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. -- / * * / / / __oOOo__/__/_oOOo (° Giovanni Costagliola (jancos) //\ email: [EMAIL PROTECTED] V_/_voice: +39 (0)347 1174139 _ / / / / ( (__ \ \ / /#*** * ** \ \/ /*** * * \ /###*** * ** \ /##*** * * \___/#*** * ** ___ 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 )
Re: [Zope] DA, MySQL and Unix socket
Diego Rodrigo Neufert wrote: There'a any DA around there that allow a unix socket connection to a MySQL server? There is, but I'm afraid there seems to be a bit of voodoo around WRT to which version to use and how to install it :S I know we've got it up and running happily... Steve, a bit of advice perhaps? cheers, Chris ___ 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] FindOneOf?
ColdFusion (I know, a dirty word ;-) ) has a nifty string function called "FindOneOf" which returns the index of the occurrence of any character in a string. Example: FindOneOf("ghd", "abcdefghij", 1) Will return a "4" because "d" is the fourth letter in the string "abcdefghij". If no match is made, a 0 is returned. This is especially useful when building a change password form, because I can easily check to see that the new password contains at least one special character, upper case character, number, etc. Is there anything similar to FindOneOf in ZOPE? If not, does anyone have any hints on how I can go about doing this kind of thing through dtml or python? -=Brad=- ___ 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 )
Re: [Zope] FindOneOf?
"Mabe, Brad" wrote: Will return a "4" because "d" is the fourth letter in the string "abcdefghij". If no match is made, a 0 is returned. This is especially useful when building a change password form, because I can easily check to see that the new password contains at least one special character, upper case character, number, etc. dtml-if "not 'x' in 'xyz'" You haven't got an 'x' in your stuff dtml-else Yay! /dtml-if That'll do for starters, you might want to look into the python re module (you'll need an external method as I don't think python methods support re...) cheers, Chris ___ 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 )
RE: [Zope] Netscape Open session with NT active user
Hi, It doesn't work if you think of the NT chalenge response authorization of IIS. This needs IE on the client side. But if you want to access this file through the file system then Netscape behaves as any other win32 application. Arpad On 27-Jul-2000 Vincent wrote: Hi, In fact, it is not just a question about Zope, it is a question about Netscape : When you protect a directory and ask for a password, I would like to know if Netscape is able to access to the parameters of the loged user (under NT). PS : In fact, I would like that the users do not need to enter twice their login/password. Thanks Vincent ___ 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 ) -- E-Mail: Arpad Kiss [EMAIL PROTECTED] Date: 27-Jul-2000 Time: 21:56:24 This message was sent by XFMail -- ___ 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 )
Re: [Zope] DA, MySQL and Unix socket
On Thu, 27 Jul 2000, you wrote: Diego Rodrigo Neufert wrote: There'a any DA around there that allow a unix socket connection to a MySQL server? There is, but I'm afraid there seems to be a bit of voodoo around WRT to which version to use and how to install it :S Can you just say the name of the adpter? I've found nothing about it in ZMySQLDA... I know we've got it up and running happily... If u tell me the URL to get it, or just the name I will try to run it happily too.. :) I wanna do some benchs btw a tcp and a unix socket connection... Thanks... Steve, a bit of advice perhaps? cheers, Chris -- --- Diego Rodrigo Neufert -webmaster --- (Magic Web Design) (email) ([EMAIL PROTECTED]) (curitiba) (pr) ___ 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] SV: [Zope] Re: ZEO and 2gb max limit for linux .. not for solaris etc.
Hmm.. well .. I can tell you what I know as of today. Linux has this limitation as of today. At least all the variants I have come over (mostly Red Hat and Suse). The limitation is in the filesystem implementation itself; meaning that the number of "references" that can be created cannot exceed the address limit of 2gb. Not quite true. The problem only exixts in Linux on 32 bit x86 hardware. Wherever Linux is 64 bit, the problem is non-extant. BTW, both RedHat and Suse (and Debian, IIRC) have distribions for the Alpha platform. Yep.. didn't think of that as I have never reasoned for running linux on any of those platforms. ;) I've used to running Solaris on sparc.. and when needed linux on x86 hardware (when solaris for intel was not the correct choice). Though; I look forward for SGI's implementation og XFS when it arrives in beta this summer. Though; are there any possibilities that Zope may implement "Oracle style" distribution og the databases in due time? Like then you have a bit more "control" over where you put your data .. and what kind of devices you put them on? .. possibly this can be done through ZEO and the beta shared object database (mount more than one instance of the Data.fs files). Have a real nice day! ;) Kindest, Jørgen Skogstad ___ 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 )
Re: [Zope] newbie DTML namespace
Brad Moulton writes: I would like to build a table depending on some tests peformed on stuff returned form a Z SQL method 1. I have a form with a name="spam" value="egs" this value is passed onto next dtml document - table tr tddtml-var spam td // displays 'eggs' to test spam is OK /tr dtml-var sqlstuff // this does a join of two tables dtml-in sqlstuff dtml-if {CAN'T WORK OUT SYNTAX TO ACCESS spam to compare with lets say sqlstuff.spam} trtddtml-var sqlstuff.column/tdetc /dtml-if /dtml-in -- Your problem is solved by renaming. You can either rename your DTML var or your SQL column result name: DTML var: dtml-let myspam=spam !-- you can now access "spam" as "myspam"-- dtml-in sqlstuff dtml-if "myspam == spam"/dtml-if /dtml-in /dtml-let SQL column result name: select spam as sqlspam ... You now access the "spam" column under the name "sqlspam". I, regularly, use SQL column renaming. Dieter ___ 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 )
Re: [Zope] monitoring the zope-process with daemontools
Andy Pahne writes: I have posted a few days ago that I have problems with my zope dying suddenly. Someone suggested to use D. Bernsteins daemon-tools, not as a solution to my problem, but helpful anyway. I made this tool working on my production system, but there's one problem with it: as long as I start it by hand with the command svscan /service everything works fine. But when I start it automatically at boot time (through an entry in rc.local) then Zope starts up as I wanted it to do, it gets monitored and restarted again in case of a sudden death, but my DCOracle Database Connection tells me "not connected" and when I try to open it, Zope dies. It seems that your environment is different for interactive start and start during boot. Remember, that Oracle requires a set of environment variables set, especially ORACLE_HOME. I have trouble connecting to Oracle since month now, it never works as I expect. Is there anybody out there having no problems with Zope and Oracle databases? I'd really like to know that. We have little problems Beside something corrupting the heap. I do not yet know, what is to blame -- but maybe in a few days. Dieter ___ 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 )
Re: [Zope] Re: [Zope-dev] Need for aq_base in DTML(was: Re: [Zope] Dumb DTMLquestion - existance check of an object)question - existance check of an object)
Steve Alexander writes: * Existence check: "_.hasattr(object,what)" NOTE, that this is the sloppy part. - "_.hasattr" will return true, if "object" has attribute "what" (that is what we want) *OR* when it has acquired such an attribute (we do *NOT* want that here). What we would need is a DTML accessible version of "aq_base". This is trivially handled by an external method. Can you do this with the following in DTML? dtml-with "PARENTS[-1]" only dtml-if "_.hasattr(object, what)" ...stuff... /dtml-if /dtml-with It may work for "PARENTS[-1]" but it can not be generalized: The DTML namespace is essentially a stack of mappings. The "with" tag with the "only" attribute starts a new stack and pushes the object onto this new stack. Inside the "with", you will only see attributes of the object itself *or* attributes that the object acquired. This "or" is the problem. Acquisition and namespace stacking are orthogonal. You strip the namespace stacking with the "only" attribute (of the "with" tag), you strip the acquisition context with the "aq_base" attribute (of the object). Dieter ___ 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 )
Re: [Zope] Call of an SQL Method within a DTML document...
Vincent writes: How can I call and SQL method within a DTML document (HTML code) ? Read the Z SQL Method Guide (zope.org - Documentation). If you have more questions after that, the list will surely answer them. Dieter ___ 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 )
Re: [Zope] Newbie question on page counters
"Richard P. Muller" wrote: I'm in the process of learning Zope hacking, and I'm having a really hard time getting a page counter to work. It isn't even that page counters are all that important to me, it's that I feel that if I can't even do something this simple, what hope do I have doing something really hard? The ZODB is a _really_ bad place to store a page counter, especially on a busy site. Data.fs will grow each time your counter increments. This is because it's a transactional daatbase with undo ability... Here's what I've done. (1) Under "Properties" I've created two properties (both ints) counter_starting_value, which I've set to 11 (arbitrarily) counter_value, which I've set to 0 Sounds good :-) dtml-if counter_value dtml-let counter_value = counter_value + 1 /dtml-let dtml-else dtml-let counter_value = counter_starting_value /dtml-if dtml-var counter_value This didn't work. The error message reported that the syntax in the first (and probably the second, but I never got past the first) dtml-let command was wrong. Whoops, just remember this: DTML is not a programming language, it is designed for data presentation and form processing. Or something like that ;-) To do what you want, you probably want something like: dtml-call "manage_changeProperties(counter_value=getProperty(counter_value,counter_starting_value-1)+1)" Which isn't pretty :S cheers, Chris ___ 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] working with datetime
Is there an easy way to increment the month or year of the DateTime object? Adding a numeric value increments the day. Incrementing the year is easily doable, but incrementing the month is significantly more difficult. So I'm just curious if there's a function that will actualy modify the parts of a DateTime object, or something way that I'm not thinking of to easily increment the month. ___ 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 )
Re: [Zope] Newbie question on page counters
Chris Withers wrote: To do what you want, you probably want something like: dtml-call "manage_changeProperties(counter_value=getProperty(counter_value,counter_starting_value-1)+1)" Erk, maybe this: dtml-call "manage_changeProperties(counter_value=getProperty('counter_value',getProperty(counter_starting_value,0)-1)+1)" Chris ___ 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] Would you like to see Jim Fulton and Paul Everitt in Portugal?
ZopersORG team is organizing the ZWP2000 (Zope World Portugal 2000) event. So we're having a poll about Jim and Paul comming to Portugal in our main site: http://www.zopers.org We hope ZWP2000 is the first of many international Zope events in Portugal. It would be great to have Jim and Paul here for the first event but we really need to know how people feel about this... so please vote! For those who aren't portuguese here's the poll's translation: Would you like to assist an international Zope conference in Portugal? 1- Claro que sim (Yes! Of course) 2- Não (No) 3- Zope??? (hehe) 4- Sou surdo (I'm deaf) :-) We hope this can turn into a really big event!!! = Hugo Ramos - [EMAIL PROTECTED] ZopersORG - http://www.zopers.org = Do not meddle in the affairs of programmers, for they are easy to annoy, and have all the source code!!! ___ 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 )
Re: [Zope] Zope on Linux - Oracle 7.3 Solaris connect question... ZOracleDA how tocompile?compile?
Hi Chris, You can connect to Oracle 7.3 database from ZOracleDA on Linux compiled against Oracle8/8i client. I've a production environment where Zope 2.1.3 runs on a Redhat 6 machine with Oracle 8.0.5 clients. It connects to an Oracle 7.3 database on HP-UX. All you need to make sure is that your SQL*Net connection in the Zope machine is set properly. Your Solaris machine should be added to $ORACLE_HOME/net/admin/tnsnames.ora properly. [EMAIL PROTECTED] http://vsbabu.csoft.net - Original Message - From: Chris Beaumont [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 27, 2000 4:31 PM Subject: [Zope] Zope on Linux - Oracle 7.3 Solaris connect question... ZOracleDA how tocompile?compile? Zelp! (: I have a Linux based Zope installation that I need to connect up with a copy of Oracle 7.3 Workgroup Server running on a Solaris machine. I understand from a recent post that I will need to install Oracle client libraries for Linux in order for the ZOracleDA on the Linux box that is running Zope to compile- I don't have an older Oracle client for Linux, if indeed one was made.. (you can tell that I'm new to this here..) So...ta da... I have several newbie questions.. Obviously Oracle 7.3 is not the current rev. so... 1.) Can I use the current Linux version of the Oracle client to compile the ZOracleDA, then use that install to connect to Oracle 7.3 without errors? 2.) If I cant, does anyone have any suggestions on ways to solve this problem? 3.) Are there any particular caveats in considering this kind of configuration, or anything not covered in the docs.. I'm a relative newcomer to Zope, so *any* help is welcome and highly appreciated... Thank you very much... Chris Beaumont [EMAIL PROTECTED] ___ 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 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 )
RE: [Zope] ZOracleDA
Thanks for the reply... I was planning to install Zope on the database server, compile DCOracle there, and then just copy the *.so files to the webservers, where the real Zope install is. Do you need the oracle client libraries on the webservers to make the connection or are the two shared libraries that you compile, (oci_.so and Buffer.so) enough to make the connection to the web server? Thanks for your help, Aaron Bostick Network Architect Exodus Professional Services -Original Message- From: Satheesh Babu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 26, 2000 3:29 PM To: Aaron Bostick; [EMAIL PROTECTED] Subject: Re: [Zope] ZOracleDA Hi, If you are running Zope on 1. Linux: You need to install Oracle client libraries to compile ZOracleDA. As far as I know, Oracle does not give any easy way to install only the clients. So, if you've enough disk space, install Oracle with the minimum DB options, and compile ZOracleDA. You DON'T NEED to run Oracle DB on your Zope machine, to have zope connect to your actual DB machine. 2. Win NT/2000/98 You can install only the client libraries from the Oracle CD, get ZOracleDA compiled and run Zope. I've used it both ways. Somewhere on the net there was a tarred version of client-only-oracle-4-linux. Check freshmeat.net and gnome.org for some GTK apps for accessing Oracle. It was there in the homepage for that suite of apps. - Original Message - From: Aaron Bostick [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 26, 2000 4:45 PM Subject: [Zope] ZOracleDA Zope list members, I have been developing a zope site with oracle on linux as a backend. Currently, I run both zope and oracle on the same machine using the ZOracleDA for connectivity. However, for production, I plan to seperate the tiers and run zope and and oracle on different servers. From looking at the build instructions for the DCOracle, it seems as though it will only work when the web server and database server are on the same filesystem/in the same memory space. Is there a way to have my zope server talk to a remote (across the network somewhere) database server? Do I have to move to something like ODBC for this? Thanks for your help! Aaron Bostick Network Architect Exodus Professional Services ___ 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 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 )