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=336783…
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=310470…
)
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 11:06
Message:
Housekeeper's note: the patch applies cleanly to r10035 (with some fuzz).
----------------------------------------------------------------------
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=336783…