Ejemplo n.º 1
0
#-*- coding: utf-8 -*-
u"""

.. moduleauthor:: Martí Congost <*****@*****.**>
"""
from cocktail import schema
from woost.models import Website, Document

Website.add_member(
    schema.String("google_search_engine_id",
                  member_group="services.google_cse"))

Website.add_member(
    schema.Reference("google_search_results_page",
                     type=Document,
                     related_end=schema.Collection(),
                     member_group="services.google_cse"))
Ejemplo n.º 2
0
#-*- coding: utf-8 -*-
u"""

.. moduleauthor:: Martí Congost <*****@*****.**>
"""
from cocktail import schema
from woost.models import Website

Website.add_member(
    schema.String("google_analytics_account",
        text_search = False,
        member_group = "services.google_analytics",
        synchronizable = False,
        listed_by_default = False
    )
)

Ejemplo n.º 3
0
#-*- coding: utf-8 -*-
u"""

.. moduleauthor:: Jordi Fernández <*****@*****.**>
"""
from cocktail import schema
from woost.models import Website

Website.add_member(
    schema.String("external_files_host",
        text_search = False,
        member_group = "publication",
        listed_by_default = False
    )
)

Ejemplo n.º 4
0
#-*- coding: utf-8 -*-
u"""

.. moduleauthor:: Jordi Fernández <*****@*****.**>
"""
from cocktail import schema
from woost.models import Website

Website.members_order.extend(
    ["campaign_monitor_api_key", "campaign_monitor_client_id"])

Website.add_member(
    schema.String("campaign_monitor_api_key",
                  member_group="services.campaign_monitor",
                  listed_by_default=False))

Website.add_member(
    schema.String("campaign_monitor_client_id",
                  member_group="services.campaign_monitor",
                  listed_by_default=False))