Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify code in utility/parseArguments #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

simplify code in utility/parseArguments #15

wants to merge 2 commits into from

Conversation

sreeram-dev
Copy link

The code base has nested try catch and redundant code. I did not change anything drastically. Many clients may use 8000 port for their primary webservers. CloudCV can be a part of bigger setup. We should give users the choose on which port they want to run the server.

@sreeram-dev sreeram-dev changed the title simplify code, remove unnecessary exceptions and add server port as opti... simplify code, remove unnecessary try except and add server port as opti... Mar 4, 2015
@dexter1691
Copy link
Member

So the clients have to use 8000 port for the their primary webservers. The reason this nano - webserver is used is for OAuth 2.0 authentication. After the authentication is done on the web-browser, there is a redirect step for which I have to mention a fixed IP in the "Dropbox/Google" App setting. I have fixed it as localhost:8000.

Authentication with a python API by not giving away app's secret key is far from trivial and this is why we needed such a solution.

self.maxim = int(complete_data['maxim'])
self.data = complete_data.get('config')
self.maxim = int(complete_data.get('maxim'))
self.server_port = int(complete_data.get('server_port'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is 'exec' parameters? If you notice in config.json.example - there is a 'exec' parameter.

@sreeram-dev sreeram-dev changed the title simplify code, remove unnecessary try except and add server port as opti... simplify code in utility/parseArguments Mar 4, 2015
@sreeram-dev
Copy link
Author

@dexter1691 Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants