# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import datetime
-
-from webob import Response, exc
-import wtforms
-from pymongo import DESCENDING
-from mongokit import ObjectId
-from mediagoblin import models
-import gettext
+from webob import Response
+from mediagoblin.db.util import DESCENDING
def root_view(request):
media_entries = request.db.MediaEntry.find(