debug and version number 1.51.1 V01.51.01
authorcavaliet
Tue, 23 Jul 2013 17:25:30 +0200
changeset 1226 562b05b7cd95
parent 1225 ad6cdef72e20
child 1227 280fd0469003
debug and version number 1.51.1
src/ldt/ldt/__init__.py
src/ldt/ldt/ldt_utils/views/lignesdetemps.py
--- a/src/ldt/ldt/__init__.py	Tue Jul 23 13:20:16 2013 +0200
+++ b/src/ldt/ldt/__init__.py	Tue Jul 23 17:25:30 2013 +0200
@@ -1,6 +1,6 @@
 __all__ = ["VERSION", "get_version", "__version__"]
 
-VERSION = (1, 51, 0, "final", 0)
+VERSION = (1, 51, 1, "final", 0)
 
 
 def get_version():
--- a/src/ldt/ldt/ldt_utils/views/lignesdetemps.py	Tue Jul 23 13:20:16 2013 +0200
+++ b/src/ldt/ldt/ldt_utils/views/lignesdetemps.py	Tue Jul 23 17:25:30 2013 +0200
@@ -244,8 +244,11 @@
     
 def init(request, method, url):
     ldtgen = LdtUtils()
-
-    doc = ldtgen.generate_init({'id':url}, 'ldt.ldt_utils.views.lignesdetemps.' + method, None)    
+    if method in ["init","index","ldt"]:
+        param = "url"
+    else:
+        param = "id"
+    doc = ldtgen.generate_init({param:url}, 'ldt.ldt_utils.views.lignesdetemps.' + method, None)
 
     library = doc.xpath('/iri/files/library')[0]
     for c in Content.safe_objects.all().select_related("media_obj"):