~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/userservice/__init__.py

  • Committer: mattgiuca
  • Date: 2008-03-09 21:37:04 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:677
userservice: Fix error message text.
usrmgt-server: Major fix - missing create svn object.

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
    """
197
197
    if req.method != "POST":
198
198
        req.throw_error(req.HTTP_METHOD_NOT_ALLOWED,
199
 
        "Only POST requests are valid methods to create_user.")
 
199
        "Only POST requests are valid methods to do_checkout.")
200
200
 
201
201
    # Only give full powers if this user has CAP_UPDATEUSER
202
202
    fullpowers = req.user.hasCap(caps.CAP_UPDATEUSER)
282
282
    """
283
283
    if req.method != "POST":
284
284
        req.throw_error(req.HTTP_METHOD_NOT_ALLOWED,
285
 
        "Only POST requests are valid methods to create_user.")
 
285
        "Only POST requests are valid methods to update_user.")
286
286
 
287
287
    # Only give full powers if this user has CAP_UPDATEUSER
288
288
    fullpowers = req.user.hasCap(caps.CAP_UPDATEUSER)