[mod_python] object type. why it not works?

ziapannocchia at gmail.com ziapannocchia at gmail.com
Sun Jun 24 09:27:52 EDT 2007


2007/6/24, Jeff Hinrichs - DM&T <jeffh at dundeemt.com>:
> On 6/23/07, ziapannocchia at gmail.com <ziapannocchia at gmail.com> wrote:
>>...
>
> Publisher wants to return a string -- and you are attempting to return
> an object, http://docs.python.org/lib/bltin-type-objects.html
>
> try, return test  --or-- return str(type(test))
>
> -jeff
>
Thank.
 return str(type(test)).strip("<>")
solves for me.


More information about the Mod_python mailing list