Patches item #3367839, was opened at 2011-07-15 03:11 Message generated for change (Comment added) made by valhallasw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3367839...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: lankier (lankier) Assigned to: Nobody/Anonymous (nobody) Summary: Retrieve / edit the section
Initial Comment: This patch adds new parameter 'section' to Page.get & Page.put. (See also feature requests https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3104703... )
Examples: add a new section: page.put('New section text', comment='New section header', section='new') edit the top section: text = page.get(section=0) page.put(text+'\n\n==New section==\nNew text', section=0)
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:03
Message: Is referring to sections by ID a good idea? Isn't it worth the extra query to get the section ID first? (by calling action=render). We currently 'support' sections by having a Page object with title "page title#section", and I think this is the sensible way to work with sections.
----------------------------------------------------------------------
Comment By: BinĂ¡ris (binbot) Date: 2011-07-15 11:32
Message: Great and important contribution, I support the fast acceptation! This feature has long been missing from Pywiki.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3367839...