Dan,
I looked at "current_textfile" and "current_opts" as you suggested
a while ago. It seems the basics for text output are all there and
it just needs a good user interface. A problem I have with the
current implementation is that there doesn't appear to be a way to
change 'current_opts' or 'current_textfile' for a running "etmqt"
(or am I missing something).
I thought of several kludges around this, like forcing the main
program to check for a new "etm.cfg" (or "usr.cfg" which btw doesn't
appear to be documented anywhere), letting a 'current_textfile'
that begins with a '|' be a pipe to a program (instead of a file),
or even having some sort of "remote control" to direct the main
program (kind of like in modern browsers).
But then I noticed the main() program in etmData.py and decided
to copy it and create my own little python program that I am
attaching to this post. The only thing it does differently is
override 'current_opts' with it's command line args and sets
'current_textfile' to "/dev/stdout".
If main() or get_options() in etmData.py were modified to allow
arguments to override 'current_textfile' and 'current_opts', it
could easily be incorporated in etm_qt.py or etmQt/etmData.py
directly.
Fuzzy parsed date. Limit the display of dated items to those with datetimes falling before this datetime. As with BEGIN_DATE relative month expressions can be used so that, for example, -b -1/1 -e +1 would include all items from the previous month. Default: None.
--
You received this message because you are subscribed to the Google Groups "Event and Task Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eventandtaskman...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Also btw, if I have a "./etm/usr.cfg" which is empty
(or all lines commented out), I get an error in etmData.py:
'NoneType' object is not iterable)
for
options.update(custom_options)
Need,
if custom_options:
options.update(custom_options)
Perhaps also due to my misunderstanding I can't seem to get
"-s summary" to work (even in the gui).
In a ".txt" file I have the line:
^ Open Source Private Clouds MU @s Mar 14 2013 @k NYLUG
"c ddd MMM d yyyy -k NYLUG -w 40" shows me (correctly):
^ Open Source Private Clouds MU
But "c ddd MMM d yyyy -s Clouds -w 40"
doesn't find anything and just outputs a bunch of "res False"
lines to the terminal. How do I use "-s summary" for a report?
Following up on my previous post, I noticed the new text mode
options to etm_qt.py was taking about 4 times longer than my
previous kludge, for example when I did:
etm-2.0.124/etm_qt.py c c ddd MMM d yyyy -k nylug
Looking at the source code to see why, in etm-2.0.124/etmQt/etmData.py
function main() has,
rows, busytimes, busydays, alerts, dates = getViewData(bef, file2uuids, uuid2hash, options=options)
which unless it has some side effects that I'm not aware of,
appears not to be needed. At least in my simple tests I get
the same output without it.
Also for kicks I tried,
etm_qt.py a ddd MMM d yyyy -k NYLUG -w 40
and it failed with "ValueError: max() arg is an empty sequence"
in etmData.py mk_rep(). It probably should catch the case when
there are no actions (when someone does something dumb like that :-).