ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
68119
|
Mon Sep 21 17:08:44 2015 |
| Edmund Hertle | edmund.hertle@kit.edu | Question | Windows | 2.7.3 | Re: Syntax for conditional list display |
Hey Terry,
I don't think this is possible, since in general you cannot define config settings in a way that it would only affect specific users. For example, you also cannot have different themes for different users (as stated here: https://midas.psi.ch/elogs/Forum/68112 )
Cheers
eddy
Terry L wrote: |
Good Morning,
I would like to limit the ability to edit certain attributes in an ELOG logbook, depending on the user who is logged in. I.e. if "guest" or a standard "login user" is logged in, I only want to allow the user to edit "attribute1" & "attribute2" of say, 5 attributes. However, if an Admin user or specific user, say "Terry" or "Bob" is logged in, I want to allow ALL 5 attributes to be editable. To expand on this, I may want to even limit the visibility of the attributes as well.
I've read though "Condition Attributes" section of the help page, but it is not clear to me how/if I can do this? Is that section even relevant to what I want to accomplish?
Can anyone provide some guidance?
Thank you for your time & help!
Sincerely,
Terry
|
|
Draft
|
Wed Sep 23 23:57:43 2015 |
| Stefano | stefano.colafranceschi@gmail.com | Question | Linux | 3.1.0 | elog from php |
Hi,
I need to run elog command in an online php script. The problem I see is that the script works from the command line but not from the browser. In the script I just use:
system(elog -h mypc -p 8080 -l bla -a Author=\'io\' -a Type=\' ..etc.etc
any suggestions? |
68124
|
Thu Sep 24 00:14:49 2015 |
| Stefano colafranceschi | Stefano.Colafranceschi@gmail.com | Question | Linux | 3.1.0 | Elog command not working properly |
<p>Hi,</p>
<p>I have a problem running elog command from php script. Basically in the php I call system("elog -h etc etc.. And from the php command line works but not in the browser apparently without errors (php apache logfile no problem), any suggestions?</p> |
68125
|
Fri Sep 25 19:10:45 2015 |
| Francois Cloutier | Francois@fcmail.ca | Question | Windows | Current | Submit to multiple logbooks simultaniously |
Good day,
My question is : Is it possible to submit to multiple logbooks simultaniously ?
I have 5 logbooks that could share common attributes, is there a way to acheive that without recreate a new entry in each of them ?
Thanks for your help. |
68126
|
Fri Sep 25 22:24:18 2015 |
| Edmund Hertle | edmund.hertle@kit.edu | Question | Windows | Current | Re: Submit to multiple logbooks simultaniously |
Hey,
You can use the elog command line tool and submit the same attributes to the 5 different logbooks by iterating over the logbook names executing something like this:
elog -l logbook1 -a "attr1=value1" -a "attr2=value2"
elog -l logbook2 -a "attr1=value1" -a "attr2=value2"
elog -l logbook3 -a "attr1=value1" -a "attr2=value2"
elog -l logbook4 -a "attr1=value1" -a "attr2=value2"
elog -l logbook5 -a "attr1=value1" -a "attr2=value2"
Another option would be having an additional common logbook, removing the commonly shared attributes from the other logbooks and add an attribute which links to this entry (using the "elog:logbook/ID" syntax as a value).
Cheers, eddy
Francois Cloutier wrote: |
Good day,
My question is : Is it possible to submit to multiple logbooks simultaniously ?
I have 5 logbooks that could share common attributes, is there a way to acheive that without recreate a new entry in each of them ?
Thanks for your help.
|
|
68127
|
Fri Sep 25 22:37:08 2015 |
| Edmund Hertle | edmund.hertle@kit.edu | Question | Linux | 3.1.0 | Re: Elog command not working properly |
> <p>Hi,</p>
>
> <p>I have a problem running elog command from php script. Basically in the php I call system("elog -h etc etc.. And from the php command line works but not in the browser apparently without errors (php apache
logfile no problem), any suggestions?</p>
Hey,
this sounds more like a PHP issue.
Which PHP version are you using?
Which webserver?
Which php function are you using: shell_exec() or exec()? Try looking at the return of exec()
Is the elog file set to the correct file permissions to be executed by the webserver?
Is the elog file in the PHP path or do you take care of defining the correct path?
eddy |
68128
|
Sat Sep 26 03:34:44 2015 |
| Stefano | stefano.colafranceschi@gmail.com | Question | Linux | 3.1.0 | Re: Elog command not working properly |
Yes it was a path issue PHP was not loading correctly environmental path
> > <p>Hi,</p>
> >
> > <p>I have a problem running elog command from php script. Basically in the php I call system("elog -h etc etc.. And from the php command line works but not in the browser apparently without errors (php apache
> logfile no problem), any suggestions?</p>
>
> Hey,
> this sounds more like a PHP issue.
> Which PHP version are you using?
> Which webserver?
> Which php function are you using: shell_exec() or exec()? Try looking at the return of exec()
> Is the elog file set to the correct file permissions to be executed by the webserver?
> Is the elog file in the PHP path or do you take care of defining the correct path?
>
>
> eddy |
68134
|
Tue Sep 29 17:15:07 2015 |
| Terry L | trflin@yahoo.com | Question | Windows | 2.7.3 | Re: Syntax for conditional list display |
Hi Eddy,
Thank you for your response. I had a feeling that was the case, but I had high hopes! :) The reason I would like this feature is because I am trying to use ELOG as a software anomaly tracking log, where any user can create an ELOG and fill out "category", "computer" etc, but only administrators can fill out the "status" & "assignee". If I am lucky, this will be an added feature in a future revision.
Thanks again,
-Terry
Edmund Hertle wrote: |
Hey Terry,
I don't think this is possible, since in general you cannot define config settings in a way that it would only affect specific users. For example, you also cannot have different themes for different users (as stated here: https://midas.psi.ch/elogs/Forum/68112 )
Cheers
eddy
Terry L wrote: |
Good Morning,
I would like to limit the ability to edit certain attributes in an ELOG logbook, depending on the user who is logged in. I.e. if "guest" or a standard "login user" is logged in, I only want to allow the user to edit "attribute1" & "attribute2" of say, 5 attributes. However, if an Admin user or specific user, say "Terry" or "Bob" is logged in, I want to allow ALL 5 attributes to be editable. To expand on this, I may want to even limit the visibility of the attributes as well.
I've read though "Condition Attributes" section of the help page, but it is not clear to me how/if I can do this? Is that section even relevant to what I want to accomplish?
Can anyone provide some guidance?
Thank you for your time & help!
Sincerely,
Terry
|
|
|