Package pywurfl :: Package algorithms :: Package wurfl :: Module utils
[hide private]
[frames] | no frames]

Module utils

source code

This module contains the supporting classes for the Two Step Analysis user agent algorithm that is used as the primary way to match user agents with the Java API for the WURFL.

A description of the way the following source is intended to work can be found within the source for the original Java API implementation here: http://sourceforge.net/projects/wurfl/files/WURFL Java API/

The original Java code is GPLd and Copyright (c) 2008-2009 WURFL-Pro srl


Version: 1.0.1

Author: Armand Lynch <lyncha@users.sourceforge.net>

Copyright: Copyright 2010, Armand Lynch

License: LGPL

Functions [hide private]
 
is_mobile_browser(user_agent) source code
 
ordinal_index(target, needle=u' ', ordinal=1, start_index=0) source code
 
find_or_length(func, user_agent) source code
 
indexof_or_length(target, needle=u' ', position=1, start_index=0) source code
 
first_space(target, needle=u' ', position=1, start_index=0) source code
Variables [hide private]
  __doc__ = ...
  __url__ = 'http://celljam.net/'
  first_slash = partial(indexof_or_length, needle= u"/")
  second_slash = partial(indexof_or_length, needle= u"/", positi...
  first_semi_colon = partial(indexof_or_length, needle= u";")
Variables Details [hide private]

__doc__

Value:
"""
This module contains the supporting classes for the Two Step Analysis \
user agent
algorithm that is used as the primary way to match user agents with th\
e Java API
for the WURFL.

A description of the way the following source is intended to work can \
...

second_slash

Value:
partial(indexof_or_length, needle= u"/", position= 2)