[Zope-Coders] Zope tests: 8 OK

2005-06-23 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Wed Jun 22 11:01:02 2005 UTC to Thu Jun 23 11:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Wed Jun 22 23:22:43 EDT

Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-23 Thread Peter Bengtsson
On 6/22/05, Tim Suter [EMAIL PROTECTED] wrote: FWIW, here's the output of the old 2.5.1 install: ... So that tells me that there are many dependent on bobobase_modification_time. What does that mean and what do I need to do about it? It is completely wrong to rely on

[Zope] problems with testing (PloneMailBoxer)

2005-06-23 Thread robert rottermann
Hi there, I have a problem testing PloneMailBoxer I am using the Method added at the end getter = self.getProperty('getter') getterHandler = self.unrestrictedTraverse(getter, default=None) Calling the method in a test case I allways get None. In a real Plone setup it works fine. can somebody

[Zope] ZopeProfiler and Zope 2.8.0

2005-06-23 Thread Pascal Peregrina
Hi, I would like to know if anyone has tried using ZopeProfiler (1.4 version from http://www.dieter.handshake.de/pyprojects/zope/) with Zope 2.8.0 It was working fine with Zope 2.7.6 but it appears to cause the instance to hang with Zope 2.8.0... Thanks. Pascal

[Zope] Cached Variables

2005-06-23 Thread calisp
Hi, I am developing an application that is a front end to an RDBMS. Sometimes, when loading a page, several scripts get called that all require the same information from the database. It would obviously be costly for each script to call the same ZSQL method. My method for avioiding this

Re: [Zope] Cached Variables

2005-06-23 Thread Andrew Milton
+---[ [EMAIL PROTECTED] ]-- | Hi, | | I am developing an application that is a front end to an RDBMS. | Sometimes, when loading a page, several scripts get called that all | require the same information from the database. It would obviously be | costly for each script to

Re: [Zope] Cached Variables

2005-06-23 Thread calisp
On 23/06/05, Andrew Milton [EMAIL PROTECTED] wrote: +---[ [EMAIL PROTECTED] ]-- | Hi, | | I am developing an application that is a front end to an RDBMS. | Sometimes, when loading a page, several scripts get called that all | require the same information from the

Re: [Zope] Cached Variables

2005-06-23 Thread Andrew Milton
+---[ [EMAIL PROTECTED] ]-- | On 23/06/05, Andrew Milton [EMAIL PROTECTED] wrote: | +---[ [EMAIL PROTECTED] ]-- | | Hi, | | | | I am developing an application that is a front end to an RDBMS. | | Sometimes, when loading a page, several scripts

Re: [Zope] Cached Variables

2005-06-23 Thread Peter Bengtsson
Use the Z SQL Method cache if you can. The important difference is that the z sql method cache is for all people whereas the REQUEST is just for one person. Generic SQL: SELECT COUNT(*) FROM documents; Personal SQL: SELECT COUNT(*) FROM documents WHERE uid=dtml-sqlvar your_username type=string

[Zope] Using Zope to Manage an Asset Inventory Database

2005-06-23 Thread Spann, John W.
I run a local area network of about 200 Microsoft Windows based workstations and about 15 servers. The inventory consists of various pieces of information (make, model, serial number ...) relating to CPU, monitor, keyboard etc. At the present time, the computer inventory is maintained using an

Re: [Zope] Using Zope to Manage an Asset Inventory Database

2005-06-23 Thread Lennart Regebro
On 6/23/05, Spann, John W. [EMAIL PROTECTED] wrote: I have been looking for examples of how this is done within Zope, but I have not found any working examples. Any thoughts on how to implement a system like this would be much appreciated. Interesting idea, and, well, you pretty much

Re: [Zope] Using Zope to Manage an Asset Inventory Database

2005-06-23 Thread Jonathan
- Original Message - From: Spann, John W. [EMAIL PROTECTED] My thinking is to have a hierarchy of objects. A CPU object, monitor object, keyboard object, tape drive, disk drives, etc. Some CPUs and monitors are spares and sit in a storage room. I would like to be able to use Zope and

[Zope] ZODB performace/banchmarks

2005-06-23 Thread Tamas Hegedus
Hi, Two months ago I red about the ZODP that it has high performace, can store high amount of data, but there are no banchmarks e.g. for comparison for RDBMS. Are these true? If yes, why is not created a banchmark or something like that? Thanks, Tamas -- Tamas Hegedus |

[Zope] Search path for objects

2005-06-23 Thread John Poltorak
Does Zope look anywhere apart from the current folder for objects which are specified like this:- ? link rel=Stylesheet type=text/css href=ploneCustom.css / I've cobbled together a website and can't work out where certain CSS tags are being specified. Is there a simple way to

Re: [Zope] Search path for objects

2005-06-23 Thread Andrew Milton
+---[ John Poltorak ]-- | | | Does Zope look anywhere apart from the current folder for objects which | are specified like this:- ? | |link rel=Stylesheet type=text/css | href=ploneCustom.css / | | I've cobbled together a website and can't work out

[Zope] External editor for ZMI

2005-06-23 Thread John Poltorak
What alternatives are there to editing objects through ZMI? -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

RE: [Zope] External editor for ZMI

2005-06-23 Thread Jim Abramson
I do recommend Boa Constructor, which feels the most like you're actually editing source code files (though you're editing the zope objects in place). This program has actually saved my life. Caveats: It has a few dependencies you'll need to track down, and it's a little buggy/quirky. If

Re: [Zope] External editor for ZMI

2005-06-23 Thread Paul Winkler
On Thu, Jun 23, 2005 at 04:27:50PM +0100, John Poltorak wrote: What alternatives are there to editing objects through ZMI? ExternalEditor. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org

Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-23 Thread Tim Suter
Yep, I think I hosed the new install. I imported the old Data.fs and corresponding .zexp files over and now it won't let me into the localhost:8080/manage interface even. I keep getting connection refused messages there. I have restarted zope. Tried to restore the working Data.fs file...but

Re: [Zope] External editor for ZMI

2005-06-23 Thread John Poltorak
On Thu, Jun 23, 2005 at 11:49:19AM -0400, Paul Winkler wrote: On Thu, Jun 23, 2005 at 04:27:50PM +0100, John Poltorak wrote: What alternatives are there to editing objects through ZMI? ExternalEditor. Do you mean this? http://plope.com/software/ExternalEditor Are there any screen shots

Re: [Zope] External editor for ZMI

2005-06-23 Thread Brian Sullivan
AFAIK External Editor just provides the infrastructure not the editor itself. I use the External Editor product/infrastructure and HTML Kit on Windows: http://www.chami.com/html-kit/ ___ Zope maillist - Zope@zope.org

Re: [Zope] External editor for ZMI

2005-06-23 Thread Dennis Allison
emacs via ftp -- see the Zope Book for funky details. On Thu, 23 Jun 2005, Paul Winkler wrote: On Thu, Jun 23, 2005 at 04:27:50PM +0100, John Poltorak wrote: What alternatives are there to editing objects through ZMI? ExternalEditor. -- Dennis Allison * Computer Systems

Re: [Zope] External editor for ZMI

2005-06-23 Thread Dennis Allison
External editor is an interface product that allows you to edit Zope objects with your local editor (vi, emacs, nano, wordpad, etc) but it does require installation of a helper product and Python on the client machine. On Thu, 23 Jun 2005, John Poltorak wrote: On Thu, Jun 23, 2005 at

Re: [Zope] External editor for ZMI

2005-06-23 Thread Andrew Langmead
On Thu, Jun 23, 2005 at 04:27:50PM +0100, John Poltorak wrote: What alternatives are there to editing objects through ZMI? I've often used the WebDAV support for using standard file system based editing tools on Zope content. How well it works depends greatly on the WebDAV client you

[Zope] Simple paypal IPN external method or product

2005-06-23 Thread Ed Colmar
I found the Bastion Ledger and Bastion Paypal connection, but it is way way overkill for what I want to do. Does anyone have a simple(r) IPN script they can point me towards? TIA! -e- ___ Zope maillist - Zope@zope.org

Re: [Zope] ZopeProfiler and Zope 2.8.0

2005-06-23 Thread Dieter Maurer
Pascal Peregrina wrote at 2005-6-23 10:54 +0200: I would like to know if anyone has tried using ZopeProfiler (1.4 version from http://www.dieter.handshake.de/pyprojects/zope/) with Zope 2.8.0 Someone has sent me a patch to let ZopeProfiler work with Python 2.4.1. Thus, apparently, it did not work

Re: [Zope] problems with testing (PloneMailBoxer)

2005-06-23 Thread Dieter Maurer
robert rottermann wrote at 2005-6-23 09:16 +0200: ... Calling the method in a test case I allways get None. ... security.declareProtected('Access contents information', 'getValueFor') def getValueFor(self, key): # Returns value for property; # if available, a dynamic getter

Re: [Zope] Re: Problem with keep-alive timeout (zope: addressed to exclusive (zope: addressed to exclusive sender for this address) sender for this address)

2005-06-23 Thread Dieter Maurer
Ralph wrote at 2005-6-22 18:46 +0200: ... MS says: By default, HTTP 1.1 is enabled in Internet Explorer except when you establish an HTTP connection through a proxy server. When HTTP 1.1 is enabled, HTTP connections remain open (or persistent) by default until the connection is idle for one

[Zope] Problems changing from DTML to ZPT

2005-06-23 Thread John Poltorak
I'm attempting to convert a page which uses DTML into one which uses ZPT but can't get it to look the same. Can some kind person quickly check over my poor attempt to utilise ZPT to see what I've done wrong? -- John ___ Zope maillist -

[Zope] Newbie-question

2005-06-23 Thread Thomas Adams
hi all, I have specific folder name art in Zope in which i installed a user folder, and a user with manager role. now i want anaonymous user to access i.e view the website ubeneath the folder art. Therefore i granted View Permission to the Anonymous Role at the folder level art, but that

[Zope] merging the contents of two acl_users folders

2005-06-23 Thread Jim Abramson
Title: merging the contents of two acl_users folders Can it be done? If not that, the ability to move selected users from one acl_users to another would be a decent plan B. This is a one-time move, so I consider any effective solution viable, even if some manual hacking is involved.

[Zope] general design question

2005-06-23 Thread Erik Myllymaki
I am making a small application for sales and marketing reports in-house. Each user has a unique login/username in zope (via NtUserFolder) and they also have a unique employee_id in exisitng SQL database tables. Each page calls numerous SQL methods almost all of which need to know the

Re: [Zope] Newbie-question

2005-06-23 Thread Paul Winkler
On Thu, Jun 23, 2005 at 08:55:05PM +0200, Thomas Adams wrote: hi all, I have specific folder name art in Zope in which i installed a user folder, and a user with manager role. now i want anaonymous user to access i.e view the website ubeneath the folder art. Therefore i granted View

Re: [Zope] general design question

2005-06-23 Thread Andreas Jung
--On 23. Juni 2005 12:07:50 -0700 Erik Myllymaki [EMAIL PROTECTED] wrote: Just thought I'd *throw it out there* for any input, thanks. Anything other than a secure channel - means SSL - can be regarded as unsafe. It does not matter if you store information in cookies, http headers,

Re: [Zope] general design question

2005-06-23 Thread Jonathan
- Original Message - From: Erik Myllymaki [EMAIL PROTECTED] Each user has a unique login/username in zope (via NtUserFolder) and they also have a unique employee_id in exisitng SQL database tables. Each page calls numerous SQL methods almost all of which need to know the employee_id

Re: [Zope] merging the contents of two acl_users folders

2005-06-23 Thread David H
Jim, It can be done, eg loop thru source.acl_users for each user object stuff REQUEST with name,password,confirm (password again) and roles, eg REQUEST.set('name',username), etc context.Destination.acl_users.manage_users('Add',REQUEST,RESPONSE) David In DTML: (via

Re: [Zope] Re: Problem with keep-alive timeout

2005-06-23 Thread Ralph
On Thursday 23 June 2005 19:33, Dieter Maurer - [EMAIL PROTECTED] wrote: It has nothing to do with a request timeout! So whats the reason that this f***ing browser using HTTP1.0? Zope understands large parts of HTTP 1.1, among others the Keep-Alive header, but it is not fully HTTP 1.1

Re: [Zope] merging the contents of two acl_users folders

2005-06-23 Thread David H
move, so I consider any effective solution viable, even if some manual hacking is involved. Thanks for any help, Jim __ NOD32 1.1152 (20050623) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com

Re: [Zope] Re: ZODB error when trying to index object (Input/output error)

2005-06-23 Thread Tim Peters
[Felix Ulrich-Oltean] ... I think I've found the culprits - there are 4 records which give errors like this: portal.portal_catalog.uncatalog_object('/sites/cw/data/urbanr') Traceback (most recent call last): File stdin, line 1, in ? File

Re: [Zope] Batch folder creation

2005-06-23 Thread John Poltorak
Thanks David, That works fine although it is a little crude. What I'd like to be able to do is create folders with names and titles derived from an external File where each line contains the name and title, separated by a comma. Guess I need to find out how to get python to read lines from a

Re: [Zope] merging the contents of two acl_users folders

2005-06-23 Thread David H
Jim, Alright, I found the way to get needed user information in order to merge (create users in a dest folder). You need an external script. Otherwise you will not be able to access acl_users _getPassword(). Local scripts enforce this for security reasons. So here is the external script that

[Zope] Reading lines from a Zope File object

2005-06-23 Thread John Poltorak
What function is used to read lines from a Zope File object using Python? Is there any example of this anywhere? Doing a search for 'python read zope object' is just too generic to find any python code to do this. -- John ___ Zope maillist -

Re: [Zope] Batch folder creation

2005-06-23 Thread David H
John, Seems like external scripts and dictionaries are a theme today. You need to check python manuals for file handling. Its a simple implementation. Then you would parse out names and title and put them in a dictionary and return. then in replace range(1...10) as seen in earlier messages

Re: [Zope] Reading lines from a Zope File object

2005-06-23 Thread J Cameron Cooper
John Poltorak wrote: What function is used to read lines from a Zope File object using Python? Is there any example of this anywhere? Doing a search for 'python read zope object' is just too generic to find any python code to do this. You can get the main contents of a File with the 'data'

Re: [Zope] Batch folder creation

2005-06-23 Thread John Poltorak
Hi David, I'm used to using the term 'file'. I guess it isn't appropriate in this case since I'm not actually handling a file but a Zope File object. I'm not sure where to look to see how Python handles this... John On Thu, Jun 23, 2005 at 04:30:07PM -0700, David H wrote: John, Seems

Re: [Zope] Reading lines from a Zope File object

2005-06-23 Thread J Cameron Cooper
Andy McKay wrote: J Cameron Cooper wrote: You can get the main contents of a File with the 'data' attribute. It returns a string. I think it actually returns an object (for large file support), if you want the data as a string you need to string it. So for small files: datastr =

Re: [Zope] problems with testing (PloneMailBoxer)

2005-06-23 Thread robert rottermann
thanks Dieter, Dieter Maurer wrote: robert rottermann wrote at 2005-6-23 09:16 +0200: ... Calling the method in a test case I allways get None. ... security.declareProtected('Access contents information', 'getValueFor') def getValueFor(self, key): # Returns value for property; #

Re: [Zope] Newbie-question

2005-06-23 Thread Thomas Adams
Paul Winkler schrieb: On Thu, Jun 23, 2005 at 08:55:05PM +0200, Thomas Adams wrote: hi all, I have specific folder name art in Zope in which i installed a user folder, and a user with manager role. now i want anaonymous user to access i.e view the website ubeneath the folder art.

Re: [Zope-DB] Zope 2.8 and DCOracle2 Stored Procedures

2005-06-23 Thread Dieter Maurer
Maciej Wisniowski wrote at 2005-6-23 10:28 +0200: ... Module Products.DCOracle2.SP, line 301, in __call__ TypeError: unbound method _lobConvert() must be called with DB instance as first argument (got list instance instead) On Zope 2.7.x everything is OK. Any ideas what is wrong?? Look at line

Re: [Zope-DB] Zope 2.8 and DCOracle2 Stored Procedures

2005-06-23 Thread Maciej Wisniowski
Look at line 301 of DCOracle2/SP.py and check the implicated object and its type. Thanks but I think I've already did the thing, and I've even written a post about this but... I've sent it only to myself, not to the group :D As I can see there http://cvs.zope.org/Products/DCOracle2/SP.py I'm