handle_anonymous_subscription

   Usages of this macro
... in subscribe.naml
227
228
229
230
231
232
233
234
235
236
237
238
<macro name="handle_anonymous_subscription" requires="node_page">
    <n.set_local_subscription
Macro
Parameters: subscription
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subscription_for
Binary
Namespace: NodeNamespace
Parameters: do, email
 email="[n.email_parameter
Macro
/]" />
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_view
Macro
Requires: user
Parameters: node_attr
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
>
        <then>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.local_subscription
Macro
Parameters: do
.is_subscribed
Binary
Namespace: SubscriptionNamespace
>
                <then.throw_template_exception
Binary
Namespace: BasicNamespace
Parameters: name
 name="already_subscribed"/>
                <else.local_subscription
Macro
Parameters: do
.send_subscription_confirmation
Macro
Requires: subscription, node_page
/>
            </n.if.local_subscription.is_subscribed>
        </then>
        <else.throw_template_exception
Binary
Namespace: BasicNamespace
Parameters: name
 name="not_authorized"/>
    </n.if.visitor.can_view.page_node>
</macro>