-
as seen on Super User
- Search for 'Super User'
I am currently trying to setup buildbot. buildbot requires twistedmatrix, which in turn requires zope.
I cannot manage to setup this zope stuff. I have the full source zope-3.4.0, nothing goes as the readme says. I also have a zip that is an egg. What are Eggs?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I just installed Plone on my Centos 5.5. I was able login via the admin-account and create new users. But when I try to create a new page I get the following error message:
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am planning to make some big project (1 000 000 users, approximately 500 request pre second - in hot time).
For performance I'm going to use no relational dbms (each request could cost lot of instructions in relational dbms like mysql) - so i can't use DAL.
My question is:
how web2py is…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Every Zope object has it's own unique id ( _p_oid ).
To convert it into integer value:
from Shared.DC.xml.ppml import u64 as decodeObjectId
oid = decodeObjectId(getattr(<Object instance>, '_p_oid'))
Is it possible to get object itself having it's _p_oid?
I tried this:
from ZODB.utils import…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have started using Zope interfaces in my code, and as of now, they are really only documentation. I use them to specify what attributes the class should possess, explicitly implement them in the appropriate classes and explicitly check for them where I expect one. This is fine, but I would like…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'd like to use placeholders as seen in this example:
cursor.execute ("""
UPDATE animal SET name = %s
WHERE name = %s
""", ("snake", "turtle"))
Except I'd like to have the query be its own variable as I need to insert a query into multiple databases, as in:
query = """UPDATE animal…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hi,
when I use MySQLdb get this message:
/var/lib/python-support/python2.6/MySQLdb/init.py:34: DeprecationWarning: the sets module is deprecated from sets import ImmutableSet
I try filter the warning with
import warnings
warnings.filterwarnings("ignore", message="the sets module is deprecated…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
## COMMENT OUT below just for reference
""
cursor.execute ("""
CREATE TABLE yellowpages
(
business_id BIGINT(20) NOT NULL AUTO_INCREMENT,
categories_name VARCHAR(255),
business_name VARCHAR(500) NOT NULL,
business_address1 VARCHAR(500)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a huge table and I need to process all rows in it. I'm always getting this Lost connection message and I'm not able to reconnect and restore the cursor to the last position it was. This is basically the code I have here:
#
import MySQLdb
class DB:
conn = None
def connect(self):
self…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm a noob at Python and have been having problems with MySQLdb and OS X Leopard 10.5. I have a php app that is doing db access just fine with pdo but also want to access with Python. When I use the same credentials with MySQLdb as php, I get the following error:
File "build/bdist.macosx-10.5-i386/egg/MySQLdb/connections…
>>> More