Yes.

you can run

    python web2py.py -S youapp -M -R yourscript.py

and yourscript will run as is it were a controller and will see you
database connections and models.

Try

    python web2py.py -h

for help.

On Aug 5, 1:12 pm, gabriel <gabriel.sco...@sagem.com> wrote:
> Hi there,
>
> we're making some thoughts to develop an application based on web2py
> (a kind of tracking system). In this frame, we'd like to be able to
> query the database in a way that other applications can interact with
> it. For example, it would be nice to have the possibility to launch
> such a command line from a remote client:
>
> remotecmd -d database_path -u user -p password -r query -o output_file
> -f format
>
> where
> * database_path : path to reach the database
> * user and password : identification of the user, so the application
> can take into account its priviledges
> * query : the query to the database (expressed in the web2py format)
> or a file containing a function to run (for complex queries, where a
> simple SQL like request is not sufficient). The query would be either
> to update or just read the content of the db.
> * output_file and format (to be discussed) : where and how (csv,
> xml, ...) to display the result
>
> Is the framework web2py able to propose such a feature ?
>
> the remote client could be the Eclipse environment for example :
> useful for developper, heavy for manager that only like to have the
> webinterface
>
> many thanks
>
> gabriel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to