Changeset 2600 in main for trunk/docs


Ignore:
Timestamp:
08/30/13 14:18:25 (5 years ago)
Author:
pcosquer
Message:

docs: fix compilation with sphinx 1.2b1

Location:
trunk/docs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/en/conf.py

    r2114 r2600  
    3030global_settings.THUMBNAILS_DIR = "/tmp" 
    3131global_settings.THUMBNAILS_URL = "/media/thumbnails/" 
     32global_settings.DATABASES = { 
     33    'default': { 
     34        'ENGINE': 'django.db.backends.dummy', # or 'postgresql', 'mysql', 'sqlite3', 'oracle'. 
     35        'NAME': 'database_tests.db',               # Or path to database file if using sqlite3. 
     36    } 
     37} 
     38 
    3239settings.configure() 
     40# Django 1.5 introduces a NewBase class between Model and object 
     41# (this is done by six.with_metaclass) 
     42# we set base.NewBase so that it can be handled by inheritance_diagram 
     43import django.db.models.base as b 
     44class NewBase(object): 
     45    pass 
     46b.NewBase = b.Model.__base__ 
     47# default QuerySet.__repr__ executes a database query 
     48def safe_repr(self): 
     49    return "QuerySet<{0}>".format(type(self.model)) 
     50from django.db.models.query import QuerySet 
     51QuerySet.__repr__ = safe_repr 
    3352 
    3453from openPLM import get_version 
  • trunk/docs/fr/conf.py

    r2596 r2600  
    3030global_settings.THUMBNAILS_DIR = "/tmp" 
    3131global_settings.THUMBNAILS_URL = "/media/thumbnails/" 
     32global_settings.DATABASES = { 
     33    'default': { 
     34        'ENGINE': 'django.db.backends.dummy', # or 'postgresql', 'mysql', 'sqlite3', 'oracle'. 
     35        'NAME': 'database_tests.db',               # Or path to database file if using sqlite3. 
     36    } 
     37} 
     38 
    3239settings.configure() 
     40# Django 1.5 introduces a NewBase class between Model and object 
     41# (this is done by six.with_metaclass) 
     42# we set base.NewBase so that it can be handled by inheritance_diagram 
     43import django.db.models.base as b 
     44class NewBase(object): 
     45    pass 
     46b.NewBase = b.Model.__base__ 
     47# default QuerySet.__repr__ executes a database query 
     48def safe_repr(self): 
     49    return "QuerySet<{0}>".format(type(self.model)) 
     50from django.db.models.query import QuerySet 
     51QuerySet.__repr__ = safe_repr 
    3352 
    3453from openPLM import get_version 
  • trunk/docs/skel/conf.py

    r2114 r2600  
    3030global_settings.THUMBNAILS_DIR = "/tmp" 
    3131global_settings.THUMBNAILS_URL = "/media/thumbnails/" 
     32global_settings.DATABASES = { 
     33    'default': { 
     34        'ENGINE': 'django.db.backends.dummy', # or 'postgresql', 'mysql', 'sqlite3', 'oracle'. 
     35        'NAME': 'database_tests.db',               # Or path to database file if using sqlite3. 
     36    } 
     37} 
     38 
    3239settings.configure() 
     40# Django 1.5 introduces a NewBase class between Model and object 
     41# (this is done by six.with_metaclass) 
     42# we set base.NewBase so that it can be handled by inheritance_diagram 
     43import django.db.models.base as b 
     44class NewBase(object): 
     45    pass 
     46b.NewBase = b.Model.__base__ 
     47# default QuerySet.__repr__ executes a database query 
     48def safe_repr(self): 
     49    return "QuerySet<{0}>".format(type(self.model)) 
     50from django.db.models.query import QuerySet 
     51QuerySet.__repr__ = safe_repr 
    3352 
    3453from openPLM import get_version 
Note: See TracChangeset for help on using the changeset viewer.