ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
1427
|
Wed Oct 5 13:22:08 2005 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug report | Linux | Windows | 2.6.0-b4 | Re: Post appearing twice |
Dan Chitwood wrote: | We are having trouble on our logbook with posts appearing twice. Both posts contain the same ID number, time, etc. This most often occurs when the e-log entry is being written for an extended period of time (ie. more than 30 minutes), but I don't know if that is the root cause of the problem. It may also be related to posts that are edited after an initial posting. Could this be due to an improper setting in our config file? |
Besides the trivial case that people hit the submit button twice I can only imagine one possible cause: If you edit an existing entry, there is a button Resubmit as new entry at the bottom. If that button is checked, the old entry gets deleted and a new one gets submitted. If the delete of the old entry fails for some reason, you could maybe get two entries.
May I suggest following: Use a very simple config file (like the demo one from the distribution) and see if you can reproduce the problem. If not, add you config options one by one to the config file, and see at which option the problem starts. This way you might find the cause of it.
Your problem has not been reported by anybody else so far, so chances are high that it's related to a config setting. |
1908
|
Tue Aug 22 10:41:42 2006 |
| Ben Shepherd | bjs54'at'dl.ac.uk | Request | Linux | Windows | 2.6.2-1714 | Append option for elog.exe | Hi,
Would it be possible to add an 'append' option to the elog.exe client program? I would like to be able to write a simple script for adding images into a logbook - i.e. right-click in Windows and click 'add to log', or click a button in LabVIEW or Matlab and have an image immediately added to the last log entry. There would also have to be an option to either return a list of entry IDs, or just append to the last entry. Is this possible/likely?
cheers
ben |
1910
|
Thu Aug 24 11:12:18 2006 |
| Ben Shepherd | bjs54@dl.ac.uk | Request | Linux | Windows | 2.6.2-1714 | Turn off smileys? | Can we please have an option to turn off the thing that changes smileys automatically into pictures?
cheers
ben |
1917
|
Tue Aug 29 15:16:31 2006 |
| Giorgio Croci Candiani | g.crocic@libero.it | Bug report | Linux | Windows | 2.6.1 | Re: Access to global configuration in v2.6.1 | Hi,
after a long time, I thought I could try to investigate the code some further,
and maybe I found some hint.
The page where I expected the options to show was (probably) the one generated by this function:
void show_admin_page(LOGBOOK * lbs, char *top_group)
Inside, it, the buttons are generated by following code snippets:
(elogd.c:10443)
if (is_admin_user_global(getparam("unm"))) {
sprintf(str, loc("Change %s"), "[global]");
rsprintf("<input type=submit name=cmd value=\"%s\">\n", str);
}
(elogd.c:10461)
if (is_admin_user("global", getparam("unm"))) {
rsprintf("<input type=submit name=cmd value=\"%s\">\n", loc("Delete this logbook"));
rsprintf("<input type=submit name=cmd value=\"%s\">\n", loc("Rename this logbook"));
rsprintf("<input type=submit name=cmd value=\"%s\">\n", loc("Create new logbook"));
}
The functions called to validate the user are following:
(elogd.c:21298)
BOOL is_admin_user(char *logbook, char *user):
//...
if (user == NULL)
return FALSE;
(elogd.c:21324)
BOOL is_admin_user_global(char *user)
{
//...
if (user == NULL)
return FALSE;
Since I assume that I'm probably in the "userless" case (no users are defined in the configuration,
and no usernames are set when launching elog either), I would understand that this causes the options for
global config editing etc etc not to be shown on the admin page.
In my opinion (and given that my interpretation of the code flow isn't wrong), the "null"
user should be indeed considered admin, at least as long as no user management is defined whatsoever.
(If I got it right, if user==NULL, but a password file exists, user management is applied,
thus we're in the case of anonymous user which is correctly not admin).
Again, I might be wrong, but I would be curious to hear an opinion from you about this issue.
Thanks again for your attention.
GiorgioCC |
1963
|
Tue Oct 10 08:56:49 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Linux | Windows | 2.6.2-1714 | Re: Append option for elog.exe |
Ben Shepherd wrote: | Hi,
Would it be possible to add an 'append' option to the elog.exe client program? I would like to be able to write a simple script for adding images into a logbook - i.e. right-click in Windows and click 'add to log', or click a button in LabVIEW or Matlab and have an image immediately added to the last log entry. There would also have to be an option to either return a list of entry IDs, or just append to the last entry. Is this possible/likely?
|
Unfortunately it is not simple under Windows to extend the right-click functionality. What I do is to use a snapshot program (like HoverSnap). Triggered with a definable hot key, it grabs a region of the screen and puts it into a GIF file. Then you can attach it to an elog. I agree it takes a couple of clicks, but it's still a quick thing. |
1964
|
Tue Oct 10 09:00:08 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Linux | Windows | 2.6.2-1714 | Re: Turn off smileys? |
Ben Shepherd wrote: | Can we please have an option to turn off the thing that changes smileys automatically into
pictures? |
Two ways:
- Submit your entry in plain mode (insted of ELCode)
- Put a \ in front of anything which is turned into a smiley, so ;) gets converted into
, but \;) does not get converted
|
1965
|
Tue Oct 10 11:13:16 2006 |
| Ben Shepherd | bjs54@dl.ac.uk | Request | Linux | Windows | 2.6.2-1714 | Re: Turn off smileys? |
Stefan Ritt wrote: |
- Submit your entry in plain mode (insted of ELCode)
- Put a \ in front of anything which is turned into a smiley, so ;) gets converted into
, but \;) does not get converted
|
I realise that's possible, but things are getting converted into smileys that aren't intended to be smileys. Specifically, when I enter a question in brackets, the end bracket is converted into a smiley. (Like this?) should be (Like this\?). That is very annoying, and to be honest, I don't need the smileys. An option to switch them off would be the best thing. |
1966
|
Tue Oct 10 11:27:30 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Linux | Windows | 2.6.2-1714 | Re: Turn off smileys? |
Ben Shepherd wrote: |
Stefan Ritt wrote: |
- Submit your entry in plain mode (insted of ELCode)
- Put a \ in front of anything which is turned into a smiley, so ;) gets converted into
, but \;) does not get converted
|
I realise that's possible, but things are getting converted into smileys that aren't intended to be smileys. Specifically, when I enter a question in brackets, the end bracket is converted into a smiley. (Like this?) should be (Like this\?). That is very annoying, and to be honest, I don't need the smileys. An option to switch them off would be the best thing. |
I agree that the ?) smiley is annoying, so I changed it to ?-) which should prevent it from showing up in questions in brackets. I updated this server (you can see the effect above), the modification is committed to subversion. |
|