Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 472 of 808  Not logged in ELOG logo
icon5.gif   Upload attachment with py_elog, posted by Bruno Schuler on Tue Oct 20 16:05:40 2020 
Hello,

How can one add an attachment to a new or existing entry with py_elog?
E.g. if I want to upload an image.
    icon2.gif   Re: From command line: "command Submit not allowed", posted by David Wallis on Tue Oct 20 17:50:50 2020 
Update: I tried switching the logbook to no authentication reqiured, and still get the "command Submit not allowed" response.




David
Wallis wrote:



I'm running  Elog version V3.1.4-ba84827 on Red Hat
    icon2.gif   Re: From command line: "command Submit not allowed", posted by Stefan Ritt on Tue Oct 20 18:02:42 2020 
"submit not allowed" you typically get if there is a "guest menu" for read-only access and you are not logged in. I never tried the
elog program with PAM authentication, but you said that your turned authentication off. What I would do is to strip down your elogd.cfg to a very simple
form until the elog utility works, then figure out which configuration makes the trouble.
    icon2.gif   Re: From command line: "command Submit not allowed", posted by David Wallis on Tue Oct 20 18:26:26 2020 
Hmmm... I added "New" to the Guest menu list, and the button showed up for a guest user. But when I submitted the new ticket, I got the message Error:
Command "Submit" is not allowed for user ""




Stefan
    icon2.gif   Re: From command line: "command Submit not allowed", posted by Stefan Ritt on Tue Oct 20 18:40:05 2020 
Giving up. Send me your config file and I will debug it.

Stefan




David
    icon2.gif   Re: From command line: "command Submit not allowed", posted by David Wallis on Tue Oct 20 20:44:03 2020 
I've been able to work around this by completely turning off authentication, and adding New to the Guest menu list.

One additional question: since I'm uploading historical logbook entries, is it possible to set the entry creation date via the command line?
It seems that elogd is overriding the attribute "Date".
    icon2.gif   Re: Field values dependent on other selections, posted by Anthony Krishock on Wed Oct 21 02:26:32 2020 
Thanks for your suggestion.. Is it possible to, once 




Stefan
Ritt wrote:



Look in the manual under "conditional attributes"
    icon2.gif   Re: Field values dependent on other selections, posted by Anthony Krishock on Wed Oct 21 02:27:43 2020 Capture.JPG
Thanks for your suggestion. Right now, my log is configured as follows:

Options Eyepiece = Pentax{a}, TeleVue{b}, Meade{c}
{a} Options Pentax = 5mm, 20mm, 30mm
ELOG V3.1.5-3fb85fa6