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
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
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 =
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
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
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
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
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
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
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
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
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
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.
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
14 matches
Mail list logo