forked from ScoDoc/DocScoDoc
désactive module Entreprises
This commit is contained in:
parent
ff9ab2b751
commit
d52d2b8565
@ -184,8 +184,9 @@ def sidebar_dept(context, REQUEST=None):
|
||||
'<a href="%(DeptIntranetURL)s" class="sidebar">%(DeptIntranetTitle)s</a> <br/>'
|
||||
% infos
|
||||
)
|
||||
H.append(
|
||||
"""<br/><a href="%(ScoURL)s/Entreprises" class="sidebar">Entreprises</a> <br/>"""
|
||||
% infos
|
||||
)
|
||||
# Entreprises pas encore supporté en ScoDoc8
|
||||
# H.append(
|
||||
# """<br/><a href="%(ScoURL)s/Entreprises" class="sidebar">Entreprises</a> <br/>"""
|
||||
# % infos
|
||||
# )
|
||||
return "\n".join(H)
|
||||
|
9
app/views/entreprises.py
Normal file → Executable file
9
app/views/entreprises.py
Normal file → Executable file
@ -32,7 +32,8 @@ Note: Code très ancien, porté de Zope/DTML, peu utilisable
|
||||
=> Voir si des départements utilisent encore ce module et envisager de le supprimer.
|
||||
|
||||
"""
|
||||
import urllib
|
||||
from __future__ import absolute_import
|
||||
import six.moves.urllib.request, six.moves.urllib.parse, six.moves.urllib.error
|
||||
import string
|
||||
import re
|
||||
import time
|
||||
@ -96,7 +97,7 @@ def sidebar(context, REQUEST):
|
||||
)
|
||||
|
||||
# --- entreprise selectionnée:
|
||||
if REQUEST.form.has_key("entreprise_id"):
|
||||
if "entreprise_id" in REQUEST.form:
|
||||
entreprise_id = REQUEST.form["entreprise_id"]
|
||||
E = sco_entreprises.do_entreprise_list(
|
||||
context, args={"entreprise_id": entreprise_id}
|
||||
@ -178,14 +179,14 @@ def index_html(
|
||||
if offset:
|
||||
webparams["offset"] = max((offset or 0) - limit, 0)
|
||||
prev_lnk = '<a class="stdlink" href="%s">précédentes</a>' % (
|
||||
REQUEST.URL0 + "?" + urllib.urlencode(webparams)
|
||||
REQUEST.URL0 + "?" + six.moves.urllib.parse.urlencode(webparams)
|
||||
)
|
||||
else:
|
||||
prev_lnk = ""
|
||||
if len(entreprises) >= limit:
|
||||
webparams["offset"] = (offset or 0) + limit
|
||||
next_lnk = '<a class="stdlink" href="%s">suivantes</a>' % (
|
||||
REQUEST.URL0 + "?" + urllib.urlencode(webparams)
|
||||
REQUEST.URL0 + "?" + six.moves.urllib.parse.urlencode(webparams)
|
||||
)
|
||||
else:
|
||||
next_lnk = ""
|
||||
|
Loading…
Reference in New Issue
Block a user