Type date and conditional attributes, posted by Ralph Bearpark on Fri Mar 5 15:34:30 2004
|
BUG#1
Given:
Attributes = Category, Status, Started, Finished, Activity, Headline
Type Started = date
Type Finished = date
Options Status = 1-To Do{1}, 2-Opened{2}, 3-Closed{3}, 4-Suspended{4}
{2} Preset Started = $date
{3} Preset Finished = $date
{4} Preset Finished = $date
There seems to be no setting of Date format (or Time format?) that gives a
meaningful value to attributes Started or Finished. Even "Date format = %s"
- which gives number of seconds since 1970 - gives bad results.
BUG#2
In single entry view, elog returns an unformatted date value for "Type =
date" attributes - even when it has been manually entered with the date picker. |
Re: Type date and conditional attributes, posted by Stefan Ritt on Sat Mar 6 12:47:34 2004
|
> BUG#1
Has been fixed. New version under CVS.
> BUG#2
> In single entry view, elog returns an unformatted date value for "Type =
> date" attributes - even when it has been manually entered with the date picker.
Can't reproduce that. Used your config, got the display attached. |
Re: Type date and conditional attributes, posted by Ralph Bearpark on Mon Mar 8 09:52:14 2004
|
> > BUG#1
>
> Has been fixed. New version under CVS.
Thanks for that, Stefan.
> > BUG#2
> > In single entry view, elog returns an unformatted date value for "Type =
> > date" attributes - even when it has been manually entered with the date picker.
>
> Can't reproduce that. Used your config, got the display attached.
Nor can I in the new version. Forgive me if I don't investigate further. ;-) |
Instant Edit Link, posted by Raj on Fri Feb 27 03:48:05 2004
|
How I can dynamically create a link when a new submission is entered that
will have a value of <ELOG_URL$message id?=Edit>
I want the users to be able to go straight from the main page to an edit
page. This would skip 1 step to get to the edit page.
Is this possible.
If that link could use one of the icons for the src image that would be
great.
Thanks.
:-) |
Re: Instant Edit Link, posted by Stefan Ritt on Fri Feb 27 09:15:07 2004
|
I have added that functionality according to your request. In elogd.cfg, you
can specify
List Display = ID, Edit, Delete, Date, Author, ... <other attributes>
which gives you two colums, one to edit and entry and one to delete one. See
the attached picture. I presume that's what you want. This works on the
newest version
http://midas.psi.ch/cgi-bin/cvsweb/elog/src/elogd.c?rev=1.272
and you need the two icons
http://midas.psi.ch/cgi-bin/cvsweb/elog/themes/default/edit.gif?rev=1.1
http://midas.psi.ch/cgi-bin/cvsweb/elog/themes/default/delete.gif?rev=1.1
to be put under your elog/themes/default/ directory. Or you wait for the
next official release (;-) |
Re: Instant Edit Link, posted by Raj on Sun Feb 29 18:31:47 2004
|
I have done all that you suggested and all I get is the Message ID # that takes
me to the message.
I even upgraded to the 2.5.1 version. Then I placed the elogd.c in the SRC
folder. Also placed the images in the themes folder.
When I edit the List Display line it throws all my columns off by 1.
No luck so far.
Any suggestions?
PS
Thanks for such a quick reply!
> I have added that functionality according to your request. In elogd.cfg, you
> can specify
>
> List Display = ID, Edit, Delete, Date, Author, ... <other attributes>
>
> which gives you two colums, one to edit and entry and one to delete one. See
> the attached picture. I presume that's what you want. This works on the
> newest version
>
> http://midas.psi.ch/cgi-bin/cvsweb/elog/src/elogd.c?rev=1.272
>
> and you need the two icons
>
> http://midas.psi.ch/cgi-bin/cvsweb/elog/themes/default/edit.gif?rev=1.1
> http://midas.psi.ch/cgi-bin/cvsweb/elog/themes/default/delete.gif?rev=1.1
>
> to be put under your elog/themes/default/ directory. Or you wait for the
> next official release (;-) |
Re: Instant Edit Link, posted by Stefan Ritt on Mon Mar 1 08:29:19 2004
|
> I even upgraded to the 2.5.1 version. Then I placed the elogd.c in the SRC
> folder. Also placed the images in the themes folder.
As I wrote, you have to get the latest elogd.c, revision 1.272 and *COMPILE* it
(or wait for the next official release). If you cannot compile elogd.c, let me
know and I can send you the executable. |
Re: Instant Edit Link, posted by Raj on Fri Mar 5 17:26:29 2004
|
I must have misunderstood what you meant. That aside, I don't know how to compile
the elogd.c so any help would be appreciated. I would like to learn how to also.
Thanks.
> > I even upgraded to the 2.5.1 version. Then I placed the elogd.c in the SRC
> > folder. Also placed the images in the themes folder.
>
> As I wrote, you have to get the latest elogd.c, revision 1.272 and *COMPILE* it
> (or wait for the next official release). If you cannot compile elogd.c, let me
> know and I can send you the executable. |
top text/bottom text, posted by Val Schmidt on Mon Mar 1 16:49:34 2004
|
Hello,
I have a quick question regarding how to display text using the "Top text"
feature in the elogd.cfg file. I've made an entry that looks like the
following:
Top text = <h1>TEXT TO DISPLAY</h1>
But instead of getting just "TEXT TO DISPLAY" I get something like this:
----begin page ---
/usr/local/elog "TEXT TO DISPLAY"
...rest of page
----end page ---
...that is, on the far left at the top of the page in unformatted text
is "/usr/local/elog/" prepended to the text I want do display.
I don't know if this is a bug, or (more likely) something misconfigured in
my setup. But any help that could be provided would be most greatful.
Thanks,
Val |
Re: top text/bottom text, posted by Stefan Ritt on Mon Mar 1 16:58:36 2004
|
This was a bug which only occurs under certain conditions, that's why nobody
has seen it yet. I fixed it, the new version is available under CVS:
http://midas.psi.ch/cgi-bin/cvsweb/elog/src/elogd.c?rev=1.275 |
Re: top text/bottom text, posted by Val Schmidt on Mon Mar 1 17:26:34 2004
|
> This was a bug which only occurs under certain conditions, that's why nobody
> has seen it yet. I fixed it, the new version is available under CVS:
>
> http://midas.psi.ch/cgi-bin/cvsweb/elog/src/elogd.c?rev=1.275
Great!
I'm inclined to wait until you release a new rpm with the changes, as I'm
likely to mucky things up by trying to upgrade from the cvs archive rather than
using the rpm mechanics.
But glad to hear it's fixed.
By the way, ELOG is a fantastic tool. I'm very thankful for all the effort gone
into it. I do wish there were standard sql hooks, as I'm a bit fearful of how
it will scale. But the front-end, which is often most neglected, is well
thought out. Thanks so much, Val |
Default Sorting Option, posted by Ulrich Trüssel on Fri Feb 27 10:09:04 2004
|
I really don't know if anybody already had this problem or i just didn't
find the solution in the documenttaion:
There is a possibility to sort the log by the value of a attribute as
well as a flag for reverse sort. anf it's quite easy to build up a
command line with the sort attribute and value. But this only works from
a self written command line.
Is there any possibilty to make ELOG soring by default (without a
command line option) by a other attribute than date? I would use a date
set by the user manually to sort the log file, even the user clicks on
the log-name.
or may it be a possibility for a additional feature, like a logbook
option "Default sort = my own date" and the logbok get sorted by this
attribute and option by default.
Would be happy about every tip! ThankX! |
Re: Default Sorting Option, posted by Stefan Ritt on Fri Feb 27 10:28:00 2004
|
This can be easily achieved with the configuration option
Start page = ?sort=<attribute>
or
Start page = ?rsort=<attribute>
where <attribute> is your date.
In your case, you need the URL
http://www.familienhund.ch:8080/Aktuelles+Programm/?sort=Datum+wann
which can be obtained via
Start page = ?sort=Datum+wann |
Re: Default Sorting Option, posted by Ulrich Trüssel on Fri Feb 27 13:25:32 2004
|
Thank's!!! :-))
Great solution. Exactly what I need!
Ueli
> This can be easily achieved with the configuration option
>
> Start page = ?sort=<attribute>
>
> or
>
> Start page = ?rsort=<attribute>
>
> where <attribute> is your date.
>
> In your case, you need the URL
>
> http://www.familienhund.ch:8080/Aktuelles+Programm/?sort=Datum+wann
>
> which can be obtained via
>
> Start page = ?sort=Datum+wann
|
-W -Wall options (using gcc), posted by Heiko Scheit on Fri Feb 13 12:25:15 2004
|
Maybe consider using the options -W -Wall when compiling elogd.
There are several warning messages. |
Re: -W -Wall options (using gcc), posted by Stefan Ritt on Fri Feb 13 21:52:48 2004
|
Thanks, I did so. |
Re: -W -Wall options (using gcc), posted by Stefan Ritt on Mon Feb 16 16:07:34 2004
|
So I fixed all compiler generated warnigns except these:
[midas@pc2075 ~/elog]$ gcc -g -O -W -Wall -o elogd src/elogd.c
src/elogd.c: In function `set_cookie':
src/elogd.c:4675: warning: `%y' yields only last 2 digits of year
src/elogd.c: In function `send_file_direct':
src/elogd.c:5483: warning: `%y' yields only last 2 digits of year
src/elogd.c: In function `show_elog_list':
src/elogd.c:11938: warning: `%x' yields only last 2 digits of year in some
locales
src/elogd.c:11957: warning: `%x' yields only last 2 digits of year in some
locales
src/elogd.c:11979: warning: `%x' yields only last 2 digits of year in some
locales
src/elogd.c:11987: warning: `%x' yields only last 2 digits of year in some
locales
src/elogd.c: In function `ctrlc_handler':
src/elogd.c:15864: warning: empty body in an if-statement
src/elogd.c: In function `hup_handler':
src/elogd.c:15870: warning: empty body in an if-statement
Do you know how to disable these warnings or any other workaround? I would
like to compile without any remaining warnings. |
Re: -W -Wall options (using gcc), posted by Heiko Scheit on Mon Feb 16 16:40:50 2004
|
> So I fixed all compiler generated warnigns except these:
>
> [midas@pc2075 ~/elog]$ gcc -g -O -W -Wall -o elogd src/elogd.c
> src/elogd.c: In function `set_cookie':
> src/elogd.c:4675: warning: `%y' yields only last 2 digits of year
> src/elogd.c: In function `send_file_direct':
> src/elogd.c:5483: warning: `%y' yields only last 2 digits of year
> src/elogd.c: In function `show_elog_list':
> src/elogd.c:11938: warning: `%x' yields only last 2 digits of year in some
> locales
> src/elogd.c:11957: warning: `%x' yields only last 2 digits of year in some
> locales
> src/elogd.c:11979: warning: `%x' yields only last 2 digits of year in some
> locales
> src/elogd.c:11987: warning: `%x' yields only last 2 digits of year in some
> locales
> src/elogd.c: In function `ctrlc_handler':
> src/elogd.c:15864: warning: empty body in an if-statement
> src/elogd.c: In function `hup_handler':
> src/elogd.c:15870: warning: empty body in an if-statement
>
> Do you know how to disable these warnings or any other workaround? I would
> like to compile without any remaining warnings.
Have a look at the gcc info pages:
$ info gcc "invoking gcc" "warning options" |
Re: -W -Wall options (using gcc), posted by Stefan Ritt on Mon Feb 16 16:47:55 2004
|
> Have a look at the gcc info pages:
>
> $ info gcc "invoking gcc" "warning options"
Sure, I'm not stupid! I looked for ~10 minutes how to turn off the remaining
warnings, but I could not find it. The code is now correct, like I do want the
"%y" format specifier in the strftime() function, but the warning is wrong. The
closest I came to was
-W -Wall -Wno-format
which removes ther warning in strftime(), but I do want this warning, since it
helps in many other printf() statements. |
Re: -W -Wall options (using gcc), posted by Heiko Scheit on Mon Feb 16 17:18:39 2004
|
> > Have a look at the gcc info pages:
> >
> > $ info gcc "invoking gcc" "warning options"
>
> Sure, I'm not stupid!
Sorry, didn't mean to offend you.
> I looked for ~10 minutes how to turn off the remaining
> warnings, but I could not find it. The code is now correct, like I do want the
> "%y" format specifier in the strftime() function, but the warning is wrong.
One way to remove the warnings would be to use "%Y" in a separate strftime() call
and then taking only the last two digits (characters) of that string.
Something like:
old:
strftime(str, sizeof(str), "%A, %d-%b-%y %H:%M:%S GMT", gmt);
new:
strftime(str, sizeof(str), "%A, %d-%b-XX %H:%M:%S GMT", gmt);
strftime(year, sizeof(year), "%Y", gmt);
i=strstr(str,"XX"); /* find position of XX */
if ( i+1 < sizeof(str) ) {
str[i] =year[3];
str[i+1]=year[4];
} else ...
Somewhat cumbersome, but should work. Maybe consider using the four
digit year directly, where possible.
Gruss, Heiko |
elog (not elogd) submit does not work anymore, posted by Heiko Scheit on Fri Feb 13 12:21:25 2004
|
Somehow elog does not use the -s option (subdir) anymore,
resulting in a 'HTTP/1.1 404 Not Found' error.
For now I am using elog from version 2.3.9 together with elogd v2.5.0,
which seems to work OK. |
Re: elog (not elogd) submit does not work anymore, posted by Stefan Ritt on Fri Feb 13 21:59:44 2004
|
Oops! I 're-used' the '-s' flag for email suppression, so it was actually
double used. I changed the email supprssion flag to '-p', so '-s' should
work again for specifying subdirectories. |
Behaviour of text when using quote marks in header fields , posted by Fergus Lynch on Wed Feb 11 15:06:38 2004
|
Hi,
First off let me say what an excellent program, simple yet powerful...
I've noticed some erratic behaviour when using "quote marks" in header
fields. Basically all text to the right of a " disappears. Try adding an
entry with quote marks or replying to this post.
Presume this is a bug.
Keep up the good work
Fergus |
Re: Behaviour of text when using "quote marks" in header fields , posted by Stefan Ritt on Fri Feb 13 21:34:57 2004
|
Like this one ^^^ ???
I'm joking! I fixed the bug and updated the elogd server. Please find the new
version under CVS.
- Stefan |
Re: Behaviour of text when using "quote marks" in header fields , posted by Fergus Lynch on Fri Feb 13 21:50:59 2004
|
> Like this one ^^^ ???
>
> I'm joking! I fixed the bug and updated the elogd server. Please find the new
> version under CVS.
>
> - Stefan
Blimey! That was quick!
Many thanks for amending this. You'll be pleased to hear that my IT Operations
Team think this is the best thing since sliced bread...its going to replace a
blizzard of spreadsheets.
Cheers
Fergus |
segmentation fault, posted by Heiko Scheit on Fri Feb 13 12:18:19 2004
|
Around line 2240 (in loc()) in elogd.c the following is written,
which results in an infinite loop, since loc() recursively with
the same argument "Change %s".
/* special case: "Change %s" */
if (strstr(orig, "Change ")) {
sprintf(result, loc("Change %s"), orig + 7);
return result;
}
For now I just commented these lines. |
Re: segmentation fault, posted by Stefan Ritt on Fri Feb 13 21:50:09 2004
|
This problem has been fixed recently. The new code is
/* special case: "Change %s" */
if (strstr(orig, "Change ") && strcmp(orig, "Change %s") != 0) {
sprintf(result, loc("Change %s"), orig + 7);
return result;
}
Alternatively you can get the updated version from CVS.
- Stefan |