Mpaa created this task.
Mpaa added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  When page templates are already cached, content parameter has no effect.
  
  page._templates might be created also when page is preloaded, with 
templates=True.
  
  **Steps to replicate the issue** (include links if applicable):
  
    >>> site = pywikibot.Site('en', 'wikisource')
    >>> page = pywikibot.Page(site, 'Main Page')
    
    >>> tt = page.templates()
    >>> vars(tt[0])
    {'_link': pywikibot.page.Link('Kutenai Tales.djvu/101', APISite("en", 
"wikisource")),
     '_revisions': {},
     '_pageid': 0,
     '_contentmodel': 'proofread-page',
     '_isredir': False,
     '_applicable_protections': {'create'},
     '_protection': {}}
    
    >>> tt = page.templates(content=True)
    >>> vars(tt[0])
    {'_link': pywikibot.page.Link('Kutenai Tales.djvu/101', APISite("en", 
"wikisource")),
     '_revisions': {},
     '_pageid': 0,
     '_contentmodel': 'proofread-page',
     '_isredir': False,
     '_applicable_protections': {'create'},
     '_protection': {}}
  
  **What happens?**:
  Content is not  loaded.
  
  **What should have happened instead?**:
  Content should be loaded.
  
  **Software version** (skip for WMF-hosted wikis like Wikipedia):
  pywikibot-core.git (9be8e5b 
<https://phabricator.wikimedia.org/rPWBC9be8e5b53290ef70e7f8f40fbdf89fdfa53992f2>,
 g16828, 2022/07/24, 12:35:36, OUTDATED)

TASK DETAIL
  https://phabricator.wikimedia.org/T313736

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mpaa
Cc: Aklapper, pywikibot-bugs-list, Mpaa, PotsdamLamb, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to