Commits

Anonymous committed 0f4fc52

missing files

  • Participants
  • Parent commits 1fcef12

Comments (0)

Files changed (11)

File build/Benoitc.js

File contents unchanged.

File build/build.py

File contents unchanged.

File build/full.cfg

File contents unchanged.

File build/license.txt

File contents unchanged.

File couchit.wsgi

 import os
 import sys
 
-sys.path.append('/var/www/vhosts/couchit')
+sys.path.append('/var/www/vhosts/couchit-v1.1')
 os.environ['PYTHON_EGG_CACHE'] = '/var/cache/.python-eggs'
 
 
     from couchit.application import CouchitApp
     return CouchitApp()
 
-application = make_couchit()
+application = make_couchit()

File couchit/_design/site/changes/map.js

File contents unchanged.

File couchit/settings.py

 import platform
 import os
 
-DEBUG = True
+DEBUG = False
 
 SERVER_NAME = 'couch.it'
     
-if platform.node() != "tombstone":
-    SERVER_NAME = 'couch.test:5000'
-
-
 # database
 SERVER_URI ='http://127.0.0.1:5984'
 DATABASE_NAME ='couchit'

File couchit/views.py

 import uuid
 import zipfile
 from StringIO import StringIO
-    
+import sys    
 
 from jinja2.filters import do_truncate, do_striptags, escape
 from werkzeug import redirect
 
 FORBIDDEN_PAGES = ['site', 'delete', 'edit', 'create', 'history', 'changes', 'sitemap.xml']
 
-FORBIDDEN_CNAME = ['mail', 'www', 'blog', 'news', 'media', 'upload', 'files', 'store']
+FORBIDDEN_CNAME = ['mail', 'www', 'blog', 'media', 'upload', 'files', 'store']
 
-re_page = re.compile(r"^[&@()?!.,;:\"'\-\/ \w]+$", re.U)
+re_page = re.compile(r"^[&@()?!.,;_:\"'\-\/ \w]+$", re.U)
 re_address = re.compile(r'^[-_\w]+$')
 
 def not_logged(f):
         if 'pagename' in kwargs:
             pagename = kwargs['pagename'] 
             if not re_page.match(pagename) and pagename is not None:
-                print "bbbb"
+                print pagename 
                 raise NotFound
             pagename = pagename.replace(" ", "_")
             kwargs['pagename'] = pagename

File couchit_app.py

+#!/usr/local/bin/python -v
+# -*- coding: utf-8 -*-
+# Copyright 2008 by Benoît Chesneau <benoitc@e-engura.com>
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+import os
+import sys
+
+sys.path.append('/var/www/vhosts/couchit-v1.1')
+os.environ['PYTHON_EGG_CACHE'] = '/var/cache/.python-eggs'
+
+
+def make_couchit():
+    from couchit.application import CouchitApp
+    return CouchitApp()
+
+application = make_couchit()

File static/css/screen.css

 blockquote:before, blockquote:after, q:before, q:after {content:"";}
 blockquote, q {quotes:"" "";}
 a img {border:none;}
-body, ul, ol, dl, h1, h2, h3, h4, h5, h6, td, th, caption, pre, p, blockquote, input, textarea {font-family:'Lucida Grande','Lucida Sans Unicode','Lucida Sans Regular',Tahoma,Verdana,sans-serif;font-size:12px;line-height:18px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;}
+body, ul, ol, dl, h1, h2, h3, h4, h5, h6, td, th, caption, pre, p, blockquote, input, textarea {font-family:'Lucida Grande','Lucida Sans Unicode','Lucida Sans Regular',Tahoma,Verdana,sans-serif;font-size:12px;line-height:18px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;text-align:left;}
 h1, h2, h3, h4, h5, h6 {margin:0;font-weight:bold;}
 h1 {font-size:36px;line-height:36px;padding-top:18px;padding-bottom:18px;}
 h2 {font-size:28px;line-height:36px;padding-top:9px;padding-bottom:9px;}

File static/js/src/colorpicker2.js

File contents unchanged.