Projet

Général

Profil

« Précédent | Suivant » 

Révision ac94988a

Ajouté par Jérôme Schneider il y a plus de 12 ans

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

Voir les différences:

debian/changelog
1
wcs-au-quotidien (1.0.0-1) stable; urgency=low
1
wcs-au-quotidien (1.9-0.20111215.4) squeeze; urgency=low
2 2

  
3
  * Initial package.
3
  * Initial release for squeeze
4 4

  
5
 -- Damien Laniel <dlaniel@entrouvert.com>  Wed, 03 Sep 2008 15:48:49 +0200
5
 -- Jérôme Schneider <jschneider@entrouvert.com>  Thu, 15 Dec 2011 13:54:31 +0100
debian/control
9 9

  
10 10
Package: wcs-au-quotidien
11 11
Architecture: all
12
Depends: ${python:Depends}, wcs, python-vobject, python-celementtree
12
Depends: ${python:Depends}, wcs, python-vobject
13 13
Description: w.c.s. Form Server (Au Quotidien Extension)
14 14
 .
15 15
XB-Python-Version: ${python:Versions}
debian/wcs-au-quotidien.init
1 1
#! /bin/sh
2 2
### BEGIN INIT INFO
3
# Provides:          wcs
3
# Provides:          wcs-auquotidien
4 4
# Required-Start:    $local_fs $network
5 5
# Required-Stop:     $local_fs $network
6 6
# Default-Start:     2 3 4 5
......
15 15
DAEMON=/usr/sbin/wcsctl
16 16
PIDFILE=/var/run/$NAME.pid
17 17
SCRIPTNAME=/etc/init.d/$NAME
18
OPTIONS="--extra /usr/share/python-support/wcs-au-quotidien/extra-wcs-au-quotidien/"
18
PYTHON_VERSION=`/usr/bin/env python -c \
19
    "import sys; print '%d.%d' % (sys.version_info[0], sys.version_info[1])"`
20
OPTIONS="--extra /usr/lib/pymodules/python$PYTHON_VERSION/extra-wcs-au-quotidien/"
19 21
WCS_USER=wcs-au-quotidien
20 22
WCS_GROUP=wcs-au-quotidien
21 23

  
extra/modules/__init__.py
1
try:
2
    from quixote.ptl import compile_package
3
    compile_package(__path__)
4
except ImportError:
5
    pass
extra/modules/pyatom/pyatom.py
414 414
				s = "%s%s%s%s" % (tfc.s_indent(), "<!-- ", self.text, " -->")
415 415
				return s
416 416

  
417
		assert(False, "not possible to reach this line.")
417
		assert False, "not possible to reach this line."
418 418

  
419 419
	def __nonzero__(self):
420 420
		# Returns True if there is any comment text.
......
456 456
						(tfc.s_indent(), "<?", self.keyword, self.text, "?>")
457 457
				return s
458 458

  
459
		assert(False, "not possible to reach this line.")
459
		assert False, "not possible to reach this line."
460 460

  
461 461
	def __nonzero__(self):
462 462
		# Returns True if there is any keyword.
......
495 495
						(tfc.s_indent(), "<!", self.keyword, self.text, ">")
496 496
				return s
497 497

  
498
		assert(False, "not possible to reach this line.")
498
		assert False, "not possible to reach this line."
499 499

  
500 500
	def __nonzero__(self):
501 501
		# Returns True if there is any keyword.
......
884 884
		else:
885 885
			return ""
886 886

  
887
		assert(False, "not possible to reach this line.")
887
		assert False, "not possible to reach this line."
888 888
		return ""
889 889

  
890 890
	def s_tree(self):
......
983 983
			return TextElement.s_contents(self, tfc)
984 984
		else:
985 985
			return ""
986
		assert(False, "not possible to reach this line.")
986
		assert False, "not possible to reach this line."
987 987

  
988 988
	def s_tree(self):
989 989
		lst = []
......
1003 1003
			tfc = TFC(level)
1004 1004
			s = "%2d) %s %s" % (level, self.s_name(), "empty Element...")
1005 1005
			return s
1006
		assert(False, "not possible to reach this line.")
1006
		assert False, "not possible to reach this line."
1007 1007

  
1008 1008

  
1009 1009

  

Formats disponibles : Unified diff