Home | Trees | Indices | Help |
---|
|
object --+ | Field --+ | String --+ | Pattern --+ | Url
>>> u = Url('dummy') >>> u.validate('http://google.com') True >>> u.validate('https://google.com') True >>> u.validate('http://google.com/') True >>> u.validate('http://google.com/some') True >>> u.validate('http://google.com/some/more') True >>> u.validate('http://google.com/even///more/') True >>> u.validate('http://google.com/url/?with=some&args') True >>> u.validate('http://google.com/empty/args/?') True >>> u.validate('http://google.com/some/;-)?a+b=c&&=11') True >>> u.validate('http:/google.com') != True True >>> u.validate('mailto://google.com') != True True >>> u.validate('http://.google.com') != True True >>> u.validate('http://google..com') != True True >>> u.validate('http://;-).google.com') != True True >>> u.validate('https://sandbox.google.com/checkout/view/buy?o=shoppingcart&shoppingcart=515556794648982') True >>> u.validate('http://127.0.0.1:8000/digital/order/continue/') True
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Sun Sep 7 23:26:45 2008 | http://epydoc.sourceforge.net |