Example #1
0
 def __init__(self, action_base='Upload of Validated Evernote Notes', row_item_base=None, row_item_full=None,
              action_full=None, action_template=None, label=None, auto_label=True, max=None, automated=False, enabled=True,
              interval=None, row_source=None, do_print=False, report_if_empty=True, **kw):
     self.__action_short = None
     if label is None and auto_label:
         label = caller_name(return_filename=True)
     if row_item_base is None:
         actions = action_base.split()
         action_base = actions[0]
         if len(actions) == 1:
             action_base = actions[0]
             row_item_base = action_base
         else:
             if actions[1].lower() == 'of':
                 action_base += ' ' + actions[1]
                 actions = actions[1:]
                 assert len(actions) > 1
             row_item_base = ' '.join(actions[1:])
             if row_item_full is None and len(actions) > 2:
                 row_item_base = actions[-1]
                 row_item_full = ' '.join(actions[1:])
     self.__action_base = action_base
     self.__action_full = action_full
     self.__row_item_base = row_item_base
     self.__row_item_full = row_item_full
     self.__row_source = row_source
     self.__action_template = action_template
     self.__automated = automated
     self.__enabled = enabled
     self.__label = label
     self.__max = max
     self.__interval = interval
     self.__do_print = do_print
     self.__report_if_empty = report_if_empty
Example #2
0
 def __init__(self,
              action_base='Upload of Validated Evernote Notes',
              row_item_base=None,
              row_item_full=None,
              action_full=None,
              action_template=None,
              label=None,
              auto_label=True,
              max=None,
              automated=False,
              enabled=True,
              interval=None,
              row_source=None,
              do_print=False,
              report_if_empty=True,
              **kw):
     self.__action_short = None
     if label is None and auto_label:
         label = caller_name(return_filename=True)
     if row_item_base is None:
         actions = action_base.split()
         action_base = actions[0]
         if len(actions) == 1:
             action_base = actions[0]
             row_item_base = action_base
         else:
             if actions[1].lower() == 'of':
                 action_base += ' ' + actions[1]
                 actions = actions[1:]
                 assert len(actions) > 1
             row_item_base = ' '.join(actions[1:])
             if row_item_full is None and len(actions) > 2:
                 row_item_base = actions[-1]
                 row_item_full = ' '.join(actions[1:])
     self.__action_base = action_base
     self.__action_full = action_full
     self.__row_item_base = row_item_base
     self.__row_item_full = row_item_full
     self.__row_source = row_source
     self.__action_template = action_template
     self.__automated = automated
     self.__enabled = enabled
     self.__label = label
     self.__max = max
     self.__interval = interval
     self.__do_print = do_print
     self.__report_if_empty = report_if_empty
Example #3
0
 def caller(self):
     if self.__caller is None:
         self.__caller = caller_name(return_filename=True)
     return self.__caller
Example #4
0
 def caller(self):
     if self.__caller is None:
         self.__caller = caller_name(return_filename=True)
     return self.__caller