~moovida-developers/+junk/mediascanner

« back to all changes in this revision

Viewing changes to moovida/model/base.py

  • Committer: Fernando Casanova
  • Date: 2010-02-15 15:03:34 UTC
  • mfrom: (69.1.9 remove_redland)
  • Revision ID: fcasanova@fluendo.com-20100215150334-m8rxpnqu67s2j9n9
Removed Redland from the media scanner. No storage yet. Search functionality NOT WORKING.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
# Moovida - Home multimedia server
 
3
# Copyright (C) 2006-2009 Fluendo Embedded S.L. (www.fluendo.com).
 
4
# All rights reserved.
 
5
#
 
6
# This file is available under one of two license agreements.
 
7
#
 
8
# This file is licensed under the GPL version 3.
 
9
# See "LICENSE.GPL" in the root of this distribution including a special
 
10
# exception to use Moovida with Fluendo's plugins.
 
11
#
 
12
# The GPL part of Moovida is also available under a commercial licensing
 
13
# agreement from Fluendo.
 
14
# See "LICENSE.Moovida" in the root directory of this distribution package
 
15
# for details on that license.
 
16
#
 
17
# Author: Fernando Casanova <fcasanova@fluendo.com>
 
18
 
 
19
from moovida.utils.log import Loggable
 
20
 
 
21
class BaseModel(Loggable):
 
22
    """
 
23
    This model contains any type of information fetched by the data sources.
 
24
 
 
25
    This class can be specialized for handling the serialization and storage
 
26
    of the information contained by the object.
 
27
    """
 
28
 
 
29
    def __init__(self, **kw):
 
30
        super(BaseModel, self).__init__(**kw)
 
31
        self.type = None
 
32