On Jun 2, 2:30 am, Marius Mårnes Mathiesen
<[email protected]> wrote:
> Phil,
> On 30. mai. 2009, at 23.41, prlawrence wrote:
>
> > I can create users, projects, and repos.  Trying to create a new team
> > does nothing, however.
> > ...
>
> I'm probably a bit slow, but I don't fully get the flow of what's
> happening:
> - when going to the new team form: is the form displayed?
Yes.

> - if so: do you get any html back after posting?
Yes.  I get back what appears to be the exact same form I just filled
out.

> The way it is intended to work is:
> - you select the form (the URL is /teams/new)
> - when you submit this form it either: 1) redirects to the newly
> created team or 2) re-renders the form, with error messages

It appears to re-render the form, but with no error messages.

> In HTTP speak:
>
> GET /teams/new          get the form
> POST /teams                     create the team
>
> Then the server responds with either:
>
> 200     There were errors, the form is re-rendered
> 302             Redirect to the new team page (eg. /+foo-team)

OK, Here is the HTTP log with commentary:

I'm sitting at the front page.  I click on the teams link:
nnn.nn.n.nn - - [02/Jun/2009:22:24:17 -0500] "GET /teams HTTP/1.1" 304
- "http://gitorious.domain.com/"; "Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"

Next, I click on the "Create a new team" link:
nnn.nn.n.nn - - [02/Jun/2009:22:25:16 -0500] "GET /teams/new HTTP/1.1"
304 - "http://gitorious.domain.com/teams"; "Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"

Now I enter 'barteam' as the team name, and "Team Bar" as the team
description.  I don't add a team image.  I click the create team
button:
nnn.nn.n.nn - - [02/Jun/2009:22:27:08 -0500] "POST /teams HTTP/1.1"
200 2695 "http://gitorious.domain.com/teams/new"; "Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316
Firefox/3.0.10"

I am not redirected to the new team page; the form remains the same!
In fact, here is the page source that results:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd";>
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Gitorious</title>
<link href="/stylesheets/base.css?1243526328" media="screen"
rel="stylesheet" type="text/css" /><script src="/javascripts/all.js?
1243526328" type="text/javascript"></script>
</head>

<body id="groups">
    <div id="header">
    <h1 id="logo">

      <a href="/"><img alt="Logo-cube-text" src="/images/logo-cube-
text.png?1243526327" /></a>    </h1>

    <ul id="menu">
              <li><a href="/projects">Projects</a></li>
        <li><a href="/teams">Teams</a></li>

      <li><a href="/admin/users">Administration</a></li>
    <li class="secondary"><a href="/~plawrence">~plawrence</a></li>

  <li class="secondary messages">
          <a href="/messages"><span>0</span></a>      </li>
  <li class="secondary subtle"><a href="/logout">Logout</a></li>
    </ul>



          </div>
    <div id="container" class="">
    <div id="content" class="">




<h1>Create a new team</h1>

<form action="/+barteam" class="edit_group" enctype="multipart/form-
data" id="edit_group_4" method="post"><div style="margin:0;padding:
0"><input name="_method" type="hidden" value="put" /></div>  <p>
    <label for="group_name">Team name</label>:<br />
    <input id="group_name" name="group[name]" size="30" type="text"
value="barteam" />  </p>

  <p>
    <label for="group_description">Team description</label>:<br />

    <textarea cols="40" id="group_description" name="group
[description]" rows="20">Team Bar</textarea>
  </p>
  <p class="hint">
    You can add more members to the team after you've created it  </p>

  <p>
    <label for="group_avatar">Team image/logo:</label> <br />

    <input id="group_avatar" name="group[avatar]" size="30"
type="file" />
  </p>


  <p><input id="group_submit" name="commit" type="submit"
value="Create team" /></p>
</form>    </div>
        <div id="footer">

<div class="powered-by">
  <a href="http://gitorious.org";><img alt="Powered_by_gitorious" src="/
images/powered_by_gitorious.png?1243526327" title="Powered by
Gitorious" /></a></div>
      <ul class="footer-links">

        <li><a href="/">Home</a> | </li>
        <li><a href="/about">About</a> | </li>
        <li><a href="/about/faq">FAQ</a> | </li>
        <li><a href="/contact">Contact</a> | </li>

        <li><a href="http://groups.google.com/group/
gitorious">Discussion group</a> | </li>
        <li><a href="http://blog.gitorious.org";>Blog</a></li>
      </ul>
            <div class="clear"></div>
    </div>
  </div>
</body>

</html>

Thanks for any tips,
Phil Lawrence

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gitorious?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to