Clean up debug info
authorArt Rhyno <art632000@yahoo.ca>
Wed, 9 Apr 2014 00:28:27 +0000 (20:28 -0400)
committerArt Rhyno <art632000@yahoo.ca>
Wed, 9 Apr 2014 00:28:27 +0000 (20:28 -0400)
This wouldn't harm anything but the print statements
are not needed. Also, adding missing my_test.xhtml
file though it is just a placeholder for now.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
conifer/syrup/views/sites.py
conifer/templates/my_test.xhtml [new file with mode: 0644]

index 423453c..9eac7fe 100644 (file)
@@ -86,16 +86,11 @@ def _add_or_edit_site(request, instance=None, basis=None):
         else:
             form.save()
             site = form.instance
-            print "site", site
             assert site.id
-            test_site = models.Site.objects.get(pk=3)
-            print "TEST_SITE", test_site
 
             if 'basis' in POST:
                 # We are duplicating a site. Copy all the items over into the new site.
                 source_site = models.Site.objects.get(pk=POST['basis'])
-                print "SOURCE_SITE", source_site
-                print "POST", POST['basis']
                 _copy_contents(request, source_site, site)
             if is_add:
                 # we need to configure permissions.
diff --git a/conifer/templates/my_test.xhtml b/conifer/templates/my_test.xhtml
new file mode 100644 (file)
index 0000000..9510695
--- /dev/null
@@ -0,0 +1,16 @@
+<?python
+title = _('My Test')
+?>
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:py="http://genshi.edgewall.org/">
+<xi:include href="master.xhtml"/>
+<xi:include href="components/timeframe.xhtml"/>
+<head>
+  <title>${title}</title>
+</head>
+<body>
+  <h1>${title}</h1>
+  <h3>test start</h3>
+</body>
+</html>