Suppose a stupid user tries to generate dynamic address with no keyword or with no days to expire, sometimes just in purpose in order to test the software. Here is what happens:

/usr/local/tmda-cgi-0.10/tmda-cgi.py


143 elif Cmd == "gen_addr":




144 import GenAddr



145 Call(GenAddr)



146 elif Cmd == "globalconfig":



147 import GlobalConfig



Call = <function Call>, GenAddr = <module 'GenAddr' from 'GenAddr.pyc'>



/usr/local/tmda-cgi-0.10/tmda-cgi.py in Call(Library=<module 'GenAddr' from 'GenAddr.pyc'>, Str=None)


55 Library.Show(Str)




56 else:



57 Library.Show()



58



59 # Capture WebUID



Library = <module 'GenAddr' from 'GenAddr.pyc'>, Library.Show = <function Show>



/usr/local/tmda-cgi-0.10/GenAddr.py in Show()


149 # Create the address




150 try:



151 T[DestField] = PVars[("TestAddr", "To")] = \



152 Address.Factory(tag = Tag).create(Base, Option).address



153 PVars.Save()



T = <Template.Template instance>, DestField = 'KeywordAddr', global PVars = <Session.Session instance>, global Address = <module 'TMDA.Address' from '../tmda-0.80/TMDA/Address.pyc'>, Address.Factory = <function Factory>, tag undefined, Tag = 'keyword', ).create undefined, Base = None, Option undefined


UnboundLocalError: local variable 'Option' referenced before assignment
__doc__ = 'Local name referenced but not bound to a value.'
__getitem__ = <bound method UnboundLocalError.__getitem__ of <exceptions.UnboundLocalError instance>>
__init__ = <bound method UnboundLocalError.__init__ of <exceptions.UnboundLocalError instance>>
__module__ = 'exceptions'
__str__ = <bound method UnboundLocalError.__str__ of <exceptions.UnboundLocalError instance>>
args = ("local variable 'Option' referenced before assignment",)


_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to