Mercurial > kallithea
diff rhodecode/model/db.py @ 1199:268fa0b6b2ef beta
Added os.sep in models for better win support
fixed safe unicode function to not use str as param, and skip execution on unicode
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 02 Apr 2011 21:19:16 +0200 |
parents | 523382549c45 |
children | 6832ef664673 |
line wrap: on
line diff
--- a/rhodecode/model/db.py Sat Apr 02 21:12:27 2011 +0200 +++ b/rhodecode/model/db.py Sat Apr 02 21:19:16 2011 +0200 @@ -24,6 +24,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. + +import os import logging import datetime from datetime import date @@ -212,7 +214,7 @@ @property def just_name(self): - return self.repo_name.split('/')[-1] + return self.repo_name.split(os.sep)[-1] @property def groups_with_parents(self):