Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 654 of 808  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
ID Date Icon Author Author Email Category OS ELOG Version Subjectdown
  65768   Thu Mar 6 14:03:17 2008 Reply Stefan Rittstefan.ritt@psi.chRequestLinux | All2.6.5Re: #include statements and attachment visibility

Yoshio Imai wrote:
Recently, one collaborator here noted that it would be helpful if the preview of attached files could be disabled on a file-by-file basis (via a checkbutton next to the "Upload" button maybe?). This applies e.g. to cases where someone performs a measurement outside of routine operations and attaches the ASCII data file (preview not wanted, in particular if it contains many lines) and the graph representing the evaluation (preview wanted). The disabling should apply to both single-entry view and list view with "Show attachments" option.


I made you something even better: I added a new option called Attachment lines. This number restricts the number of lines shown for any ASCII attachment. The default is 300, but you can set this to 10 maybe. This still shows you the first 10 lines of the attachment which might be handy. If you set this value to zero, no line at all is shown. The new feature is in SVN revision 2069.


Yoshio Imai wrote:
Another "fancy" idea of ours would be to allow #include-like statements in the ELOG config file. E.g. if the number of logbooks gets large, people might choose to put old logbooks to an archive disk which is then stored on some shelf. If a user then wants to access these, the disk could be mounted again (say, under /elog-archive). But since we don't know which archive disk has been mounted, and in order to keep the main config file small, the best would be to have the configurations for the logbooks of each disk on the disk itself (say, in a file called additional.config). We could then have a line like
#include /elog-archive/additional.config
in the main config file. When the elogd is (re)started, it would try to include that file. If it finds none (because no archive disk is mounted) it would silently ignore this. But if it finds such a file, it would include the logbook definitions found therein.


I will put this feature on the wishlist.
  65771   Thu Mar 6 18:19:48 2008 Cool Yoshio ImaiRequestLinux | All2.7.3Re: #include statements and attachment visibility
Thanks you! I just installed the new revision, and it works.

However, it does not seem to work in list mode (with attach=1 option): elog still shows all the lines of attached text files there.

I also noticed that the images referenced inline are also shown in the attachment list in list mode, although this post gave me the impression that in list mode, too, inline images should only be displayed inside the elog entry and not in addition as attachment.

Might this be a bug, or is there a particular reason why it is like that?
  65772   Fri Mar 7 08:01:44 2008 Reply Stefan Rittstefan.ritt@psi.chRequestLinux | All2.7.3Re: #include statements and attachment visibility

Yoshio Imai wrote:
However, it does not seem to work in list mode (with attach=1 option): elog still shows all the lines of attached text files there.

I also noticed that the images referenced inline are also shown in the attachment list in list mode, although this post gave me the impression that in list mode, too, inline images should only be displayed inside the elog entry and not in addition as attachment.


I fixed both issues in revision #2072.
  65773   Fri Mar 7 13:07:34 2008 Agree Yoshio ImaiRequestLinux | All2.7.3Re: #include statements and attachment visibility
Thank you, works perfectly!
  65893   Mon Jun 2 12:08:00 2008 Reply Stefan Rittstefan.ritt@psi.chQuestion  Re: "preview attachement" flag not working on thumbnails ?
> I would like to turn off the display of attachements when editing an entry in some of our logbooks that contains big file. 
> So I did set the flag "preview attachements"  to 0. It seems to work fine on text file attachment but 
> the  thumbnails for PDF and images (very nice feature by the way!...) are still there...

I fixed that in revision 2109.
  1364   Tue Aug 2 08:56:21 2005 Reply Stefan Rittstefan.ritt@psi.chInfoLinux2.6.0Re: "full" only changes color

Kees Bol wrote:
I have the strange problem that when changing to "full"-diplaymode the output looks the same as with "summary", only the color is different. The texts don't appear.
Any idea what can cause this behaviour?


Can you send me your elogd.cfg ?

Have you made sure that the entries do contain some text? The behaviour you describe usually happens if you have entries without any text.
  1365   Tue Aug 2 10:25:32 2005 Reply Kees Bolkees.bol@wur.nlInfoLinux2.6.0Re: "full" only changes color

Stefan Ritt wrote:

Kees Bol wrote:
I have the strange problem that when changing to "full"-diplaymode the output looks the same as with "summary", only the color is different. The texts don't appear.
Any idea what can cause this behaviour?


Can you send me your elogd.cfg ?

Have you made sure that the entries do contain some text? The behaviour you describe usually happens if you have entries without any text.


Well, I guess that causes it. In the summary-view there is no visible text.
I thougt when choosing the full-view the text would appear along with the other attributes.

My config-file is:
================================================================
Theme = default

Attributes = Author, Type, Subject
Required Attributes = Type, Subject
Preset Author = $long_name
Locked Attributes = Author

Options Type = Question, Configuration, Problem, Info, Other

List Display = ID, Date, Author, Type, Subject
Thread display = $Subject, posted by $Author on $Date

Menu commands = Back, New, Edit, Delete, Reply, Find, Last 10, Change password, Logout, Help

Quick filter = Date, Type
Summary lines = 0

Start page = ?rsort=Date

; alleen eigen messages editen
Restrict edit = 1
======================================================================================
  1374   Thu Aug 4 22:35:57 2005 Reply Stefan Rittstefan.ritt@psi.chInfoLinux2.6.0Re: "full" only changes color

Kees Bol wrote:
I thougt when choosing the full-view the text would appear along with the other attributes.


That's how it is supposed to be. I tried your config file, added three entries, and got the behaviour documented in the attached images. To me everything looks fine.
Attachment 1: summary.jpg
summary.jpg
Attachment 2: full.jpg
full.jpg
ELOG V3.1.5-3fb85fa6