External Method strangeness with pyjabber
I'm trying to use pyjabber from zope utilizing an external method and getting unexpected results. Details: Zope Version (Zope 2.5.1 (source release, python 2.1, linux2), python 2.1.3, linux2) Python Version 2.1.3 (#1, Jul 16 2002, 15:10:16) [GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)] System Platform linux2 Running For 18 days 23 hours 9 min 18 sec external Method: import jabber def SendOneMessage(to,msg): return 'jabber:'+str(jabber)+'dir(jabber)'+str(dir(jabber)) when run from the python interpreter I get:jabber:<module 'jabber' from '/usr/local/lib/python2.1/site-packages/jabber.pyc'>dir(jabber)['Client', 'Component', 'Connection', 'False', 'Iq', 'JID', 'Log', 'Message', 'NS_ADMIN', 'NS_AGENT', 'NS_AGENTS', 'NS_AUTH', 'NS_AUTH_0K', 'NS_BROWSE', 'NS_CLIENT', 'NS_CONFERENCE', 'NS_DELAY', 'NS_ENCRYPTED', 'NS_ENVELOPE', 'NS_EVENT', 'NS_EXPIRE', 'NS_FILTER', 'NS_GATEWAY', 'NS_LAST', 'NS_OFFLINE', 'NS_OOB', 'NS_PRIVATE', 'NS_REGISTER', 'NS_ROSTER', 'NS_SEARCH', 'NS_SERVER', 'NS_SIGNED', 'NS_TIME', 'NS_VCARD', 'NS_VERSION', 'NS_XDBGINSERT', 'NS_XDBNSLIST', 'NS_XHTML', 'NS_XOOB', 'Presence', 'Protocol', 'RS_ASK_SUBSCRIBE', 'RS_ASK_UNSUBSCRIBE', 'RS_EXT_OFFLINE', 'RS_EXT_ONLINE', 'RS_EXT_PENDING', 'RS_SUB_BOTH', 'RS_SUB_FROM', 'RS_SUB_TO', 'Roster', 'Server', 'True', 'VERSION', 'XDB', '__builtins__', '__doc__', '__file__', '__name__', 'find', 'replace', 'sha', 'split', 'time', 'xmlstream'] when run from a python script in zope I get: jabber:<module 'jabber' from '/usr/local/lib/python2.1/site-packages/jabber.pyc'> dir(jabber) ['__builtins__', '__doc__', '__file__', '__name__'] What's going on here? baffled in minnesota, steve -- Steve Drees CDTT (Certified Duct Tape Technician) SysAdmin/Software Developer/Web Geek/Chief Bottle Washer "A problem well-stated is a problem half-solved." http://steve.wejustrock.com
What's going on here?
Rebuilding zope with the python with pyjabber installed was the solution. Previous build was done like this: build python build psycopg build zope install pyjabber After contemplating on it for awhile it all makes sense now. no longer baffled, steve
participants (1)
-
Steve Drees