1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 02:10:24 +00:00

Modified wiki, slugified page link, ignored case when parsing page link.

This commit is contained in:
zhengxie
2013-04-04 19:57:52 +08:00
parent f523998daf
commit a1c526b7e7
6 changed files with 122 additions and 75 deletions

10
utils/repo.py Normal file
View File

@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
import seaserv
from seahub.utils import EMPTY_SHA1
def list_dir_by_path(cmmt, path):
if cmmt.root_id == EMPTY_SHA1:
return []
else:
return seaserv.list_dir_by_path(cmmt.id, path)