Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
awstats
Commits
8336c7560fda
Commit
909e6e4e
authored
Jul 28, 2015
by
Samuel Trégouët
Browse files
[ccplugin] stop using dbapi
so that awstat is ready for cw 3.21
parent
50de23c7511b
Changes
4
Hide whitespace changes
Inline
Side-by-side
__pkginfo__.py
View file @
8336c756
...
...
@@ -13,7 +13,7 @@ author_email = 'contact@logilab.fr'
description
=
'cubicweb integrated awstats frontend'
web
=
'http://www.cubicweb.org/project/%s'
%
distname
__depends__
=
{
'cubicweb'
:
'>= 3.
19
.0'
,}
__depends__
=
{
'cubicweb'
:
'>= 3.
20
.0'
,}
__recommends__
=
{
'cubicweb-raphael'
:
None
,}
classifiers
=
[
...
...
ccplugin.py
View file @
8336c756
...
...
@@ -14,7 +14,7 @@ from logilab.common.shellutils import ProgressBar
from
cubicweb
import
cwconfig
,
UnknownEid
from
cubicweb
import
AuthenticationError
from
cubicweb.
dbapi
import
in_memory_repo_cnx
from
cubicweb.
server.utils
import
TasksManager
from
cubicweb.toolsutils
import
Command
from
cubicweb.cwctl
import
CWCTL
...
...
@@ -223,12 +223,13 @@ class UpdateWebstatsCommand(Command):
except
KeyError
:
login
,
pwd
=
manager_userpasswd
()
try
:
repo
,
cnx
=
in_memory_repo_cnx
(
config
,
login
=
login
,
password
=
pwd
)
repo
=
Repository
(
config
,
TasksManager
())
session
=
repo
.
new_session
(
login
,
password
=
pwd
)
cnx
=
session
.
new_cnx
()
except
AuthenticationError
:
print
'wrong user/password'
else
:
break
session
=
repo
.
_get_session
(
cnx
.
sessionid
)
# XXX keep reference on cnx otherwise cnx.__del__ will cause trouble
cnx
.
use_web_compatible_requests
(
session
.
vreg
.
config
[
'base-url'
])
return
cnx
,
session
...
...
cubicweb-awstats.spec
View file @
8336c756
...
...
@@ -20,7 +20,7 @@ BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python} %{python}-setuptools
Requires: cubicweb >= 3.
19
.0
Requires: cubicweb >= 3.
20
.0
%description
awstats component for the CubicWeb framework
...
...
debian/control
View file @
8336c756
...
...
@@ -10,7 +10,7 @@ Homepage: http://www.cubicweb.org/project/awstats
Package: cubicweb-awstats
Architecture: all
Depends: cubicweb-common (>= 3.
19
.0)
Depends: cubicweb-common (>= 3.
20
.0)
Recommends: cubicweb-raphael
Description: cubicweb integrated awstats frontend
CubicWeb is a semantic web application framework.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment