use new under_score ox api, oxdjango->ox.django

This commit is contained in:
j 2012-09-08 17:47:49 +02:00
parent 43d02137c0
commit d27465f8c9
3 changed files with 5 additions and 6 deletions

View File

@ -3,8 +3,8 @@ from files.models import *
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response
from django.contrib.auth.decorators import login_required
from oxdjango.decorators import login_required_json
from oxdjango.shortcuts import get_object_or_404_json
from ox.django.decorators import login_required_json
from ox.django.shortcuts import get_object_or_404_json
try:
import json
except:

View File

@ -1,6 +1,6 @@
from django.db import models
from tagging.fields import TagField
from oxdjango.fields import DictField
from ox.django.fileds import DictField
from tagging.models import Tag
from django.contrib.auth.models import User, Group, Permission
import os
@ -12,7 +12,7 @@ from utils.add_file import hashFile, fileInfo, getFileType
from django.core.files.base import ContentFile
import operator
from django.db.models import Q
from ox.text import smartSplit
import ox
from sorl.thumbnail import get_thumbnail
#FIXME: The following two functions are ridiculous. please remove and clean up all references to them.
@ -26,7 +26,7 @@ def extFileName(filename):
def splitSearch(string):
ret = []
for s in smartSplit(string):
for s in ox.smart_split(string):
word = s.replace("'", "").replace('"', '')
ret.append(word)
return ret

View File

@ -1,5 +1,4 @@
# -e svn+http://code.djangoproject.com/svn/django/trunk/#egg=django
-e bzr+http://code.0xdb.org/python-oxdjango/#egg=python-oxdjango
-e svn+http://django-tagging.googlecode.com/svn/trunk/#egg=tagging
-e bzr+http://firefogg.org/dev/python-firefogg/#egg=python-firefogg
-e bzr+http://firefogg.org/dev/django_firefogg/#egg=django_firefogg