search problem with double quote.. is this python 2.6 related... dont know

This commit is contained in:
Faik Uygur
2009-06-30 13:41:46 +00:00
parent ea850ccedb
commit e1305b8c1d
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -145,8 +145,8 @@ class InstallDB(lazydb.LazyDB):
return filter(lambda x: x.type == 'config', files.list)
def search_package(self, terms, lang=None):
resum = '<Summary xml:lang="(%s|en)">.*?%s.*?</Summary>'
redesc = '<Description xml:lang="(%s|en)">.*?%s.*?</Description>'
resum = '<Summary xml:lang=.(%s|en).>.*?%s.*?</Summary>'
redesc = '<Description xml:lang=.(%s|en).>.*?%s.*?</Description>'
if not lang:
lang = pisi.pxml.autoxml.LocalText.get_lang()
found = []
+2 -2
View File
@@ -85,8 +85,8 @@ class PackageDB(lazydb.LazyDB):
return pkg
def search_package(self, terms, lang=None, repo=None):
resum = '<Summary xml:lang="(%s|en)">.*?%s.*?</Summary>'
redesc = '<Description xml:lang="(%s|en)">.*?%s.*?</Description>'
resum = '<Summary xml:lang=.(%s|en).>.*?%s.*?</Summary>'
redesc = '<Description xml:lang=.(%s|en).>.*?%s.*?</Description>'
if not lang:
lang = pisi.pxml.autoxml.LocalText.get_lang()
found = []
+2 -2
View File
@@ -83,8 +83,8 @@ class SourceDB(lazydb.LazyDB):
return spec
def search_spec(self, terms, lang=None, repo=None):
resum = '<Summary xml:lang="(%s|en)">.*?%s.*?</Summary>'
redesc = '<Description xml:lang="(%s|en)">.*?%s.*?</Description>'
resum = '<Summary xml:lang=.(%s|en).>.*?%s.*?</Summary>'
redesc = '<Description xml:lang=.(%s|en).>.*?%s.*?</Description>'
if not lang:
lang = pisi.pxml.autoxml.LocalText.get_lang()
found = []