fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not ignore unexpected tags in <aktywnosc>
[librarian.git]
/
librarian
/
__init__.py
diff --git
a/librarian/__init__.py
b/librarian/__init__.py
index
bf41c7a
..
215cacb
100644
(file)
--- a/
librarian/__init__.py
+++ b/
librarian/__init__.py
@@
-80,7
+80,7
@@
class WLURI(object):
slug = None
example = 'http://edukacjamedialna.edu.pl/'
slug = None
example = 'http://edukacjamedialna.edu.pl/'
- _re_wl_uri = re.compile(r'http://(www\.)?edukacjamedialna.edu.pl/'
+ _re_wl_uri = re.compile(r'http://(www\.)?edukacjamedialna.edu.pl/
(lekcje/)?
'
'(?P<slug>[-a-z0-9]+)/?$')
def __init__(self, uri):
'(?P<slug>[-a-z0-9]+)/?$')
def __init__(self, uri):
@@
-142,7
+142,7
@@
class DirDocProvider(DocProvider):
def by_slug(self, slug):
fname = slug + '.xml'
def by_slug(self, slug):
fname = slug + '.xml'
- return
open
(os.path.join(self.dir, fname))
+ return
IOFile.from_filename
(os.path.join(self.dir, fname))
import lxml.etree as etree
import lxml.etree as etree