Reply
Thread Tools
maya's Avatar
Posts: 141 | Thanked: 5 times | Joined on Dec 2009 @ Brasil
#1
Well, I do not know where to post about this subject, if I'm wrong, please move to the most appropriate.

I have a site with data system in php / mysql and I have a Nokia N900 (with Maemo 5 OS, natively supports Python)
.
I need to create a Python application for N900 containing a form 'offline' to include (and store) data and / photos for future upload to the database of this site. Ideal also have a version for offline query data.
.
The model form is already in php, and the lookup table. The work is to adapt this form Python to store the data offline and upload to the system mysql site.

Unfortunately I have no knowledge of programming (Python, Linux) and ask for help to develop this application.

I believe that an application in Python will be more stable and reliable than using apache or lighttpd, right?

Thanks!!
 
maya's Avatar
Posts: 141 | Thanked: 5 times | Joined on Dec 2009 @ Brasil
#2
ok, if don't is python, maybe in other format. (html, C+, ??)
I need send the complete formulary, but hours after, but how to store this informations?
I thought of something like the format of MaStory or even a simple html page which then connects to my site (php / mysql)
Suggestions?
thanks

Last edited by maya; 2010-01-29 at 18:12.
 
maya's Avatar
Posts: 141 | Thanked: 5 times | Joined on Dec 2009 @ Brasil
#3
For developers of Python.
I found this blog which explains how to work the codes wordpy an older version. http://www.learningpython.com/2006/0...ython-library/
With this information it would be possible to build a form offline, with db to connect and send to the site php / mysql?
Or much more complicated than that?
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#4
Theoretically possible. You can create whatever interface you want, store it on a local db file using SQLite or the like.. then create or use a module for communicating and POSTing data to a website. PyGTK should work fine on the N900.. I haven't used an sqlite db in python on the N900 yet to know if it works right or not.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#5
The way I'd do it would be to create a simple GTK/Hildon interface (see http://wiki.maemo.org/PyMaemo for some docs), and then use urllib2 to make the POST call to a PHP script on the server.
 
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#6
You may be interested in fpp's series of blog posts on his coding in Python using a lightweight web server for offline use:

http://fredp.lautre.net/blog/
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
maya's Avatar
Posts: 141 | Thanked: 5 times | Joined on Dec 2009 @ Brasil
#7
Originally Posted by Jaffa View Post
You may be interested in fpp's series of blog posts on his coding in Python using a lightweight web server for offline use:

http://fredp.lautre.net/blog/
Hum, but what are fpp's series?
 
maya's Avatar
Posts: 141 | Thanked: 5 times | Joined on Dec 2009 @ Brasil
#8
Originally Posted by Slocan View Post
The way I'd do it would be to create a simple GTK/Hildon interface (see http://wiki.maemo.org/PyMaemo for some docs), and then use urllib2 to make the POST call to a PHP script on the server.

The next idea is build a table with filter options for such data.
I do not know if in db (some sql) or XML. What would be faster?
 
maya's Avatar
Posts: 141 | Thanked: 5 times | Joined on Dec 2009 @ Brasil
#9
Originally Posted by fatalsaint View Post
Theoretically possible. You can create whatever interface you want, store it on a local db file using SQLite or the like.. then create or use a module for communicating and POSTing data to a website. PyGTK should work fine on the N900.. I haven't used an sqlite db in python on the N900 yet to know if it works right or not.
well, I do not know how the MaStory (wordpy) the question database. But I found very interesting operationally.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 03:47.