Bug #221 - GetMasterPages() returns empty list
Product:PageStream 5.0.4.11 (All Platforms)Reported By:Tim Doty
Severity:NormalAssigned To:Deron Kazmaier
Priority:Average sign in to watch (1 is watching)
Status:Works for MeReported:2008-03-04 17:08:53
Category:ScriptingUpdated:2008-03-04 17:08:53
Summary:GetMasterPages() returns empty list
Keywords:script masterpage
Attached Files:No files attached.
 Sign In to add a file.

GetMasterPages() returns an empty list when the current page is in a chapter or subchapter
Code:

>>> print GetMasterPages('stem')
{'.error': 1, '.result': 1, 'stem': ['Default Master Page']}
>>> Display('page', ':New Chapter~1')
>>> print GetMasterPages('stem')
{'.error': 1, '.result': 0, 'stem': []}

Deron Kazmaier wrote...2008-03-08 15:54:16

Since master pages can be created at the document level and chapter/subchapter level, this call is correctly returning the local level list. It appears to be correctly documented in this regards. If additional documentation or options would help just reopen this.


[Status updated to 'Works for Me' on Sat, 08 Mar 2008 15:54:16 -0500]

Add a Comment
Sign in to add a comment.

Bug #221 - GetMasterPages() returns empty list by Tim Doty   script masterpage
  created:2008-03-04 17:08:53   last updated:2008-03-04 17:08:53
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.


sign in to add a bug