Ejemplo n.º 1
0
 def getLocator(self):
     l = Locators.Locator()
     ids = []
     for c in self.getCategoryList():
         ids.append(c.getId())
     l["selCateg"] = ids
     l["sDate"] = self.getStartDate().strftime("%Y-%m-%d")
     l["months"] = self._nrMonths
     return l
Ejemplo n.º 2
0
 def getLocator(self):
     l = Locators.Locator()
     ids = []
     for c in self.getCategoryList():
         ids.append(c.getId())
     l["selCateg"] = ids
     l["detail"] = self.getDetailLevel()
     l["day"] = self.getDate().day
     l["month"] = self.getDate().month
     l["year"] = self.getDate().year
     l["period"] = "day"
     return l
Ejemplo n.º 3
0
 def getLocator(self):
     """Returns the generic locator for the current object. This locator
         contains the folloing entries corresponding to values for which
         the calendar is configured:
             selCateg -> List of category ids.
             sDate -> Starting date.
             eDate -> Ending date.
     """
     l = Locators.Locator()
     ids = []
     for c in self.getCategoryList():
         ids.append(c.getId())
     l["selCateg"] = ids
     l["sDate"] = self.getStartDate().strftime("%Y-%m-%d")
     l["eDate"] = self.getStartDate().strftime("%Y-%m-%d")
     return l