Corrections
authorCyril Robert <Cyril Robert cyrilrbt@gmail.com>
Thu, 29 Jul 2010 16:46:40 +0000 (12:46 -0400)
committerCyril Robert <Cyril Robert cyrilrbt@gmail.com>
Thu, 29 Jul 2010 16:46:40 +0000 (12:46 -0400)
MANIFEST.in [new file with mode: 0644]
auf_references_client/references_403.html [new file with mode: 0644]
auf_references_client/settings.py
auf_references_client/templates/references_403.html [deleted file]
setup.py

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644 (file)
index 0000000..8ae2477
--- /dev/null
@@ -0,0 +1 @@
+include auf_references_client/*.html
diff --git a/auf_references_client/references_403.html b/auf_references_client/references_403.html
new file mode 100644 (file)
index 0000000..e50eda4
--- /dev/null
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <title>Accès refusé</title>
+  </head>
+  <body>
+    <h1>Accès refusé</h1>
+    <h2>Vous n'avez pas le droit d'accéder à cette application</h2>
+    <a href="javascript:history.back();">Retour</a>
+  </body>
+</html>
index b16e842..9219d79 100644 (file)
@@ -2,7 +2,7 @@ import os
 
 # Pages d'erreur
 REFERENCES_TEMPLATE_DIRS = [
-    os.path.join(os.path.dirname(__file__), "templates"),
+    os.path.dirname(__file__),
 ]
 
 # ROA
diff --git a/auf_references_client/templates/references_403.html b/auf_references_client/templates/references_403.html
deleted file mode 100644 (file)
index e50eda4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
-  <head>
-    <title>Accès refusé</title>
-  </head>
-  <body>
-    <h1>Accès refusé</h1>
-    <h2>Vous n'avez pas le droit d'accéder à cette application</h2>
-    <a href="javascript:history.back();">Retour</a>
-  </body>
-</html>
index 9a498d1..ca99134 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,8 @@ if __name__ == '__main__':
         url='',
         license='GPL',
         packages = find_packages (),
-        include_package_data=True,
+        include_package_data = True,
+        package_data = {'': ['*.html',]},
         zip_safe=False,
         install_requires=['django', 'django-roa', 'auf_references_modeles', 
                           'python-memcached'],