fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More Py3 compatibility fixes.
[wolnelektury.git]
/
src
/
oai
/
handlers.py
diff --git
a/src/oai/handlers.py
b/src/oai/handlers.py
index
6fbcd42
..
779406d
100644
(file)
--- a/
src/oai/handlers.py
+++ b/
src/oai/handlers.py
@@
-56,7
+56,6
@@
def nsdcterms(name):
return '{%s}%s' % (NS_DCTERMS, name)
return '{%s}%s' % (NS_DCTERMS, name)
-# WTF
class Catalogue(common.ResumptionOAIPMH):
TAG_CATEGORIES = ['author', 'epoch', 'kind', 'genre']
class Catalogue(common.ResumptionOAIPMH):
TAG_CATEGORIES = ['author', 'epoch', 'kind', 'genre']
@@
-117,7
+116,7
@@
class Catalogue(common.ResumptionOAIPMH):
def identify(self, **kw):
ident = common.Identify(
'Wolne Lektury', # generate
def identify(self, **kw):
ident = common.Identify(
'Wolne Lektury', # generate
- '%s/oaipmh' %
unicode
(WL_BASE), # generate
+ '%s/oaipmh' %
str
(WL_BASE), # generate
'2.0', # version
[m[1] for m in settings.MANAGERS], # adminEmails
make_time_naive(self.earliest_datestamp), # earliest datestamp of any change
'2.0', # version
[m[1] for m in settings.MANAGERS], # adminEmails
make_time_naive(self.earliest_datestamp), # earliest datestamp of any change