~flormayer/loggerhead/path

« back to all changes in this revision

Viewing changes to loggerhead/controllers/inventory_ui.py

  • Committer: Florian Mayer
  • Date: 2008-07-02 19:40:08 UTC
  • Revision ID: flormayer@aim.com-20080702194008-c511bjvs7ndpxzc0
Replaced posixpath with os.path to provide cross-platform compatibility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#
19
19
 
20
20
import logging
21
 
import posixpath
 
21
import os.path
22
22
 
23
23
from paste.httpexceptions import HTTPServerError
24
24
 
31
31
def dirname(path):
32
32
    while path.endswith('/'):
33
33
        path = path[:-1]
34
 
    path = posixpath.dirname(path)
 
34
    path = os.path.dirname(path)
35
35
    return path
36
36
 
37
37
 
86
86
            'updir_file_id': updir_file_id,
87
87
            'filelist': h.get_filelist(inv, file_id, sort_type),
88
88
            'history': h,
89
 
            'posixpath': posixpath,
 
89
            'posixpath': os.path,
90
90
            'navigation': navigation,
91
91
            'url': self._branch.context_url,
92
92
            'start_revid': start_revid,