Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
test
/
Upload File :
New :
File
Dir
//proc/self/root/usr/lib/python2.4/test/test_MimeWriter.pyo
mò ‚=5Dc�����������@���s„���d��Z��d�k�l�Z�d�Z�d�Z�d�Z�d$�d%�d&�d'�d(�d)�d*�g�Z�d+�d,�d-�d.�d/�d0�g�Z�d1�d2�d3�d4�d5�d6�g�Z�d"�„��Z�e�ƒ��d#�S(7���sÕ���Test program for MimeWriter module. The test program was too big to comfortably fit in the MimeWriter class, so it's here in its own file. This should generate Barry's example, modulo some quotes and newlines. (���s ���MimeWriters–���INTERFACE Seller-1; TYPE Seller = OBJECT DOCUMENTATION "A simple Seller interface to test ILU" METHODS price():INTEGER, END; sI��class Buyer: def __setup__(self, maxprice): self._maxprice = maxprice def __main__(self, kos): """Entry point upon arrival at a new KOS.""" broker = kos.broker() # B4 == Barry's Big Bass Business :-) seller = broker.lookup('Seller_1.Seller', 'B4') if seller: price = seller.price() print 'Seller wants $', price, '... ' if price > self._maxprice: print 'too much!' else: print "I'll take it!" else: print 'no seller found here' sy���# instantiate a buyer instance and put it in a magic place for the KOS # to find. __kp__ = Buyer() __kp__.__setup__(500) t���Interpretert���pythons���Interpreter-Versions���1.3s ���Owner-Names���Barry Warsaws���Owner-Rendezvouss���bwarsaw@cnri.reston.va.uss���Home-KSSs���kss.cnri.reston.va.ust ���Identifiers���hdl://cnri.kss/my_first_knowbots���Launch-Dates���Mon Feb 12 16:39:03 EST 1996s ���Metadata-Typet���complexs���Metadata-Keyt ���connectiont���Accesss ���read-onlys���Connection-Descriptions���Barry's Big Bass Businesss ���Connection-Idt���B4s���Connection-Directiont���clients���generic-interfaces"���Generic Interface for All Knowbotss ���generic-kpc����������C���sº��d��k��}�t�|�i�ƒ�} �| �i�d�d�ƒ�| �i�d�d�ƒ�| �i�d�d�ƒ�| �i�d�d�ƒ�| �i�d �d �d'�g�d �d�ƒ}�|�i�d�ƒ�| �i�ƒ��}��|��i�d�d�ƒ�|��i�ƒ��} �| �i�d�d�ƒ�| �i�d�d�ƒ�t�| �i�d�ƒ�ƒ�}�x(�t �D] �\�}�}�|�i�d�|�|�ƒ�qç�W|�i�ƒ��~ �|��i�ƒ��}�x(�t�D] �\�}�}�|�i�d�|�|�ƒ�q+W|�i�d�ƒ�}�|�i�t�ƒ�~�|��i�ƒ��}�|�i�d�d(�d)�g�ƒ�}�t�|�ƒ�}�x(�t�D] �\�}�}�|�i�d�|�|�ƒ�q¥W|�i�d�ƒ�|��i�ƒ��| �i�ƒ��}�|�i�d�d�ƒ�|�i�ƒ��}�|�i�d �d!�ƒ�|�i�d"�ƒ�}�|�i�t�ƒ�|�i�ƒ��| �i�ƒ��} �| �i�d#�d$�ƒ�| �i�d%�d&�ƒ�| �i�ƒ��}�|�i�d �d$�ƒ�|�i�d"�ƒ�}�|�i�t�ƒ�| �i�ƒ��| �i�ƒ��d��S(*���Nt���Froms���bwarsaw@cnri.reston.va.ust���Dates���Mon Feb 12 17:21:48 EST 1996t���Tos���kss-submit@cnri.reston.va.uss���MIME-Versions���1.0t���knowbott ���801spam999t���versions���0.1t���prefixi����s-���This is a multi-part message in MIME format. s���knowbot-metadatat ���802spam999s���KP-Metadata-Typet���simples ���KP-Accesss ���read-onlys���message/rfc822s���KPMD-s���KP-s���text/isls���message/external-bodys���access-typet���URLs���hdl://cnri.kss/generic-knowbots���knowbot-codet ���803spam999s���KP-Module-Namet���BuyerKPs ���text/plains���KP-Main-Modulet���mains ���knowbot-statet ���804spam999(���s���versions���0.1(���s���access-typeR���(���R���s���hdl://cnri.kss/generic-knowbot(���t���syst ���MimeWritert���stdoutt���toplevelt ���addheadert���startmultipartbodyt���ft���writet���nextpartt���mdt���md1t ���startbodyt���mt���SIMPLE_METADATAt���keyt���valuet���flushheaderst���md2t���COMPLEX_METADATAt���SELLERt���md3t���EXTERNAL_METADATAt���lastpartt���codet���buyert���BUYERt���statet���stt���STATE(���R���R-���R���R.���R*���R1���R"���R%���R���R���R0���R$���R'���R ���(����(����t*���/usr/lib/python2.4/test/test_MimeWriter.pyR���P���sh���� � � � N(���R����s���python(���s���Interpreter-Versions���1.3(���s ���Owner-Names���Barry Warsaw(���s���Owner-Rendezvouss���bwarsaw@cnri.reston.va.us(���s���Home-KSSs���kss.cnri.reston.va.us(���R���s���hdl://cnri.kss/my_first_knowbot(���s���Launch-Dates���Mon Feb 12 16:39:03 EST 1996(���s ���Metadata-Types���complex(���s���Metadata-KeyR���(���R���s ���read-only(���s���Connection-Descriptions���Barry's Big Bass Business(���s ���Connection-IdR���(���s���Connection-DirectionR���(���s ���Metadata-Types���complex(���s���Metadata-Keys���generic-interface(���R���s ���read-only(���s���Connection-Descriptions"���Generic Interface for All Knowbots(���s ���Connection-Ids ���generic-kp(���s���Connection-DirectionR���( ���t���__doc__R���R)���R/���R2���R#���R(���R+���R���(���R)���R2���R(���R���R/���R#���R���R+���(����(����R3���t���?���s��� Z