Protected Project
Moderators: chulett, rschirm, roy
Protected Project
when we protect or unprotect a project which variable or file will be updated in the server. Can anyone help me to know the name of the file and the path, so that instead of login to the administrator i can see the value in the file and know the protect or unprotected status of the project.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
That is in a header so I would think you might wrap it with a C/C++ program? but then you would have to understand the API and create an object reference and a bunch of other things - is there some reason you need to know this outside of looking in the administrator client?
Mike Hester
mhester@petra-ps.com
mhester@petra-ps.com
Ok thanks. I have to manually check whether all the projects are protected in the server. So i thought of writing a UNIX script by fetching this flag value so that it when i trigger the script it will let me know which projects are all protected. Thats the reason i thought of digging but didnt end up in finding a solution to it.
Is there anyother way to workout my idea?
Is there anyother way to workout my idea?
-
- Participant
- Posts: 527
- Joined: Thu Apr 19, 2007 1:25 am
- Location: Melbourne
-
- Participant
- Posts: 527
- Joined: Thu Apr 19, 2007 1:25 am
- Location: Melbourne
Once place that the project's status as protected or not is visible is in the UV.ACCOUNTS file, the following query should list all protected projects:
A BASIC routine to return 0 for unprotected and 1 for protected would be
Routine IsProtectected(ProjectName)
Code: Select all
LIST UV.ACCOUNT ID.SUP @ID WITH EVAL 'FIELD(NAME,"\",4)' = 46256
Routine IsProtectected(ProjectName)
Code: Select all
Ans = 0 ;** assume unprotected project
OPEN '','UV.ACCOUNT' TO UvAccountFilePtr ELSE CALL DSLogFatal('Unable to open UV.ACCOUNT file, error is "':STATUS():'".','')
READ UvAccountRecord FROM UvAccountFilePtr, ProjectName
THEN
IF FIELD(UvAccountRecord<7>,'\',4) = 46256 THEN Ans = 1
END
ELSE
CALL DSLogWarn('Project "':ProjectName:'" does not exist.','')
END
CLOSE UvAccountFilePtr
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Mark at least two projects as protected. Execute
the numeric values should be the same for the two or more protected projects and different for the non-protected ones. Is that the case?
Code: Select all
LIST UV.ACCOUNT ID.SUP @ID EVAL 'FIELD(NAME,"\",4)'
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
I was afraid of that - I'm currently on Windows and assume that the checksum is computed differently.
Unfortunately, that is the only way I know of getting the project status so the answer to your question is "No, one cannot get the protected/unprotected status"
Unfortunately, that is the only way I know of getting the project status so the answer to your question is "No, one cannot get the protected/unprotected status"
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>