James,

You may be right, but I am very new to this and cannot go very far
without some more direction. I suspect the problem is my use of the
word 'place' and 'g_place' in too many places and especially in
the "self.request.get()"s below. I don't quite understand their
purpose especially with respect to the template_values concept (I am
piecing together code from a previous project for which a friend who
is now unavailable gave me code.) For example if under "def get
(self)"  below I change the first

"g_place = self.request.get('place') " to
"g_place = self.request.get('NOplace')"

there is no change in my results, so I cannot figure out the use of
the 'NOplace' parameter, and don't understand if it should be
different in the second usage of "g_place = self.request.get('place')
" under "def post(self)" [notice there is a def get(self) and a def
post(self) below] .

class AddPlace(webapp.RequestHandler):
    #creates blank template_values
    def get(self):
        g_place = self.request.get('place')
        user = users.get_current_user()
        param = 'add_place.html'
        path = os.path.join(os.path.dirname(__file__), param)
        template_values = dict(place=g_place)
        self.response.out.write(template.render(path,
template_values))
    #creates initial group attribute values
    def post(self):
        g_place = self.request.get('place')
        group= Group(key_name=g_place)

Then once I get the above sorted out, I don't understand how to get
the value of g_place into the output of the html via the POST. That
is, I am getting the value of "g_place" into the "iwform" <form>
variable successfully to show that value to the user in the html, but
cannot figure out how to send the same "g_place" value back to the
python script. I am really stuck on this and would appreciate more
help from anyone with the time and will.

Thank you,

Brian in Atlanta

On Jan 4, 10:41 pm, James Ashley <[email protected]> wrote:
> I'm not real clear where the various errors are happening, so I'm just
> guessing.
>
> Just based on what I'm seeing here, it looks like you're having
> javascript (client-side) issues.  Something about DTC?  Maybe it's a
> variable that isn't getting initialized?  Or maybe a constant that
> needs quotes around it?
>
> Just a guess, and I'm probably totally wrong.
>
> Good luck,
> James
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to