WIPACrepo / file_catalog

Store file metadata information in a file catalog
MIT License
1 stars 4 forks source link

Add maximum number of results when querying the file list #8

Closed JadonKrys closed 8 years ago

JadonKrys commented 8 years ago

It is currently not any more in the code.

I would suggest adding a config file where one can specify such parameters in order to avoid the need to modify the actual code.

dsschult commented 8 years ago

For config files:

  1. ConfigParser
  2. json config. I like: https://github.com/WIPACrepo/iceprod/blob/master/iceprod/server/config.py We could break this out into a separate package if you want it.
JadonKrys commented 8 years ago

I think we should also add the list of mandatory fields to the config file. Better than hard code it.

JadonKrys commented 8 years ago

json config. I like: https://github.com/WIPACrepo/iceprod/blob/master/iceprod/server/config.py

I don't know if this is too much. Currently, we just have a couple of settings. I guess for now the ConfigParser is sufficient?!