I think I just pushed the wrong link and replied to author, and not to
the mailing list. Sorry for that.

On Aug 3, 3:57 am, cd34 <[email protected]> wrote:

> > 1 Whats the correct syntax to get the visitors IP from a controller
> > methode for further use in the controller?
>
> in paster, the IP isn't passed in the environment:
>
>         import os
>         print os.environ['REMOTEHOST']
>
> in wsgi, the IP is passed in the environment:
>
>         import os
>         print os.environ['REMOTE_ADDR']
>
> With webob, I believe you can access the request object directly and
> get the remote IP address:
>
> http://turbogears.org/2.0/docs/modules/thirdparty/webob.html
>

Thank you for pointing me in the right direction.

> > 2 I want to make edit-forms in toscawidgets, whats the syntax to pre-
> > populate fields from database in toscawidget forms?
>
> http://turbogears.org/2.0/docs/main/Wiki20/wiki20.html

Sorry, but I can't find anything referring to ToscaWidgets on the page
where your link points to. I may overlooked it.

Plane html forms are not a problem, but ToscaWidgets has such nice
field validation including the error messaging. I know this is not a
ToscaWidgets-mailing list, but I figured that people here must know
how to handle ToscaWidgets.

Thanks in advance!

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

Reply via email to