Changeset 8eac0d in indico


Ignore:
Timestamp:
10/24/11 16:52:21 (19 months ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
99df95
Parents:
f86647
git-author:
Jeffrey Clark <jaclark@…> (10/04/11 17:42:11)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (10/24/11 16:52:21)
Message:

[IMP] add arguments to develop_config setup for specifying web permissions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    ree7b73 r8eac0d  
    233233class develop_indico(Command): 
    234234    description = "prepares the current directory for Indico development" 
    235     user_options = [] 
     235    user_options = [('www-uid=', None, "Set user for cache/log/db (typically apache user)"), 
     236                    ('www-gid=', None, "Set group for cache/log/db (typically apache group)")] 
    236237    boolean_options = [] 
     238 
     239    www_uid = None 
     240    www_gid = None 
    237241 
    238242    def initialize_options(self): 
     
    292296        if sys.platform == "linux2": 
    293297            # find the apache user/group 
    294             user, group = _findApacheUserGroup(None, None) 
     298            user, group = _findApacheUserGroup(self.www_uid, self.www_gid) 
    295299            _checkDirPermissions(directories, dbInstalledBySetupPy = directories['db'], accessuser = user, accessgroup = group) 
    296300 
Note: See TracChangeset for help on using the changeset viewer.