Opened 8 years ago

Last modified 5 years ago

#2094 enhancement new

URLPath should provide an API for manipulating query arguments

Reported by: dreid Owned by: dreid
Priority: normal Milestone:
Component: core Keywords:
Cc: oubiwann, dreid Branch:
Author: Launchpad Bug:

Description

For URLPath to make sense in #1569 applications need to be able to easily get specific query arguments and for the client to modify them.

Change History (2)

comment:1 Changed 8 years ago by oubiwann

  • Cc oubiwann dreid added

What is the preferred means of getting the specific query arguements? I.e., How does IRequest want to use this? In the second class of this recipe:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473864

a dictionary (and then some) is used.

There is already a query attribute on URLPath. Would you like to add a method such as URLPath.parseQuery() that instantiates a new class, URLQuery, parses it, and returns a dict? Or would you like a new attribute, maybe .parsedQuery that is a dict?

comment:2 Changed 5 years ago by glyph

  • Owner changed from glyph to dreid

I really want nevow.url, or something like it, to be in twisted.web somewhere. This strikes me as potentially redundant with that.

Note: See TracTickets for help on using tickets.