spip web2py

70 views
Skip to first unread message

Laurent Lc

unread,
Oct 5, 2015, 5:25:00 AM10/5/15
to web2py-users
Hi,

i have a web site built with spip.
I'd like to create a form inside spip (ok i know how to do ;) , but the action would be http://localhost/app/contro/function.
Now i need to capture the args from the form and embeded the results in spip.
how to do that ?
thanks

Laurent

p a

unread,
Oct 5, 2015, 5:12:42 PM10/5/15
to web2py-users
If I understand correctly, you want to process the data in the form both in web2py and in spip.

1. You could do normal processing in spip, but add an event on form submit that sends an ajax query to a special function in the web2py server.

2. Maybe, just maybe, the spip code will not treat post and get variables differently, and if doesn't have any form security mecanism like web2py does, you can just navigate to a url your_domain.com/spip.php?article18&name=john&surname=doe

3. Otherwise you can use the wonderful python request library to interact with just about any website, spip or not.

Richard Vézina

unread,
Oct 6, 2015, 10:05:09 AM10/6/15
to web2py-users
You also, just use SPIP since it seems what you want to do and acces the SPIP DB from web2py for your needs instead of trying to populate form and web2py db from web2py form...

But I think we need further details about what you actually want to acheive.

Richard

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard Vézina

unread,
Oct 6, 2015, 10:05:41 AM10/6/15
to web2py-users
On parle français ici si tu as de la difficulté avec l'anglais...

:D

Richard
Reply all
Reply to author
Forward
0 new messages