Re: [Zope] zeopack: No handlers could be found for logger "ZEO.zrpc"

2006-01-19 Thread Cameron Beattie
Thanks for the help. Adding the following (as suggested) resolved the problem: import logging logging.basicConfig() Regards Cameron ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML en

[Zope] zeopack: No handlers could be found for logger "ZEO.zrpc"

2006-01-18 Thread Cameron Beattie
When I run the following: python /usr/lib/zope/bin/zeopack.py -d 20 -h localhost -p 8100 I get an error: No handlers could be found for logger "ZEO.zrpc" I have searched around and found a similar message at http://mail.zope.org/pipermail/zope-dev/2005-December/026097.html (relating to zeoup.p

[Zope] MySql 5.0, ZMySQLDA and stored procedures

2006-01-16 Thread Cameron Beattie
I was getting the following error when attempting to call a stored procedure via a Z SQL Method: _mysql_exceptions.OperationalError: (1312, etc So I made the following change to /usr/lib/zope/lib/python/Products/ZMySQLDA/db.py: def _parse_connection_string(self, connection): kwargs =

Re: [Zope] List within a list - how to use in a page template

2005-12-21 Thread Cameron Beattie
David H wrote: # python script # input: a tuple named tup of index items to include in list of lists, eg (1,3) and the list of lists #example input: listoflists = [[61282125371L, 1, 6, 0], [61282125379L, 1, 6, 0], [61282825240L, 6, 6, 0]] #example tup: (1,3) ret = [] for i in range(len(li

Re: [Zope] Unauthorized exception when trying to access a list item

2005-12-14 Thread Cameron Beattie
Cameron Beattie wrote: I am trying to access a value in a list. The script getDIDS_list is passed a list called listoflists: list = listoflists ret = [] tup = (0,1,2) factortup = (1,2) factor = 2 for i in range(len(list)): # 1 == 1 if i in tup: if i in factortup: x = list[i

[Zope] Unauthorized exception when trying to access a list item

2005-12-14 Thread Cameron Beattie
I am trying to access a value in a list. The script getDIDS_list is passed a list called listoflists: list = listoflists ret = [] tup = (0,1,2) factortup = (1,2) factor = 2 for i in range(len(list)): # 1 == 1 if i in tup: if i in factortup: x = list[i] * factor etc The code is a bit

[Zope] List within a list - how to use in a page template

2005-12-13 Thread Cameron Beattie
I am trying to get my head around representing a list in a page template. Assume the following list: m [[61282125371L, 1, 6, 0], [61282125379L, 1, 6, 0], [61282825240L, 6, 6, 0], [61282125378L, 1, 6, 0], [61282125374L, 1, 6, 0] m[0] [61282125371L, 1, 6, 0] m[0][0] 61282125371L i.e. m is a

Re: [Zope] Finding a match in a large dataset - btrees?

2005-12-05 Thread Cameron Beattie
Thanks for the many replies. I apologise for the original message which was obviously very unclear - I will try to correct that. Basically I want to match a telephone number to a rate table. Assume the following rate table: Telephone codeRate 6491 64212 6422

[Zope] Finding a match in a large dataset - btrees?

2005-12-04 Thread Cameron Beattie
I have a large set of data (that will be stored in MySQL) that I wish to match to and am wondering what the best method is. Assume the following data in table LOCATION_MATCH: LOCATION_IDLOCATION_PATTERNPARENT_ID 106 114

Re: [Zope] Issues with pyperl: perl2.so not found

2005-11-03 Thread Cameron Beattie
On 11/3/05, Cameron Beattie <[EMAIL PROTECTED]> wrote: pyperl is a prerequisite to zoperl which allows perl scripts to be used within zope. I should have mentioned that. Try the zope-perl@zope.org, if it still exists... Thanks. Will do. zoperl hasn't been updated since 2

Re: [Zope] Issues with pyperl: perl2.so not found

2005-11-03 Thread Cameron Beattie
0:01 PM Subject: Re: [Zope] Issues with pyperl: perl2.so not found On 3 Nov 2005, at 04:42, Cameron Beattie wrote: I am attempting to install pyperl and am having an issue where it can't find perl2.so. I think this is one of those ones where it's looking under the stairs for somethi

[Zope] Issues with pyperl: perl2.so not found

2005-11-02 Thread Cameron Beattie
I am attempting to install pyperl and am having an issue where it can't find perl2.so. I think this is one of those ones where it's looking under the stairs for something which is actually in the laundry under a pile of dirty clothes. cd /tmp/pyperl* cd Python-Object; perl Makefile.PL; make in

Re: [Zope] Zope security and packing the database

2005-10-11 Thread Cameron Beattie
I have created a script based on zope_pack from the Zope book which allows a username and password to be specified when it is called. I wish to create a user specifically for this purpose that only has the ability to pack the ZODB. What permission is ZODB packing protected by? I don't know.

[Zope] Zope security and packing the database

2005-10-10 Thread Cameron Beattie
I have created a script based on zope_pack from the Zope book which allows a username and password to be specified when it is called. I wish to create a user specifically for this purpose that only has the ability to pack the ZODB. I've created a custom role and a user that has this role. Then