Whitespace
This commit is contained in:
parent
c157557501
commit
13026702bd
4 changed files with 5 additions and 5 deletions
|
|
@ -126,7 +126,7 @@ class RecipePage(BasePage):
|
||||||
author = comtxt.split('par ')[-1].split('|')[0]
|
author = comtxt.split('par ')[-1].split('|')[0]
|
||||||
comtxt = comtxt.replace('par %s' % author, '')
|
comtxt = comtxt.replace('par %s' % author, '')
|
||||||
comments.append(Comment(text=comtxt, author=author))
|
comments.append(Comment(text=comtxt, author=author))
|
||||||
|
|
||||||
links_author = self.parser.select(self.document.getroot(), 'p.auteur a.couleur_membre')
|
links_author = self.parser.select(self.document.getroot(), 'p.auteur a.couleur_membre')
|
||||||
if len(links_author) > 0:
|
if len(links_author) > 0:
|
||||||
author = unicode(links_author[0].text.strip())
|
author = unicode(links_author[0].text.strip())
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ class RecipePage(BasePage):
|
||||||
num_instr = 1
|
num_instr = 1
|
||||||
for inst in l_divinst:
|
for inst in l_divinst:
|
||||||
instructions += '%s: %s\n' % (num_instr, inst.text_content())
|
instructions += '%s: %s\n' % (num_instr, inst.text_content())
|
||||||
num_instr += 1
|
num_instr += 1
|
||||||
|
|
||||||
prepmin = 0
|
prepmin = 0
|
||||||
emprep = self.parser.select(self.document.getroot(), 'span#prepHoursSpan em')
|
emprep = self.parser.select(self.document.getroot(), 'span#prepHoursSpan em')
|
||||||
|
|
|
||||||
|
|
@ -169,8 +169,8 @@ class VideoPage(BasePage):
|
||||||
# headers = req.info()
|
# headers = req.info()
|
||||||
# if headers.get('Content-Type', '') == 'text/html' and headers.get('Content-Length', '') == '2':
|
# if headers.get('Content-Type', '') == 'text/html' and headers.get('Content-Length', '') == '2':
|
||||||
# print 'BUG'
|
# print 'BUG'
|
||||||
|
|
||||||
|
|
||||||
#print req.code
|
#print req.code
|
||||||
except HTTPError, e:
|
except HTTPError, e:
|
||||||
#print e.getcode()
|
#print e.getcode()
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,7 @@ class Result(QFrame):
|
||||||
exec('object = backend.get_%s(id)' % (stype))
|
exec('object = backend.get_%s(id)' % (stype))
|
||||||
if object:
|
if object:
|
||||||
func_display = 'self.display' + stype[0].upper() + stype[1:]
|
func_display = 'self.display' + stype[0].upper() + stype[1:]
|
||||||
exec("self.doAction('Details of %s \"%%s\"' %% object.%s, %s, [object, backend])" %
|
exec("self.doAction('Details of %s \"%%s\"' %% object.%s, %s, [object, backend])" %
|
||||||
(stype, title_field, func_display))
|
(stype, title_field, func_display))
|
||||||
QApplication.restoreOverrideCursor()
|
QApplication.restoreOverrideCursor()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue