Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Str handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad Call NameLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Return Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr NameLoad keyword Call NameLoad NameLoad decorator_list NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body If AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad orelse Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad If BoolOpOr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword ListLoad Str Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str handlers ExceptHandler type AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str attr Return NameLoad decorator_list decorator_list
N/A N/A datetime N/A hashlib django.views.generic.detail DetailView django.contrib.auth.decorators login_required django.shortcuts render_to_response get_object_or_404 django.template RequestContext django.utils.translation ugettext_lazy _ django.core.mail send_mail django.contrib messages django.core.exceptions PermissionDenied e_cidadania settings core.spaces.models Space Intent helpers.cache get_or_insert_object_in_cache add_intent N/A N/A request space_url N/A N/A N/A 
    Returns a page where the logged in user can click on a "I want to
    participate" button, which after sends an email to the administrator of
    the space with a link to approve the user to use the space.

    :attributes:  space, intent, token
    :rtype: Multiple entity objects.
    :context: space_url, heading
     N/A space N/A get_object_or_404 Space url space_url N/A admins N/A N/A N/A space admins all N/A mails N/A N/A m N/A N/A N/A space admins all N/A N/A N/A N/A mails append N/A m email N/A N/A N/A intent N/A N/A N/A Intent objects get user N/A request user space space N/A heading N/A _ Access has been already authorized N/A N/A N/A N/A Intent DoesNotExist N/A N/A token N/A N/A N/A N/A hashlib md5 N/A %s%s%s N/A N/A request user space N/A N/A N/A datetime datetime now hexdigest N/A intent N/A Intent user N/A request user space space token token N/A N/A N/A intent save N/A subject N/A _ New participation request N/A body N/A N/A N/A _ User {0} wants to participate in space {1}.
                 Please click on the link below to approve.
 {2} format N/A N/A request user username N/A space name N/A N/A intent get_approve_url N/A heading N/A _ Your request is being processed. N/A N/A send_mail subject body N/A settings DEFAULT_FROM_EMAIL mails N/A N/A render_to_response space_intent.html N/A space_name heading N/A space name heading context_instance N/A RequestContext request N/A login_required ValidateIntent N/A DetailView N/A N/A 
    Validate the user petition to join a space. This will add the user to the
    users list in the space, allowing him participation. This function checks
    if the user visiting the token url is admin of the space. If he or she is
    an admin proceeds with the validation.

    .. versionadded: 0.1.5
     N/A context_object_name get_place N/A template_name spaces/validate_intent.html N/A status N/A _ The requested intent does not exist! dispatch N/A N/A self reques N/A args kwargs N/A N/A N/A N/A request user is_authenticated N/A N/A N/A N/A N/A super ValidateIntent self dispatch request args kwargs N/A N/A PermissionDenied N/A get_object N/A N/A self N/A N/A N/A space_url N/A N/A self kwargs N/A space_url N/A space_object N/A get_or_insert_object_in_cache Space space_url url space_url N/A N/A N/A has_space_permission N/A N/A self request user space_object allow N/A admins mods N/A has_all_permissions N/A N/A self request user N/A N/A N/A N/A intent N/A N/A N/A Intent objects get token N/A N/A self kwargs N/A token N/A N/A N/A N/A N/A intent space users add N/A intent user N/A N/A self status N/A _ N/A The user has been authorized to participate                 in space "%s". N/A space_object name N/A N/A N/A messages success N/A self request N/A _ Authorization successful N/A N/A N/A N/A Intent DoesNotExist N/A N/A N/A self status N/A _ The requested intent does not exist! N/A space_object N/A get_context_data N/A N/A self N/A kwargs N/A N/A context N/A N/A N/A super ValidateIntent self get_context_data kwargs N/A N/A context N/A status N/A self status N/A N/A context N/A request_user N/A N/A N/A N/A Intent objects get token N/A N/A self kwargs N/A token user N/A context N/A N/A