<s> AUTH_SYSTEMS = { } <EOL> import twitter , password , cas , facebook , google , yahoo , linkedin , clever <EOL> AUTH_SYSTEMS [ '<STR_LIT>' ] = twitter <EOL> AUTH_SYSTEMS [ '<STR_LIT>' ] = linkedin <EOL> AUTH_SYSTEMS [ '<STR_LIT:password>' ] = password <EOL> AUTH_SYSTEMS [ '<STR_LIT>' ] = cas <EOL> AUTH_SYSTEMS [ '<STR_LIT>' ] = facebook <EOL> AUTH_SYSTEMS [ '<STR_LIT>' ] = google <EOL> AUTH_SYSTEMS [ '<STR_LIT>' ] = yahoo <EOL> AUTH_SYSTEMS [ '<STR_LIT>' ] = clever <EOL> def can_check_constraint ( auth_system ) : <EOL> return hasattr ( AUTH_SYSTEMS [ auth_system ] , '<STR_LIT>' ) <EOL> def can_list_categories ( auth_system ) : <EOL> return hasattr ( AUTH_SYSTEMS [ auth_system ] , '<STR_LIT>' ) </s>
