Ejemplo n.º 1
0
def setupgites(context):
    if context.readDataFile('gites.core_various.txt') is None:
        return
    logger.debug('Setup gites core')
    portal = context.getSite()
    createFolder(portal, "zone-membre", "Zone Membre", True)
#    setupProprioPlacefulWorkflow(portal)
    disableGlobalAddingForContentType(portal, 'GeoLocation')
    createLocalFS(portal)
    if not hasattr(portal, 'idee-sejour'):
        createFolder(portal, "idee-sejour", "Idee sejour", True)
    ideesSejourFolder = getattr(portal, 'idee-sejour')
    changeFolderView(portal, ideesSejourFolder, 'idee_sejour_root')
    boutiqueFolder = getattr(portal, 'shop', None)
    if boutiqueFolder is not None:
        changeFolderView(portal, boutiqueFolder, 'boutique_root')
def setupgites(context):
    if context.readDataFile('gites.calendar_various.txt') is None:
        return
    logger.debug('Setup gites calendar')
    portal = context.getSite()
    zoneMembreFolder = getattr(portal, 'zone-membre', None)
    if zoneMembreFolder is None:
        return
    setupPortletsInZoneMembre(zoneMembreFolder)
    createFolder(zoneMembreFolder, "calendrier", "Calendrier", True)
    calendrier = zoneMembreFolder.calendrier
    alsoProvides(calendrier, IProprioCalendar)
    alsoProvides(calendrier, ISubtyped)
    alsoProvides(calendrier, ICalendarEnhanced)
    createPage(calendrier, "transfert", "Transfert", True)
    createPage(calendrier, "aide", "Aide", True)
    setupCalendar(calendrier)
Ejemplo n.º 3
0
def setupMap(context):
    if context.readDataFile('gites.map_various.txt') is None:
        return
    logger.debug('Setup gites map')
    portal = context.getSite()
    mapFolder = createFolder(portal, "recherche-cartographique",
                             "Recherche cartographique", excludeNav=True)
    mapFolder.setLanguage('fr')
    changeFolderView(portal, mapFolder, 'mapSearchView')
    publishObject(mapFolder)
    translateMapFolder(portal, mapFolder)