Module Expr Str Import alias alias alias alias alias alias Import alias ImportFrom alias ImportFrom alias Import alias alias Import alias alias alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore Num While CompareLt NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad AugAssignAdd NameStore NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return Str Return Call AttributeLoad NameLoad attr ListComp BinOpAdd Str Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If NameLoad body Return Call AttributeLoad Str attr ListComp BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq SubscriptLoad NameLoad Slice Num Str body Return Str If CompareEq SubscriptLoad NameLoad Slice Num Str body TryExcept body If CompareEq SubscriptLoad NameLoad Slice Num Str body Return Call NameLoad Call NameLoad SubscriptLoad NameLoad Slice Num Num Num orelse Return Call NameLoad Call NameLoad SubscriptLoad NameLoad Slice Num Num handlers ExceptHandler type NameLoad body Pass orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num Num If NameLoad body If CompareEq SubscriptLoad NameLoad Slice Num Str body TryExcept body Return Call NameLoad Call NameLoad SubscriptLoad NameLoad Slice Num Num handlers ExceptHandler type NameLoad body Pass orelse Return Call NameLoad NameLoad Str Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults Num NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr NameLoad Str Assign NameStore Str For NameStore Call NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Str body If CompareEq NameLoad NameLoad body Return NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list ImportFrom alias identifier FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults ListLoad body Expr Str ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Pass Return NameLoad decorator_list
N/A N/A 
Utilities.

Ben Adida - ben@adida.net
2005-04-11
 N/A urllib re sys datetime urlparse string N/A boto.ses helios_auth.utils * django.conf settings N/A random logging N/A hashlib hmac base64 do_hmac N/A N/A k s N/A N/A N/A 
  HMAC a value with a key, hex output
   N/A mac N/A N/A hmac new k s N/A hashlib sha1 N/A N/A N/A mac hexdigest N/A split_by_length N/A N/A str length rejoin_with N/A None N/A N/A 
  split a string by a given length
   N/A str_arr N/A N/A counter 0 N/A N/A counter N/A len str N/A N/A N/A N/A str_arr append N/A str N/A counter N/A counter length N/A counter length N/A rejoin_with N/A N/A N/A N/A rejoin_with join str_arr N/A N/A str_arr N/A urlencode N/A N/A str N/A N/A N/A 
    URL encode
     N/A N/A str N/A N/A N/A N/A N/A urllib quote str N/A urlencodeall N/A N/A str N/A N/A N/A 
    URL encode everything even unresreved chars
     N/A N/A str N/A N/A N/A N/A N/A string join N/A N/A % N/A N/A s encode hex N/A s str N/A urldecode N/A N/A str N/A N/A N/A N/A str N/A N/A N/A N/A N/A urllib unquote str N/A dictToURLParams N/A N/A d N/A N/A N/A d N/A N/A N/A N/A & join N/A N/A N/A i = N/A urlencode v N/A N/A i v N/A N/A d items N/A N/A None N/A xml_escape N/A N/A s N/A N/A N/A N/A Exception not implemented yet N/A xml_unescape N/A N/A s N/A N/A N/A new_s N/A N/A N/A N/A s replace &lt; < replace &gt; > N/A new_s N/A xss_strip_all_tags N/A N/A s N/A N/A N/A 
    Strips out all HTML.
     N/A s fixup N/A N/A m N/A N/A N/A text N/A N/A m group 0 N/A N/A N/A text N/A 1 < N/A N/A N/A N/A N/A text N/A 2 &# N/A N/A N/A N/A N/A N/A text N/A 3 &#x N/A N/A N/A unichr N/A int N/A text N/A 3 -1 16 N/A N/A N/A unichr N/A int N/A text N/A 2 -1 N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A text N/A 1 & N/A N/A htmlentitydefs N/A entity N/A N/A N/A htmlentitydefs entitydefs get N/A text N/A 1 -1 N/A entity N/A N/A N/A N/A entity N/A 2 &# N/A N/A N/A N/A N/A unichr N/A int N/A entity N/A 2 -1 N/A N/A N/A ValueError N/A N/A N/A N/A N/A unicode entity iso-8859-1 N/A text N/A N/A N/A N/A re sub (?s)<[^>]*>|&#?\w+; fixup s N/A N/A N/A N/A random seed random_string N/A N/A length alphabet N/A 20 None N/A N/A N/A N/A random seed N/A ALPHABET N/A alphabet abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 N/A r_string N/A i N/A range length N/A N/A r_string N/A N/A random choice ALPHABET N/A r_string N/A get_host N/A N/A N/A N/A N/A N/A settings SERVER_HOST N/A get_prefix N/A N/A N/A N/A N/A N/A settings SERVER_PREFIX N/A string_to_datetime N/A N/A str fmt N/A %Y-%m-%d %H:%M N/A N/A N/A str None N/A N/A None N/A N/A N/A N/A datetime datetime strptime str fmt N/A django.core mail django_mail send_email N/A N/A sender recpt_lst subject body N/A N/A N/A subject N/A N/A N/A subject split N/A 0 N/A N/A N/A django_mail send_mail subject body sender recpt_lst fail_silently True N/A one_val_raw_sql N/A N/A raw_sql values N/A N/A N/A N/A 
  for a simple aggregate
   django.db connection transaction N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute raw_sql values N/A N/A N/A N/A cursor fetchone N/A 0 N/A lock_row N/A N/A model pk N/A N/A N/A 
  you almost certainly want to use lock_row inside a commit_on_success function
  Eventually, in Django 1.2, this should move to the .for_update() support
   django.db connection transaction N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute N/A N/A select * from  N/A N/A model _meta db_table  where id = %s for update N/A pk N/A row N/A N/A cursor fetchone N/A N/A N/A N/A N/A transaction set_dirty N/A N/A N/A N/A N/A row N/A