Debian Squeeze support

* debian/control: remove python-celementtree dependency
 * debian/wcs-au-quotidien.init: modify option extra for squeeze
 * extra/modules/__init__.py: remove ptl compilation
 * extra/modules/pyatom/pyatom.py: fix assert syntax
This commit is contained in:
Jérôme Schneider 2011-12-15 13:34:35 +00:00
parent 1ee57f7bc9
commit ac94988a66
5 changed files with 14 additions and 17 deletions

6
debian/changelog vendored
View File

@ -1,5 +1,5 @@
wcs-au-quotidien (1.0.0-1) stable; urgency=low
wcs-au-quotidien (1.9-0.20111215.4) squeeze; urgency=low
* Initial package.
* Initial release for squeeze
-- Damien Laniel <dlaniel@entrouvert.com> Wed, 03 Sep 2008 15:48:49 +0200
-- Jérôme Schneider <jschneider@entrouvert.com> Thu, 15 Dec 2011 13:54:31 +0100

2
debian/control vendored
View File

@ -9,7 +9,7 @@ XS-Python-Version: current
Package: wcs-au-quotidien
Architecture: all
Depends: ${python:Depends}, wcs, python-vobject, python-celementtree
Depends: ${python:Depends}, wcs, python-vobject
Description: w.c.s. Form Server (Au Quotidien Extension)
.
XB-Python-Version: ${python:Versions}

View File

@ -1,6 +1,6 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: wcs
# Provides: wcs-auquotidien
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start: 2 3 4 5
@ -15,7 +15,9 @@ NAME=wcs-auquotidien
DAEMON=/usr/sbin/wcsctl
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
OPTIONS="--extra /usr/share/python-support/wcs-au-quotidien/extra-wcs-au-quotidien/"
PYTHON_VERSION=`/usr/bin/env python -c \
"import sys; print '%d.%d' % (sys.version_info[0], sys.version_info[1])"`
OPTIONS="--extra /usr/lib/pymodules/python$PYTHON_VERSION/extra-wcs-au-quotidien/"
WCS_USER=wcs-au-quotidien
WCS_GROUP=wcs-au-quotidien

View File

@ -1,5 +0,0 @@
try:
from quixote.ptl import compile_package
compile_package(__path__)
except ImportError:
pass

View File

@ -414,7 +414,7 @@ class Comment(DocItem,ElementItem):
s = "%s%s%s%s" % (tfc.s_indent(), "<!-- ", self.text, " -->")
return s
assert(False, "not possible to reach this line.")
assert False, "not possible to reach this line."
def __nonzero__(self):
# Returns True if there is any comment text.
@ -456,7 +456,7 @@ class PI(DocItem):
(tfc.s_indent(), "<?", self.keyword, self.text, "?>")
return s
assert(False, "not possible to reach this line.")
assert False, "not possible to reach this line."
def __nonzero__(self):
# Returns True if there is any keyword.
@ -495,7 +495,7 @@ class MarkupDecl(DocItem):
(tfc.s_indent(), "<!", self.keyword, self.text, ">")
return s
assert(False, "not possible to reach this line.")
assert False, "not possible to reach this line."
def __nonzero__(self):
# Returns True if there is any keyword.
@ -884,7 +884,7 @@ class Nest(ElementItem):
else:
return ""
assert(False, "not possible to reach this line.")
assert False, "not possible to reach this line."
return ""
def s_tree(self):
@ -983,7 +983,7 @@ class Element(NestElement,TextElement):
return TextElement.s_contents(self, tfc)
else:
return ""
assert(False, "not possible to reach this line.")
assert False, "not possible to reach this line."
def s_tree(self):
lst = []
@ -1003,7 +1003,7 @@ class Element(NestElement,TextElement):
tfc = TFC(level)
s = "%2d) %s %s" % (level, self.s_name(), "empty Element...")
return s
assert(False, "not possible to reach this line.")
assert False, "not possible to reach this line."