klmr92 / uguu

Automatically exported from code.google.com/p/uguu
Other
0 stars 1 forks source link

Move all the valuable settings and general stuff to the separate python package #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are several settings (hardcoded now) which search server
administrator could want to change right after installing. Keeping all them
at single place is better then scattering across many files. So, why don't
gather all them into a package& Probably, particular settings should be
placed in different files inside this package and the package should be
located outside of standard python include paths (so, all the parts will
need to be configured at installing or the relative location should be
fixed; the former looks like more secure).

Original issue reported on code.google.com by radist...@gmail.com on 25 Jan 2010 at 9:57

GoogleCodeExporter commented 9 years ago
It msut be possible to do so for 'webuguu' and 'bin' modules separately, but I 
don't
like an idea of mixing them even if they share same settings.

Even for database account splitting settings might be a good idea: since webuguu
doesn't write into tables a paranoid administrator can use read-only account for
webuguu and writable one for scanner/pinger

As for your beloved filename extensions, first, relations between tables in 
webuguu
and scanner are strightforward (latter rely on former). Second, conditions 
table use
database structure and changing them require robust understanding what you are 
doing.
So it should not be a problem to dig somewhere deep in scripts. And without
specifying conditions it is absurd to change types table in webuguu.

Original comment by ruslan.savchenko on 25 Jan 2010 at 11:02

GoogleCodeExporter commented 9 years ago
I hope, python allows to load the separate files from package. In that case, we 
could
place settings into different files.
So package may look like:
uguuconfig
|- __init__.py (owner root, group root, chmod 555)
|- bin.py (owner root, group uguu, chmod 750)
'- webuguu.py (owner root, group httpd, chmod 750)

Original comment by radist...@gmail.com on 25 Jan 2010 at 5:07

GoogleCodeExporter commented 9 years ago
close?

Original comment by ruslan.savchenko on 2 Feb 2010 at 1:14

GoogleCodeExporter commented 9 years ago
Yes, we placed the starting point, latter is to keep further newly adding 
significant
setting at general configuration files.

Original comment by radist...@gmail.com on 2 Feb 2010 at 1:02