Changeset 72:64c783e9086b in repositorymanagerplugin


Ignore:
Timestamp:
15.05.2015 14:30:42 (7 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Various smaller corrections

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • repo_mgr/api.py

    r70 r72  
    365365 
    366366    def _adjust_modes(self, directory): 
    367         """Set modes 750 and 640 for directories and files.""" 
     367        """Set modes 770 and 660 for directories and files.""" 
    368368        try: 
    369369            os.chmod(directory, stat.S_IRWXU | stat.S_IRWXG) 
  • repo_mgr/pullrequests/web_ui.py

    r58 r72  
    204204 
    205205    def get_htdocs_dirs(self): 
    206         from pkg_resources import resource_filename 
    207         return [('hw', resource_filename(__name__, 'htdocs'))] 
     206        return [] 
    208207 
    209208    ### ITicketManipulator methods 
  • repo_mgr/templates/repository_remove.html

    r13 r72  
    55 
    66  <form class="addnew" method="post"> 
    7     <input type="hidden" name="referer" value="$referer" /> 
    87    <fieldset> 
    9       <legend>Confirm Removal of Repository $repository.reponame</legend> 
     8      <legend>Confirm removal of repository $repository.reponame</legend> 
    109      <label><input type="checkbox" name="delete" /> Delete content from disk (cannot be undone)</label> 
    1110      <input type="submit" name="confirm" value="${_('Remove Repository')}" /> 
  • repo_mgr/web_ui.py

    r71 r72  
    2525    """The `RepositoryManager`'s user interface.""" 
    2626 
    27     implements(IPermissionRequestor, IRequestHandler, IRequestFilter, 
     27    implements(IPermissionRequestor, IRequestFilter, IRequestHandler, 
    2828               ITemplateProvider) 
    2929 
     
    8181                'restrict_forks': restrict, 
    8282                'possible_owners': self._get_possible_owners(req), 
    83                 'referer': req.args.get('referer', req.get_header('Referer')), 
    8483                'unicode_to_base64': unicode_to_base64} 
    8584 
     
    107106 
    108107    def get_htdocs_dirs(self): 
    109         from pkg_resources import resource_filename 
    110         return [('hw', resource_filename(__name__, 'htdocs'))] 
     108        return [] 
    111109 
    112110    ### Private methods 
     
    120118        req.perm.require('REPOSITORY_CREATE') 
    121119 
    122         rm = RepositoryManager(self.env); 
     120        rm = RepositoryManager(self.env) 
    123121 
    124122        repository = self._get_repository_data_from_request(req, 'create_') 
     
    143141    def _process_fork_request(self, req, data): 
    144142        """Fork an existing repository.""" 
    145         rm = RepositoryManager(self.env); 
     143        rm = RepositoryManager(self.env) 
    146144        origin_name = req.args.get('local_origin', req.args.get('reponame')) 
    147145 
  • setup.py

    r60 r72  
    1919    package_data={ 
    2020        'repo_mgr': [ 
    21             'templates/*', 
    22             'pullrequests/templates/*', 
    23             'htdocs/css/*' 
     21            'templates/*.html', 
     22            'pullrequests/templates/*.html', 
    2423            ] 
    2524        }, 
Note: See TracChangeset for help on using the changeset viewer.