Re: How to Get the user from the current session.

2017-03-21 Thread Christian Hammond
You can perform some modifications to the code to turn off caching. You'll have to do this for file-based caching and all aspects of diff generation. Your Review Board server may become very slow if you have any real usage of it, depending on the load, the server, and the repository's response

Re: How to Get the user from the current session.

2017-03-21 Thread Vanaja Narayanaswamy
Also, is there a way to turn off caching and force reviewboard go to the repository every time? Thanks, Vanaja On Tue, Mar 21, 2017 at 3:44 PM, Vanaja Narayanaswamy wrote: > >>Files are also not fetched by that user's account. They're fetched using > the credentials set

Re: How to Get the user from the current session.

2017-03-21 Thread Vanaja Narayanaswamy
>>Files are also not fetched by that user's account. They're fetched using the credentials set up when configuring the >>repository. We know this. That's why we want to check the user's access first and then fetch. I thought the get_file method in myscm.py can first do the check for loggedin

Re: How to Get the user from the current session.

2017-03-21 Thread Vanaja Narayanaswamy
Hi, To make sure that user has read access(in our scm) on the file that is being diffed. Thanks, Vanaja On Tue, Mar 21, 2017 at 1:38 PM, Christian Hammond wrote: > Hi Vanaja, > > SCMTools don't have access to the current HTTP request or user, and we > can't provide

Re: How to Get the user from the current session.

2017-03-21 Thread Christian Hammond
Hi Vanaja, SCMTools don't have access to the current HTTP request or user, and we can't provide it. What do you need the user for? Christian -- Christian Hammond President/CEO of Beanbag Makers of Review Board On Tue, Mar 21, 2017

How to Get the user from the current session.

2017-03-21 Thread Vanaja Narayanaswamy
Hi, When the user is logged into the reviewboard via the browser, I would like to get user info(loginId) to pass it on to my scmtool. How do I achieve that in scmtools/myscm.py module? Thanks, Vanaja -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/