本文整理汇总了Python中lib.memacs.Memacs类的典型用法代码示例。如果您正苦于以下问题:Python Memacs类的具体用法?Python Memacs怎么用?Python Memacs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Memacs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _parser_parse_args
def _parser_parse_args(self):
"""
overwritten method of class Memacs
all additional arguments are parsed in here
"""
Memacs._parser_parse_args(self)
示例2: _parser_add_arguments
def _parser_add_arguments(self):
Memacs._parser_add_arguments(self)
self._parser.add_argument("-f", "--folder",
dest="filenametimestamps_folder",
action="append",
help="path to a folder to search for " + \
"filenametimestamps, " + \
"multiple folders can be specified: " + \
"-f /path1 -f /path2")
self._parser.add_argument("-x", "--exclude", dest="exclude_folder",
help="path to excluding folder, for more excludes " + \
"use this: -x /path/exclude -x /path/exclude")
self._parser.add_argument("-l", "--follow-links",
dest="follow_links", action="store_true",
help="follow symbolics links," + \
" default False")
self._parser.add_argument("--skip-file-time-extraction",
dest="skip_filetime_extraction",
action="store_true",
help="skip extraction of the file time " + \
" in files containing only the date in " + \
"the filename"
)
示例3: _parser_add_arguments
def _parser_add_arguments(self):
"""
overwritten method of class Memacs
add additional arguments
"""
Memacs._parser_add_arguments(self)
示例4: _parser_add_arguments
def _parser_add_arguments(self):
"""
overwritten method of class Memacs
add additional arguments
"""
Memacs._parser_add_arguments(self)
self._parser.add_argument(
"-l", "--list-folders",
dest="list_folders",
action="store_true",
help="show possible folders of connection")
self._parser.add_argument(
"-f", "--folder_name",
dest="folder_name",
help="name of folder to get emails from, " + \
"when you don't know name call --list-folders")
self._parser.add_argument(
"--fetch-number",
dest="fetch_number",
help="how many -last- mails should we fetch from the server?",
type=int)
示例5: _parser_add_arguments
def _parser_add_arguments(self):
"""
overwritten method of class Memacs
add additional arguments
"""
Memacs._parser_add_arguments(self)
self._parser.add_argument(
"-f",
"--file",
dest="gitrevfile",
action="store",
help="path to a an file which contains output from "
+ " following git command: git rev-list --all --pretty=raw",
)
self._parser.add_argument(
"-g",
"--grep-user",
dest="grepuser",
action="store",
help="if you wanna parse only commit from a specific person. "
+ "format:<Forname Lastname> of user to grep",
)
self._parser.add_argument(
"-e",
"--encoding",
dest="encoding",
action="store",
help="default encoding utf-8, see "
+ "http://docs.python.org/library/codecs.html#standard-encodings"
+ "for possible encodings",
)
示例6: _parser_add_arguments
def _parser_add_arguments(self):
"""
overwritten method of class Memacs
add additional arguments
"""
Memacs._parser_add_arguments(self)
self._parser.add_argument(
"-f", "--file", dest="smsxmlfile",
action="store", required=True,
help="path to sms xml backup file")
self._parser.add_argument(
"--ignore-incoming", dest="ignore_incoming",
action="store_true",
help="ignore incoming smses")
self._parser.add_argument(
"--ignore-outgoing", dest="ignore_outgoing",
action="store_true",
help="ignore outgoing smses")
self._parser.add_argument(
"--orgcontactsfile", dest="orgcontactsfile",
action="store", required=False,
help="path to Org-contacts file for phone number lookup. Phone numbers have to match.")
示例7: _parser_add_arguments
def _parser_add_arguments(self):
"""
overwritten method of class Memacs
add additional arguments
"""
Memacs._parser_add_arguments(self)
self._parser.add_argument(
"-u", "--url", dest="url",
action="store",
help="url to xml file")
self._parser.add_argument(
"-f", "--file", dest="file",
action="store",
help="path to xml file")
self._parser.add_argument(
"-i", "--ini", dest="ini",
action="store",
help="path to xml config file")
self._parser.add_argument(
"-co", "--section", dest="section",
action="store",
help="section of config file")
self._parser.add_argument(
"-de", "--delimiter", dest="splitcriterion",
action="store",
help="you can set this to specify a " +
"splitting-criterion for tags(" " is default")
示例8: _parser_add_arguments
def _parser_add_arguments(self):
"""
overwritten method of class Memacs
add additional arguments
"""
Memacs._parser_add_arguments(self)
self._parser.add_argument(
"-f", "--file", dest="smsxmlfile",
action="store", required=True,
help="path to sms xml backup file")
self._parser.add_argument(
"--ignore-incoming", dest="ignore_incoming",
action="store_true",
help="ignore incoming phonecalls")
self._parser.add_argument(
"--ignore-outgoing", dest="ignore_outgoing",
action="store_true",
help="ignore outgoing phonecalls")
self._parser.add_argument(
"--ignore-missed", dest="ignore_missed",
action="store_true",
help="ignore outgoing phonecalls")
self._parser.add_argument(
"--minimum-duration", dest="minimum_duration",
action="store", type=int,
help="[sec] show only calls with duration >= this argument")
示例9: _parser_add_arguments
def _parser_add_arguments(self):
Memacs._parser_add_arguments(self)
self._parser.add_argument("-f", "--folder",
dest="filenametimestamps_folder",
action="append",
help="path to a folder to search for " + \
"filenametimestamps, " + \
"multiple folders can be specified: " + \
"-f /path1 -f /path2")
self._parser.add_argument("-x", "--exclude", dest="exclude_folder",
help="path to excluding folder, for more excludes " + \
"use this: -x /path/exclude -x /path/exclude")
self._parser.add_argument("--filelist", dest="filelist",
help="file containing a list of files to process. " + \
"either use \"--folder\" or the \"--filelist\" argument, not both.")
self._parser.add_argument("--ignore-non-existing-items",
dest="ignore_nonexisting", action="store_true",
help="ignores non-existing files or folders within filelist")
self._parser.add_argument("-l", "--follow-links",
dest="follow_links", action="store_true",
help="follow symbolics links," + \
" default False")
self._parser.add_argument("--skip-file-time-extraction",
dest="skip_filetime_extraction",
action="store_true",
help="skip extraction of the file time " + \
" in files containing only the date in " + \
"the filename"
)
示例10: _parser_parse_args
def _parser_parse_args(self):
Memacs._parser_parse_args(self)
if not self._args.filenametimestamps_folder:
self._parser.error("no filenametimestamps_folder specified")
for f in self._args.filenametimestamps_folder:
if not os.path.isdir(f):
self._parser.error("Check the folderlist - " + \
"one or more aren't folders")
示例11: _parser_parse_args
def _parser_parse_args(self):
"""
overwritten method of class Memacs
all additional arguments are parsed in here
"""
Memacs._parser_parse_args(self)
if not os.path.exists(self._args.photo_folder):
self._parser.error("photo folder does not exist")
示例12: _parser_parse_args
def _parser_parse_args(self):
"""
overwritten method of class Memacs
all additional arguments are parsed in here
"""
Memacs._parser_parse_args(self)
if not (os.path.exists(self._args.smsxmlfile) or \
os.access(self._args.smsxmlfile, os.R_OK)):
self._parser.error("input file not found or not readable")
示例13: _parser_parse_args
def _parser_parse_args(self):
"""
overwritten method of class Memacs
all additional arguments are parsed in here
"""
Memacs._parser_parse_args(self)
if not self._args.list_folders and not self._args.folder_name:
self._parser.error("please specify a folder " + \
"use --list to find a folder")
示例14: _parser_parse_args
def _parser_parse_args(self):
"""
overwritten method of class Memacs
all additional arguments are parsed in here
"""
Memacs._parser_parse_args(self)
if not self._args.folder_path:
self._parser.error("please specify the path to Maildir folder")
if not (os.path.exists(self._args.folder_path) or \
os.access(self._args.folder_path, os.R_OK)):
self._parser.error("folder path not found")
示例15: _parser_add_arguments
def _parser_add_arguments(self):
"""
overwritten method of class Memacs
add additional arguments
"""
Memacs._parser_add_arguments(self)
self._parser.add_argument(
"-f", "--file", dest="phonelogfile",
action="store", required=True,
help="path to phone log file")