Пример #1
0
 def format_atom(self,reduction = None):
     if not reduction:
         reduction = pparser.parseone("MiLeEa")
     out = []
     ts = self._format_termweeks(reduction)
     if ts:
         out.append(ts)
     # days and times
     dts = self._format_daytimes(reduction)
     if dts:
         out.append(dts)
     return " ".join(out)
Пример #2
0
 def format_atom(self, reduction=None):
     if not reduction:
         reduction = pparser.parseone("MiLeEa")
     out = []
     ts = self._format_termweeks(reduction)
     if ts:
         out.append(ts)
     # days and times
     dts = self._format_daytimes(reduction)
     if dts:
         out.append(dts)
     return " ".join(out)
Пример #3
0
 def __init__(self, template, term=None):
     self.term = term
     if template is not None:
         self.template = pparser.parseone(str(template))
         self._tracker = tracker.OffsetTracker(self.template, term)
     self._patterns = []
Пример #4
0
 def __init__(self,template,term = None):
     self.term = term
     if template is not None:
         self.template = pparser.parseone(str(template))
         self._tracker = tracker.OffsetTracker(self.template,term)
     self._patterns = []