Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str ClassDef bases body Expr Str Assign NameStore NameLoad Assign NameStore Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Dict Str Str Str Str Str BinOpAdd Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr With AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListComp TupleLoad NameLoad BoolOpOr Call NameLoad NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad SubscriptLoad Call NameLoad Index NameLoad attr If CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Return SubscriptLoad NameLoad Index Num decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad keyword NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases body Assign NameStore Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad Str TupleLoad Dict Str AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad Str TupleLoad Dict Str AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareIn AttributeLoad NameLoad attr TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return BoolOpOr Call AttributeLoad NameLoad attr CompareNotEq Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListComp Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad comprehension NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Dict Str Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad Str TupleLoad Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Return TupleLoad Str TupleLoad Dict Str AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad Dict Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assert CompareLtE NameLoad Num If CompareEq NameLoad Num body Return NameLoad Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGtE Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str If CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults CompareEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr body Assign SubscriptStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGtE Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareGt Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Str If CompareIsNot Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults CompareEq AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad If CompareEq SubscriptLoad NameLoad Index BinOpSub NameLoad Num Str body Assign NameStore BinOpSub NameLoad Num orelse Assign NameStore NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareGt NameLoad NameLoad BoolOpOr CompareEq NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index NameLoad Str body Assign NameStore NameLoad Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore NameLoad Assign NameStore BinOpAdd BinOpAdd Num Num Num FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGtE Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareGt Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults CompareEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str BinOpAdd NameLoad Call AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Assert CompareLtE NameLoad Num If CompareEq NameLoad Num body Return NameLoad Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A Data model for the site access control rules.

Each site has users, locations (paths) and permissions - rules that
define which user can access which locations. Sites are
isolated. Users and locations are associated with a single site and
are used only for this site. Site has also aliases: urls that can be
used to access the site, only requests from these urls are allowed.

Provides methods that map to REST operations that can be performed on
users, locations and permissions resources. Allows to retrieve
externally visible attributes of these resources, the attributes are
returned as a resource representation by REST methods.

Resources are identified by an externally visible UUIDs. Standard
primary key ids are not used for external identification purposes,
because those ids can be reused after object is deleted.

Makes sure entered emails and paths are valid.
 django.contrib.auth.models AbstractBaseUser django.db connection django.db models django.db transaction django.forms ValidationError django.utils timezone functools wraps wwwhisper_auth url_utils wwwhisper_auth email_re N/A logging N/A random N/A re N/A threading N/A uuid uuidgen N/A logger N/A N/A logging getLogger __name__ LimitExceeded N/A Exception N/A N/A N/A ValidatedModel N/A N/A models Model N/A N/A Base class for all model classes.

    Makes sure all constraints are preserved before changed data is
    saved.
     Meta N/A N/A N/A Disables creation of a DB table for ValidatedModel. N/A abstract True N/A app_label wwwhisper_auth N/A save N/A N/A self N/A args kwargs N/A N/A N/A N/A self full_clean N/A N/A N/A N/A super ValidatedModel self save args kwargs N/A N/A N/A SINGLE_SITE_ID theone Site N/A ValidatedModel N/A N/A A site to which access is protected.

    Site has locations, users and aliases.

    Attributes:
      site_id: Can be a domain or any other string.

      mod_id: Changed after any modification of site-related data (not
         only Site itself but also site's locations, permissions or
         users). Allows to determine when Django processes need to
         update cached data.
     N/A site_id N/A N/A models TextField primary_key True db_index True editable False N/A mod_id N/A N/A models IntegerField default 0 N/A _default_skin N/A title header message wwwhisper: Web Access Control Protected site N/A Access to this site is restricted.  Please sign in with your email: N/A title N/A N/A models CharField max_length 80 blank True N/A header N/A N/A models CharField max_length 100 blank True N/A message N/A N/A models CharField max_length 500 blank True N/A branding N/A N/A models BooleanField default True N/A aliases_limit None N/A users_limit None N/A locations_limit None __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super Site self __init__ args kwargs N/A N/A self mod_id_lock N/A N/A threading Lock N/A heavy_init N/A N/A self N/A N/A N/A Creates collections of all site-related data.

        This is a resource intensive operation that retrieves all site
        related data from the database. It is only performed if the site
        was modified since it was last retrieved.
         N/A N/A self locations N/A LocationsCollection self N/A N/A self users N/A UsersCollection self N/A N/A self aliases N/A AliasesCollection self N/A site_modified N/A N/A self N/A N/A N/A Increases the site modification id.

        This causes the site to be refreshed in web processes caches.
         N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute UPDATE wwwhisper_auth_site SET mod_id = mod_id + 1 WHERE site_id = %s N/A N/A self site_id N/A N/A N/A cursor close N/A mod_id N/A N/A self mod_id_from_db N/A N/A self mod_id_lock N/A N/A N/A self mod_id mod_id N/A skin N/A N/A self N/A N/A N/A Dictionary with settings that configure the site's login page. N/A result N/A dict N/A N/A attr N/A N/A getattr self attr N/A N/A self _default_skin N/A attr N/A attr N/A N/A N/A self _default_skin iterkeys N/A N/A result N/A branding N/A self branding N/A result N/A update_skin N/A N/A self title header message branding N/A N/A N/A attr N/A N/A N/A self _default_skin iterkeys N/A N/A arg N/A N/A N/A N/A locals N/A attr strip N/A N/A arg N/A N/A self _default_skin N/A attr N/A N/A arg N/A N/A setattr self attr arg N/A N/A self branding branding N/A N/A N/A self save N/A N/A N/A self site_modified N/A get_mod_id_ts N/A N/A self N/A N/A N/A This method can be safely invoked by a non main thread N/A N/A self mod_id_lock N/A N/A N/A self mod_id N/A mod_id_from_db N/A N/A self N/A N/A N/A Retrieves from the DB a current modification identifier for the site.

        Returns None if the site no longer exists in the DB.
         N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute SELECT mod_id FROM wwwhisper_auth_site WHERE site_id = %s N/A N/A self site_id N/A row N/A N/A cursor fetchone N/A N/A N/A cursor close N/A N/A row None N/A N/A None N/A N/A row N/A 0 N/A N/A modify_site N/A N/A decorated_method N/A N/A N/A Must decorate all methods that change data associated with the site.

    Makes sure site is marked as modified and other Django processes
    will retrieve new data from the DB instead of using cached data.
     wrapper N/A N/A self N/A args kwargs N/A N/A result N/A decorated_method self args kwargs N/A N/A N/A N/A self site site_modified N/A result N/A N/A wraps decorated_method N/A wrapper N/A SitesCollection N/A object N/A create_item N/A N/A self site_id N/A kwargs N/A N/A Creates a new Site object.

        Args:
           site_id: A domain or other id of the created site.
        Raises:
           ValidationError if a site with a given id already exists.
         N/A site N/A N/A N/A Site objects create site_id site_id kwargs N/A N/A N/A site heavy_init N/A site N/A find_item N/A N/A self site_id N/A N/A N/A site N/A _find Site site_id site_id N/A N/A site None N/A N/A N/A N/A site heavy_init N/A site N/A delete_item N/A N/A self site_id N/A N/A N/A site N/A N/A self find_item site_id N/A N/A site None N/A N/A False N/A N/A N/A site delete N/A True N/A N/A User N/A AbstractBaseUser N/A Meta N/A N/A N/A app_label wwwhisper_auth N/A N/A site N/A N/A models ForeignKey Site related_name + N/A uuid N/A N/A models CharField max_length 36 db_index True editable False unique True N/A email N/A N/A models EmailField db_index True N/A USERNAME_FIELD uuid N/A REQUIRED_FIELDS N/A email site attributes_dict N/A N/A self site_url N/A N/A N/A Returns externally visible attributes of the user resource. N/A N/A _add_common_attributes self site_url N/A email N/A self email N/A get_absolute_url N/A N/A self N/A N/A N/A N/A wwwhisper_user N/A N/A uuid N/A self uuid N/A N/A models permalink N/A Location N/A ValidatedModel N/A N/A A location for which access control rules are defined.

    Location is uniquely identified by its canonical path. All access
    control rules defined for a location apply also to sub-paths,
    unless a more specific location exists. In such case the more
    specific location takes precedence over the more generic one.

    For example, if a location with a path /pub is defined and a user
    foo@example.com is granted access to this location, the user can
    access /pub and all sub path of /pub. But if a location with a
    path /pub/beer is added, and the user foo@example.com is not
    granted access to this location, the user won't be able to access
    /pub/beer and all its sub-paths.

    Attributes:
      site: Site to which the location belongs.
      path: Canonical path of the location.
      uuid: Externally visible UUID of the location, allows to identify a REST
          resource representing the location.

      open_access: can be:
        disabled ('n') - only explicitly allowed users can access a location;
        enabled ('y') - everyone can access a location, no login is required;
        enabled with authentication ('a') - everyone can access a location
          but login is required.
     N/A OPEN_ACCESS_CHOICES N/A N/A n no open access N/A y open access N/A a open access, login required N/A site N/A N/A models ForeignKey Site related_name + N/A path N/A N/A models TextField db_index True N/A uuid N/A N/A models CharField max_length 36 db_index True editable False unique True N/A open_access N/A N/A models CharField max_length 2 choices OPEN_ACCESS_CHOICES default n __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super Location self __init__ args kwargs N/A permissions N/A N/A self N/A N/A N/A N/A N/A N/A N/A self site locations get_permissions N/A self id N/A __unicode__ N/A N/A self N/A N/A N/A N/A %s N/A self path N/A get_absolute_url N/A N/A self N/A N/A N/A Constructs URL of the location resource. N/A N/A wwwhisper_location N/A N/A uuid N/A self uuid N/A N/A models permalink grant_open_access N/A N/A self require_login N/A N/A N/A Allows open access to the location. N/A require_login N/A N/A N/A self open_access a N/A N/A N/A self open_access y N/A N/A N/A self save N/A modify_site open_access_granted N/A N/A self N/A N/A N/A N/A N/A self open_access N/A y a N/A open_access_requires_login N/A N/A self N/A N/A N/A N/A N/A self open_access a N/A revoke_open_access N/A N/A self N/A N/A N/A Disables open access to the location. N/A N/A self open_access n N/A N/A N/A self save N/A modify_site can_access N/A N/A self user N/A N/A N/A Determines if a user can access the location.

        Returns:
            True if the user is granted permission to access the
            location or it the location is open.
         N/A N/A N/A user site_id N/A self site_id N/A N/A False N/A N/A N/A N/A self open_access_granted N/A N/A N/A N/A N/A self permissions get N/A user id None N/A grant_access N/A N/A self user_uuid N/A N/A N/A Grants access to the location to a given user.

        Args:
            user_uuid: string UUID of a user.

        Returns:
            (new Permission object, True) if access to the location was
                successfully granted.
            (existing Permission object, False) if user already had
                granted access to the location.

        Raises:
            LookupError: A site to which location belongs has no user
                with a given UUID.
         N/A user N/A N/A N/A N/A self site users find_item uuid user_uuid N/A N/A user None N/A N/A N/A LookupError User not found N/A permission N/A N/A N/A N/A self permissions get N/A user id N/A created False N/A N/A permission None N/A N/A created True N/A permission N/A N/A N/A Permission objects create http_location_id N/A self id user_id N/A user id site_id N/A self site_id N/A N/A permission created N/A modify_site revoke_access N/A N/A self user_uuid N/A N/A N/A Revokes access to the location from a given user.

        Args:
            user_uuid: string UUID of a user.

        Raises:
            LookupError: Site has no user with a given UUID or the
                user can not access the location.
         N/A permission N/A N/A self get_permission user_uuid N/A N/A N/A permission delete N/A modify_site get_permission N/A N/A self user_uuid N/A N/A N/A Gets Permission object for a given user.

        Args:
            user_uuid: string UUID of a user.

        Raises:
            LookupError: No user with a given UUID or the user can not
                access the location.
         N/A user N/A N/A N/A N/A self site users find_item uuid user_uuid N/A N/A user None N/A N/A N/A LookupError User not found. N/A permission N/A N/A N/A N/A self permissions get N/A user id N/A N/A permission None N/A N/A N/A LookupError User can not access location. N/A permission N/A allowed_users N/A N/A self N/A N/A N/A "Returns a list of users that can access the location. N/A N/A N/A N/A N/A N/A self site users find_item_by_pk user_id N/A user_id N/A N/A N/A N/A self permissions iterkeys N/A attributes_dict N/A N/A self site_url N/A N/A N/A Returns externally visible attributes of the location resource. N/A result N/A path allowedUsers N/A self path N/A N/A N/A user attributes_dict site_url N/A user N/A N/A self allowed_users N/A N/A N/A self open_access_granted N/A N/A N/A result N/A openAccess N/A requireLogin N/A N/A self open_access_requires_login N/A N/A _add_common_attributes self site_url result N/A N/A Permission N/A ValidatedModel N/A N/A Connects a location with a user that can access the location.

    Attributes:
        http_location: The location to which the Permission object gives access.
        user: The user that is given access to the location.
     N/A http_location N/A N/A models ForeignKey Location related_name + N/A site N/A N/A models ForeignKey Site related_name + N/A user N/A N/A models ForeignKey User related_name + __unicode__ N/A N/A self N/A N/A N/A N/A %s, %s N/A N/A self http_location N/A N/A self user email N/A get_absolute_url N/A N/A self N/A N/A N/A Constructs URL of the permission resource. N/A N/A wwwhisper_allowed_user N/A N/A location_uuid user_uuid N/A N/A self http_location uuid N/A N/A self user uuid N/A N/A models permalink attributes_dict N/A N/A self site_url N/A N/A N/A Returns externally visible attributes of the permission resource. N/A N/A _add_common_attributes self site_url N/A user N/A N/A N/A self user attributes_dict site_url N/A N/A Alias N/A ValidatedModel N/A N/A One of urls that can be used to access the site.

    Attributes:
      site: Site to which the alias belongs.
      url: Has form http(s)://domain[:port], default ports (80 for http,
         443 for https) are always stripped.
      uuid: Externally visible UUID of the alias.
     N/A site N/A N/A models ForeignKey Site related_name + N/A url N/A N/A models TextField db_index True N/A uuid N/A N/A models CharField max_length 36 db_index True editable False unique True N/A force_ssl N/A N/A models BooleanField default False get_absolute_url N/A N/A self N/A N/A N/A N/A wwwhisper_alias N/A N/A uuid N/A self uuid N/A N/A models permalink attributes_dict N/A N/A self site_url N/A N/A N/A N/A _add_common_attributes self site_url N/A url N/A self url N/A N/A Collection N/A object N/A N/A A common base class for managing a collection of resources.

    All resources in a collection belong to a common site and only
    this site can manipulate the resouces.

    Resources in the collection are of the same type and need to be
    identified by an UUID.

    Attributes (Need to be defined in subclasses):
        item_name: Name of a resource stored in the collection.
        model_class: Class that manages storage of resources.
     __init__ N/A N/A self site N/A N/A N/A N/A self site site N/A N/A N/A self update_cache N/A update_cache N/A N/A self N/A N/A N/A N/A self _cached_items_dict N/A N/A N/A self _cached_items_list N/A N/A item N/A N/A N/A N/A self model_class objects filter site_id N/A N/A self site site_id N/A N/A N/A N/A self _cached_items_dict N/A N/A item id item N/A N/A N/A N/A self _cached_items_list append item N/A N/A item site N/A self site N/A N/A self cache_mod_id N/A N/A self site mod_id N/A is_cache_obsolete N/A N/A self N/A N/A N/A N/A N/A N/A self site mod_id N/A self cache_mod_id N/A all N/A N/A self N/A N/A N/A N/A N/A self is_cache_obsolete N/A N/A N/A N/A self update_cache N/A N/A self _cached_items_list N/A all_dict N/A N/A self N/A N/A N/A N/A N/A self is_cache_obsolete N/A N/A N/A N/A self update_cache N/A N/A self _cached_items_dict N/A count N/A N/A self N/A N/A N/A N/A len N/A N/A self all N/A get_unique N/A N/A self filter_fun N/A N/A N/A Finds a unique item that satisfies a given filter.

        Returns:
           The item or None if not found.
         N/A result N/A filter filter_fun N/A N/A self all N/A count N/A len result N/A N/A count 1 N/A N/A count 0 N/A N/A None N/A N/A result N/A 0 N/A find_item N/A N/A self uuid N/A N/A N/A N/A N/A self get_unique N/A N/A N/A item N/A N/A N/A item uuid uuid N/A find_item_by_pk N/A N/A self pk N/A N/A N/A N/A N/A N/A N/A self all_dict get pk None N/A delete_item N/A N/A self uuid N/A N/A N/A Deletes an item with a given UUID.

        Returns:
           True if the item existed and was deleted, False if not found.
         N/A item N/A N/A self find_item uuid N/A N/A item None N/A N/A False N/A N/A N/A item delete N/A True N/A modify_site _do_create_item N/A N/A self N/A args kwargs N/A N/A Only to be called by subclasses. N/A item N/A N/A N/A N/A self model_class objects create site N/A self site uuid N/A str N/A N/A uuidgen uuid4 kwargs N/A N/A item site N/A self site N/A item N/A N/A UsersCollection N/A Collection N/A N/A Collection of users resources. N/A item_name user N/A model_class User create_item N/A N/A self email N/A N/A N/A Creates a new User object for the site.

        There may be two different users with the same email but for
        different sites.

        Raises:
            ValidationError if the email is invalid or if a site
            already has a user with such email.
            LimitExceeded if the site defines a maximum number of
            users and adding a new one would exceed this number.
         N/A users_limit N/A N/A self site users_limit N/A N/A N/A users_limit None N/A N/A N/A self count users_limit N/A N/A N/A LimitExceeded Users limit exceeded N/A encoded_email N/A _encode_email email N/A N/A encoded_email None N/A N/A N/A ValidationError Invalid email format. N/A N/A N/A N/A self find_item_by_email encoded_email None N/A N/A N/A ValidationError User already exists. N/A N/A N/A self _do_create_item email encoded_email last_login N/A N/A timezone now N/A modify_site find_item_by_email N/A N/A self email N/A N/A N/A encoded_email N/A _encode_email email N/A N/A encoded_email None N/A N/A None N/A N/A N/A self get_unique N/A N/A N/A user N/A N/A N/A user email encoded_email N/A N/A LocationsCollection N/A Collection N/A N/A Collection of locations resources. N/A PATH_LEN_LIMIT 300 N/A item_name location N/A model_class Location update_cache N/A N/A self N/A N/A N/A N/A N/A N/A super LocationsCollection self update_cache N/A N/A self _cached_permissions N/A N/A p N/A N/A N/A Permission objects filter site N/A self site N/A N/A N/A N/A N/A N/A self _cached_permissions setdefault N/A p http_location_id N/A N/A N/A p user_id p N/A get_permissions N/A N/A self location_id N/A N/A N/A Returns permissions for a given location of the site. N/A N/A N/A self is_cache_obsolete N/A N/A N/A N/A self update_cache N/A N/A N/A N/A self _cached_permissions get location_id N/A N/A create_item N/A N/A self path N/A N/A N/A Creates a new Location object for the site.

        The location path should be canonical and should not contain
        parts that are not used for access control (query, fragment,
        parameters). Location should not contain non-ascii characters.

        Raises:
            ValidationError if the path is invalid or if a site
            already has a location with such path.
            LimitExceeded if the site defines a maximum number of
            locations and adding a new one would exceed this number.
         N/A locations_limit N/A N/A self site locations_limit N/A N/A N/A locations_limit None N/A N/A N/A self count locations_limit N/A N/A N/A LimitExceeded Locations limit exceeded N/A N/A N/A N/A url_utils is_canonical path N/A N/A N/A ValidationError Path should be absolute and normalized (starting with / without /../ or /./ or //). N/A N/A N/A len path N/A self PATH_LEN_LIMIT N/A N/A N/A ValidationError Path too long N/A N/A N/A url_utils contains_fragment path N/A N/A N/A ValidationError Path should not contain fragment ('#' part). N/A N/A N/A url_utils contains_query path N/A N/A N/A ValidationError Path should not contain query ('?' part). N/A N/A N/A url_utils contains_params path N/A N/A N/A ValidationError Path should not contain parameters (';' part). N/A N/A N/A N/A N/A path encode ascii N/A N/A N/A UnicodeError N/A N/A N/A ValidationError Path should contain only ascii characters. N/A N/A N/A N/A self get_unique N/A N/A N/A item N/A N/A N/A item path path None N/A N/A N/A ValidationError Location already exists. N/A N/A N/A self _do_create_item path path N/A modify_site find_location N/A N/A self canonical_path N/A N/A N/A Finds a location that defines access to a given path on the site.

        Args:
            canonical_path: The path for which matching location is searched.

        Returns:
            The most specific location with path matching a given path or None
            if no matching location exists.
         N/A canonical_path_len N/A len canonical_path N/A longest_matched_location None N/A longest_matched_location_len -1 N/A location N/A N/A self all N/A N/A probed_path N/A location path N/A probed_path_len N/A len probed_path N/A trailing_slash_index None N/A N/A N/A probed_path N/A N/A probed_path_len 1 / N/A N/A trailing_slash_index N/A probed_path_len 1 N/A N/A trailing_slash_index probed_path_len N/A N/A N/A N/A canonical_path startswith probed_path N/A probed_path_len longest_matched_location_len N/A N/A probed_path_len canonical_path_len N/A N/A canonical_path N/A trailing_slash_index / N/A N/A longest_matched_location_len probed_path_len N/A longest_matched_location location N/A longest_matched_location N/A has_open_location_with_login N/A N/A self N/A N/A N/A location N/A N/A self all N/A N/A N/A N/A N/A location open_access_granted N/A N/A location open_access_requires_login N/A N/A True N/A False N/A has_open_location N/A N/A self N/A N/A N/A location N/A N/A self all N/A N/A N/A N/A location open_access_granted N/A N/A True N/A False N/A N/A AliasesCollection N/A Collection N/A N/A item_name alias N/A model_class Alias N/A ALIAS_LEN_LIMIT N/A N/A 8 253 6 create_item N/A N/A self url N/A N/A N/A aliases_limit N/A N/A self site aliases_limit N/A N/A N/A aliases_limit None N/A N/A N/A self count aliases_limit N/A N/A N/A LimitExceeded Aliases limit exceeded N/A N/A N/A len url N/A self ALIAS_LEN_LIMIT N/A N/A N/A ValidationError Url too long N/A url N/A N/A N/A N/A url strip lower N/A N/A valid error N/A N/A url_utils validate_site_url url N/A N/A valid N/A N/A N/A ValidationError N/A Invalid url:  error N/A url N/A N/A url_utils remove_default_port url N/A N/A N/A self find_item_by_url url N/A N/A N/A ValidationError Alias with this url already exists N/A N/A N/A self _do_create_item url url N/A modify_site find_item_by_url N/A N/A self url N/A N/A N/A N/A N/A self get_unique N/A N/A N/A item N/A N/A N/A item url url N/A N/A _uuid2urn N/A N/A uuid N/A N/A N/A N/A urn:uuid: uuid N/A _add_common_attributes N/A N/A item site_url attributes_dict N/A N/A N/A Inserts common attributes of an item to a given dict.

    Attributes that are common for different resource types are a
    'self' link and an 'id' field.
     N/A N/A attributes_dict N/A self N/A site_url N/A N/A item get_absolute_url N/A N/A hasattr item uuid N/A N/A N/A attributes_dict N/A id N/A _uuid2urn N/A item uuid N/A attributes_dict N/A _find N/A N/A model_class N/A kwargs N/A N/A Finds a single item satisfying a given expression.

    Args:
        model_class: Model that manages stored items.
        **kwargs: Filtering expression, at most one element can satisfy it.
    Returns:
        An item that satisfies expression or None.
     N/A items N/A item N/A item N/A N/A N/A model_class objects filter kwargs N/A count N/A len items N/A N/A count 1 N/A N/A count 0 N/A N/A None N/A N/A items N/A 0 N/A _encode_email N/A N/A email N/A N/A N/A Encodes and validates email address.

    Email is converted to a lower case not to require emails to be added
    to the access control list with the same capitalization that the
    user signs-in with.
     N/A encoded_email N/A N/A email lower N/A N/A N/A is_email_valid encoded_email N/A N/A None N/A encoded_email N/A is_email_valid N/A N/A email N/A N/A N/A N/A N/A re match N/A email_re EMAIL_VALIDATION_RE email N/A