Menu

#521 Retrieve / edit the section

open
nobody
None
5
2011-07-15
2011-07-15
lankier
No

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&group_id=93107 )

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)

Discussion

  • lankier

    lankier - 2011-07-15
     
  • Bináris

    Bináris - 2011-07-15

    Great and important contribution, I support the fast acceptation! This feature has long been missing from Pywiki.

     
  • Merlijn S. van Deen

    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.

     
  • Merlijn S. van Deen

    Housekeeper's note: the patch applies cleanly to r10035 (with some fuzz).

     
  • mpaa

    mpaa - 2012-11-17

    It is a useful one. Was looking for it recently.
    Any plans for this?

     
  • Nobody/Anonymous

    Have you ever thought about adding a little bit more than just your articles? I mean, what you say is important and everything. Nevertheless think of if you added some great visuals or video clips to give your posts more, "pop"! Your content is excellent but with images and clips, this site could definitely be one of the very best in its niche. Good blog!
    cheap north face http://mfvfhwmjxm.yep.com

     

Log in to post a comment.