[Zope] Re: Trying to find hidden ODBCDA (Re: POSKeyError on the Python Recompile URL)

Tres Seaver tseaver at zope.com
Fri Mar 11 12:31:06 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Allen Schmidt wrote:
| Following the last part first.
| It is on our live server but not in read-only. That can't be set per
| client, can it? Anyway:
|
|>>> for k, v in app.__dict__.items():
|
| ...     print "%s :: %s" ( k, v )
| ...
| Traceback (most recent call last):
|  File "<stdin>", line 2, in ?
| TypeError: 'str' object is not callable
|
|>>>

D'oh, typo.  Python string substitution needs a percent between the
format string and the list, e.g.:


~ >>> for k, v in app.__dict__.items():
~ ...     print "%s :: %s" % ( k, v )

Tres.
- --
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCMdXaGqWXf00rNCgRAkT6AJ95/i73bx+Pszs3bJHMI3FjoNVxdwCfez6b
xGE5hIAflfLANwQ8NMohOrM=
=QUgI
-----END PGP SIGNATURE-----



More information about the Zope mailing list