Exemple #1
0
    def manage_afterAdd(self, item, container):
        SimpleItem.manage_afterAdd(self, item, container)

        self.uacct = ""
        self.filter_analytics = False
        self.filter_on_view = True
        self.filter_on_templates = []
Exemple #2
0
 def manage_afterAdd(self, item, container):
     SimpleItem.manage_afterAdd(self, item, container)
     portal_url = getToolByName(container, 'portal_url')
     storagePath = portal_url.getPortalPath() + '/pdfs'
     self.DEFAULT_STORAGE_PATHS = [storagePath]
     self.DEFAULT_STORAGE_PATH = self.DEFAULT_STORAGE_PATHS[0]
     if self.storagePath is None:
         self.storagePath = storagePath
     if self.storagePaths is None:
         self.storagePaths = [self.storagePath]
 def manage_afterAdd(self, item, container):
     SimpleItem.manage_afterAdd(self, item, container)
     portal_url = getToolByName(container, 'portal_url')
     storagePath = portal_url.getPortalPath() + '/pdfs'
     self.DEFAULT_STORAGE_PATHS = [storagePath]
     self.DEFAULT_STORAGE_PATH = self.DEFAULT_STORAGE_PATHS[0]
     if self.storagePath is None:
         self.storagePath = storagePath
     if self.storagePaths is None:
         self.storagePaths = [self.storagePath]
Exemple #4
0
    def manage_afterAdd(self, item, container) :
        """
        """
        SimpleItem.manage_afterAdd(self, item, container)

        self.locationCode = ""
        self.cacheDuration = 60 * 60 * CACHE_DURATION_IN_HOURS
        self.numDaysInPortlet = 3
        self.portletType = PORTLET_MULTIPLE
        self.languageCode = "es"
        
        self.cache = {
            "date" : 0,
            "data" : {"error" : "No data"},
        }
 def manage_afterAdd(self, item, container):
     """ Ensure that a new utility id is assigned after creating
         or copying an instance.
     """
     self._new_utilid()
     register_sa_wrapper(self.id, self._wrapper)
     return SimpleItem.manage_afterAdd(self, item, container)
Exemple #6
0
 def manage_afterAdd(self, item, container):
     """ Ensure that a new utility id is assigned after creating
         or copying an instance.
     """
     self._new_utilid()
     wrapper = self.sa_zope_wrapper()
     if wrapper:
         register_sa_wrapper(self.id, wrapper)
     return SimpleItem.manage_afterAdd(self, item, container)
Exemple #7
0
 def manage_afterAdd(self, item, container):
     """ Ensure that a new utility id is assigned after creating
         or copying an instance.
     """
     self._new_utilid()
     return SimpleItem.manage_afterAdd(self, item, container)